From a1f5b69704a4704cac379db01c79cf248d105d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Mon, 24 Jun 2024 11:38:01 +0200 Subject: [PATCH] chore: add new locales to Storybook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order for others to inspect their translations I have added new locales to Storybook. Signed-off-by: André Jaenisch --- .storybook/preview.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 3f5f465..95c8a4f 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -22,9 +22,11 @@ import '../src/theme.postcss'; import '../src/app.postcss'; import './fix.css'; +register('bg', () => import('../src/lib/i18n/locales/bg.json')); register('de', () => import('../src/lib/i18n/locales/de.json')); register('en', () => import('../src/lib/i18n/locales/en.json')); register('he', () => import('../src/lib/i18n/locales/he.json')); +register('pl', () => import('../src/lib/i18n/locales/pl.json')); init({ fallbackLocale: 'en', initialLocale: 'en' }); locale.set('en'); @@ -45,6 +47,10 @@ const preview: Preview = { toolbar: { icon: 'globe', items: [ + { + value: 'bg', + title: 'Bulgarian' + }, { value: 'de', title: 'German' @@ -56,6 +62,10 @@ const preview: Preview = { { value: 'he', title: 'Hebrew' + }, + { + value: 'pl', + title: 'Polish' } ] }