Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
64
Maintainers
10
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Storybook Addon for LinguiJS v3


Version published
Weekly downloads
70
decreased by-62.16%
Maintainers
10
Created
Weekly downloads
 

Readme

Source

@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 },
  ],
});

Keywords

FAQs

Last updated on 27 Jul 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc