2021-12-26 19:25:57 +03:00
|
|
|
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'));
|
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'));
|
|
|
|
register('es-es', () => Locales.get('es-es'));
|
2022-01-06 23:39:29 +03:00
|
|
|
register('it-it', () => Locales.get('it-it'));
|
2022-01-06 16:03:59 +03:00
|
|
|
register('vi-vn', () => Locales.get('vi-vn'));
|
2021-12-26 19:25:57 +03:00
|
|
|
|
|
|
|
Locales.default().then((locale) => {
|
|
|
|
init({
|
|
|
|
fallbackLocale: 'en-us',
|
|
|
|
initialLocale: locale,
|
|
|
|
});
|
|
|
|
});
|