mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-22 16:43:38 +03:00
21 lines
684 B
TypeScript
21 lines
684 B
TypeScript
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'));
|
|
register('es-es', () => Locales.get('es-es'));
|
|
register('de-de', () => Locales.get('de-de'));
|
|
register('fr-fr', () => Locales.get('fr-fr'));
|
|
register('it-it', () => Locales.get('it-it'));
|
|
register('hu-hu', () => Locales.get('hu-hu'));
|
|
register('id-id', () => Locales.get('id-id'));
|
|
register('nb-no', () => Locales.get('nb-no'));
|
|
register('uwu', () => Locales.get('uwu'));
|
|
|
|
Locales.default().then((locale) => {
|
|
init({
|
|
fallbackLocale: 'en-us',
|
|
initialLocale: locale,
|
|
});
|
|
});
|