From d8db59c352fbc538caa319995cfe579c48fa698c Mon Sep 17 00:00:00 2001 From: Ahmedhossamdev Date: Wed, 23 Oct 2024 08:13:03 +0300 Subject: [PATCH] chore: linting & formatting --- src/lib/i18n.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/lib/i18n.js b/src/lib/i18n.js index 6500583..285c0c5 100644 --- a/src/lib/i18n.js +++ b/src/lib/i18n.js @@ -1,20 +1,17 @@ import { init, register, getLocaleFromNavigator } from 'svelte-i18n'; - -register('en', () => import('./../locales/en.json')); // English -register('es', () => import('./../locales/es.json')); // Spanish -register('pl', () => import('./../locales/pl.json')); // Polish -register('vi', () => import('./../locales/vi.json')); // Vietnamese -register('tl', () => import('./../locales/tl.json')); // Tagalog -register('so', () => import('./../locales/so.json')); // Somali -register('am', () => import('./../locales/am.json')); // Amharic +register('en', () => import('./../locales/en.json')); // English +register('es', () => import('./../locales/es.json')); // Spanish +register('pl', () => import('./../locales/pl.json')); // Polish +register('vi', () => import('./../locales/vi.json')); // Vietnamese +register('tl', () => import('./../locales/tl.json')); // Tagalog +register('so', () => import('./../locales/so.json')); // Somali +register('am', () => import('./../locales/am.json')); // Amharic const locale = getLocaleFromNavigator(); const lang = locale ? locale.split('-')[0] : 'en'; -console.log(lang) - init({ fallbackLocale: 'en', initialLocale: lang