feat: add bg and pl to language switcher

This should help translators see their efforts come to fruition.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
André Jaenisch 2024-06-14 18:04:16 +02:00
parent 519c6a045a
commit 3e4e725347
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
5 changed files with 459 additions and 457 deletions

View file

@ -15,16 +15,18 @@ import { init, register } from 'svelte-i18n';
const defaultLocale = 'en';
register('bg', () => import('./locales/bg.json'));
register('de', () => import('./locales/de.json'));
register('en', () => import('./locales/en.json'));
register('he', () => import('./locales/he.json'));
register('pl', () => import('./locales/pl.json'));
init({
fallbackLocale: defaultLocale,
initialLocale: browser ? window.navigator.language : defaultLocale
});
export function mapLocaleToDir(locale: 'de' | 'en' | 'he'): 'ltr' | 'rtl' {
export function mapLocaleToDir(locale: 'bg' | 'de' | 'en' | 'he' | 'pl'): 'ltr' | 'rtl' {
if (['he'].includes(locale)) {
return 'rtl';
}