@bumped-inc/storybook-addon-lingui-v3
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@bumped-inc/storybook-addon-lingui-v3

Add Lingui v3 support with the ability to switch between locales inside Storybook

Getting Started

In your main.js, add "@bumped-inc/storybook-addon-lingui-v3" to your addons array.

Add the lingui parameter, likely in your preview.js file. It should look akin to

import { messages as en } from "./locales/en";
import { messages as fr } from "./locales/fr";
import { messages as he } from "./locales/he";
import { messages as ja } from "./locales/ja";

addParameters({
  lingui: [
    { id: "en", name: "English", messages: en },
    { id: "fr", name: "French", messages: fr },
    { id: "he", name: "Hebrew", messages: he },
    { id: "ja", name: "Japanese", messages: ja },
  ],
});

Package Sidebar

Install

npm i @bumped-inc/storybook-addon-lingui-v3

Weekly Downloads

68

Version

0.0.4

License

MIT

Unpacked Size

32.9 kB

Total Files

32

Last publish

Collaborators

  • kingles
  • bumped-robot
  • reichjustin
  • eoconnor