From aeab697e3e2a8e94d99c195ac9687e83c7dd682e Mon Sep 17 00:00:00 2001 From: Matt Dutra Date: Mon, 13 May 2024 20:37:04 -0300 Subject: [PATCH] Update index.ts Updated language indexer file to include Portuguese (Brazil) as an option --- src/i18n/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 459292c1..8b8925cf 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -1,13 +1,14 @@ import { createI18n } from 'vue-i18n'; import de from './locales/de.json'; import en from './locales/en.json'; +import br from './locales/br.json'; export type MessageSchema = typeof en; const browserLocale = navigator.language.slice(0, 2).toLowerCase(); -const messages: Record = { en, de } as const; +const messages: Record = { en, de, br } as const; -export const availableLocales = ['en', 'de']; +export const availableLocales = ['en', 'de', 'br']; export const initialLocale = availableLocales.includes(browserLocale) ? browserLocale : 'en'; export type AvailableLocale = keyof typeof messages;