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

14 lines
308 B
TypeScript
Raw Normal View History

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,
});
});