Initial commit

This commit is contained in:
2024-09-26 01:55:31 +03:00
commit cb32524241
46 changed files with 5704 additions and 0 deletions

22
src/lib/translations.ts Normal file
View File

@@ -0,0 +1,22 @@
import i18n from 'sveltekit-i18n';
const config = ({
loaders: [
{
locale: 'en',
key: '',
loader: async () => (
await import('./en.json')
).default,
},
{
locale: 'ru',
key: '',
loader: async () => (
await import('./ru.json')
).default,
}
],
});
export const { t, locale, locales, loading, loadTranslations } = new i18n(config);