chore: add new locales to Storybook
In order for others to inspect their translations I have added new locales to Storybook. Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
parent
5297ea175f
commit
a1f5b69704
1 changed files with 10 additions and 0 deletions
|
@ -22,9 +22,11 @@ import '../src/theme.postcss';
|
||||||
import '../src/app.postcss';
|
import '../src/app.postcss';
|
||||||
import './fix.css';
|
import './fix.css';
|
||||||
|
|
||||||
|
register('bg', () => import('../src/lib/i18n/locales/bg.json'));
|
||||||
register('de', () => import('../src/lib/i18n/locales/de.json'));
|
register('de', () => import('../src/lib/i18n/locales/de.json'));
|
||||||
register('en', () => import('../src/lib/i18n/locales/en.json'));
|
register('en', () => import('../src/lib/i18n/locales/en.json'));
|
||||||
register('he', () => import('../src/lib/i18n/locales/he.json'));
|
register('he', () => import('../src/lib/i18n/locales/he.json'));
|
||||||
|
register('pl', () => import('../src/lib/i18n/locales/pl.json'));
|
||||||
init({ fallbackLocale: 'en', initialLocale: 'en' });
|
init({ fallbackLocale: 'en', initialLocale: 'en' });
|
||||||
locale.set('en');
|
locale.set('en');
|
||||||
|
|
||||||
|
@ -45,6 +47,10 @@ const preview: Preview = {
|
||||||
toolbar: {
|
toolbar: {
|
||||||
icon: 'globe',
|
icon: 'globe',
|
||||||
items: [
|
items: [
|
||||||
|
{
|
||||||
|
value: 'bg',
|
||||||
|
title: 'Bulgarian'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
value: 'de',
|
value: 'de',
|
||||||
title: 'German'
|
title: 'German'
|
||||||
|
@ -56,6 +62,10 @@ const preview: Preview = {
|
||||||
{
|
{
|
||||||
value: 'he',
|
value: 'he',
|
||||||
title: 'Hebrew'
|
title: 'Hebrew'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'pl',
|
||||||
|
title: 'Polish'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue