refactor(i18n): move currentLanguage utility to correct location

Moved src/utils/currentLanguage.js to
src/features/i18n/utils/navigatorLanguage.js and updated it to only
parse the navigator language.
This commit is contained in:
2026-08-07 00:50:13 +02:00
parent b571a68e3b
commit 788bea0016
5 changed files with 54 additions and 69 deletions
+1 -2
View File
@@ -15,7 +15,6 @@ limitations under the License.
*/
import { createI18n } from 'vue-i18n';
import getCurrentLanguage from './utils/currentLanguage';
export const fallbackLocale = 'en';
@@ -34,7 +33,7 @@ export const SUPPORTED_LANGUAGES = [
export const i18n = createI18n({
legacy: false,
locale: getCurrentLanguage(),
locale: fallbackLocale,
fallbackLocale: fallbackLocale,
messages: {}
});