an-anime-game-launcher/src/i18n.ts

18 lines
496 B
TypeScript
Raw Normal View History

import { register, init } from 'svelte-i18n';
import Locales from './ts/launcher/Locales';
register('en-us', () => Locales.get('en-us'));
register('ru-ru', () => Locales.get('ru-ru'));
2021-12-29 15:33:42 +03:00
register('de-de', () => Locales.get('de-de'));
register('fr-fr', () => Locales.get('fr-fr'));
register('it-it', () => Locales.get('it-it'));
2022-01-09 20:43:21 +03:00
register('uwu', () => Locales.get('uwu'));
Locales.default().then((locale) => {
init({
fallbackLocale: 'en-us',
initialLocale: locale,
});
});