Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
10
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Storybook Addon for LinguiJS v3

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
10
Created
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

Package last updated on 27 Jul 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc