diff --git a/apps/builder/next.config.mjs b/apps/builder/next.config.mjs index f842162b3..ee4f93d78 100644 --- a/apps/builder/next.config.mjs +++ b/apps/builder/next.config.mjs @@ -22,7 +22,7 @@ const nextConfig = { ], i18n: { defaultLocale: 'en', - locales: ['en', 'fr', 'pt', 'pt_BR', 'de'], + locales: ['en', 'fr', 'pt', 'pt-BR', 'de'], }, experimental: { outputFileTracingRoot: join(__dirname, '../../'), diff --git a/apps/builder/src/features/account/components/UserPreferencesForm.tsx b/apps/builder/src/features/account/components/UserPreferencesForm.tsx index 12d3e833a..7a5a2ded5 100644 --- a/apps/builder/src/features/account/components/UserPreferencesForm.tsx +++ b/apps/builder/src/features/account/components/UserPreferencesForm.tsx @@ -19,11 +19,11 @@ import { ChevronDownIcon } from '@/components/icons' import { MoreInfoTooltip } from '@/components/MoreInfoTooltip' const localeHumanReadable = { - en: 'English', - fr: 'Français', - de: 'Deutsch', - pt: 'Português', - pt_BR: 'Português (BR)' + en: 'English', + fr: 'Français', + de: 'Deutsch', + pt: 'Português', + 'pt-BR': 'Português (BR)', } as const export const UserPreferencesForm = () => { diff --git a/apps/builder/src/locales/index.ts b/apps/builder/src/locales/index.ts index 8a0b5c19d..13bbea317 100644 --- a/apps/builder/src/locales/index.ts +++ b/apps/builder/src/locales/index.ts @@ -1,6 +1,6 @@ import { createI18n } from 'next-international' -export type I18nFunction = (key: string) => string; +export type I18nFunction = (key: string) => string export const { useI18n, @@ -11,9 +11,9 @@ export const { useChangeLocale, defineLocale, } = createI18n({ - en: () => import('./en'), - fr: () => import('./fr'), - pt: () => import('./pt'), - pt_BR: () => import('./pt_BR'), - de: () => import('./de'), -}) \ No newline at end of file + en: () => import('./en'), + fr: () => import('./fr'), + pt: () => import('./pt'), + 'pt-BR': () => import('./pt-BR'), + de: () => import('./de'), +}) diff --git a/apps/builder/src/locales/pt_BR.ts b/apps/builder/src/locales/pt-BR.ts similarity index 100% rename from apps/builder/src/locales/pt_BR.ts rename to apps/builder/src/locales/pt-BR.ts