2021-12-26 19:25:57 +03:00
|
|
|
import { register, init } from 'svelte-i18n';
|
|
|
|
|
2022-01-10 18:44:24 +03:00
|
|
|
import Locales from './ts/launcher/Locales';
|
2021-12-26 19:25:57 +03:00
|
|
|
|
|
|
|
register('en-us', () => Locales.get('en-us'));
|
|
|
|
register('ru-ru', () => Locales.get('ru-ru'));
|
2022-01-13 05:59:44 +03:00
|
|
|
register('es-es', () => Locales.get('es-es'));
|
2021-12-29 15:33:42 +03:00
|
|
|
register('de-de', () => Locales.get('de-de'));
|
2022-01-06 16:03:59 +03:00
|
|
|
register('fr-fr', () => Locales.get('fr-fr'));
|
2022-01-30 14:10:06 +03:00
|
|
|
register('it-it', () => Locales.get('it-it'));
|
|
|
|
register('hu-hu', () => Locales.get('hu-hu'));
|
2022-01-30 15:10:19 +03:00
|
|
|
register('id-id', () => Locales.get('id-id'));
|
2022-02-03 23:56:04 +03:00
|
|
|
register('nb-no', () => Locales.get('nb-no'));
|
2022-02-20 14:29:06 +03:00
|
|
|
register('zh-cn', () => Locales.get('zh-cn'));
|
2022-01-09 20:43:21 +03:00
|
|
|
register('uwu', () => Locales.get('uwu'));
|
2021-12-26 19:25:57 +03:00
|
|
|
|
|
|
|
Locales.default().then((locale) => {
|
|
|
|
init({
|
|
|
|
fallbackLocale: 'en-us',
|
|
|
|
initialLocale: locale,
|
|
|
|
});
|
|
|
|
});
|