mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-08 01:47:19 +03:00
14 lines
308 B
TypeScript
14 lines
308 B
TypeScript
|
import { register, init } from 'svelte-i18n';
|
||
|
|
||
|
import Locales from './ts/core/Locales';
|
||
|
|
||
|
register('en-us', () => Locales.get('en-us'));
|
||
|
register('ru-ru', () => Locales.get('ru-ru'));
|
||
|
|
||
|
Locales.default().then((locale) => {
|
||
|
init({
|
||
|
fallbackLocale: 'en-us',
|
||
|
initialLocale: locale,
|
||
|
});
|
||
|
});
|