From 6b80bc5b5ec4e5dc4516e704d102da978ba2090a Mon Sep 17 00:00:00 2001 From: Felipe Camargo Date: Mon, 13 Apr 2026 08:08:38 -0700 Subject: [PATCH] Rename pt-BR locale to pt to match project convention MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All existing locales use two-letter codes (ar, en, es, fr, nl) and the crowdin.yml output path uses %two_letters_code% — using pt-BR would conflict with any future Crowdin-imported Portuguese. The display name stays 'Portuguese (Brazil)' / 'Português (Brasil)' so users still see it's the Brazilian dialect. --- public/locales/{pt-BR => pt}/chores.json | 0 public/locales/{pt-BR => pt}/common.json | 0 public/locales/{pt-BR => pt}/settings.json | 0 src/contexts/LocalizationContext.jsx | 2 +- 4 files changed, 1 insertion(+), 1 deletion(-) rename public/locales/{pt-BR => pt}/chores.json (100%) rename public/locales/{pt-BR => pt}/common.json (100%) rename public/locales/{pt-BR => pt}/settings.json (100%) diff --git a/public/locales/pt-BR/chores.json b/public/locales/pt/chores.json similarity index 100% rename from public/locales/pt-BR/chores.json rename to public/locales/pt/chores.json diff --git a/public/locales/pt-BR/common.json b/public/locales/pt/common.json similarity index 100% rename from public/locales/pt-BR/common.json rename to public/locales/pt/common.json diff --git a/public/locales/pt-BR/settings.json b/public/locales/pt/settings.json similarity index 100% rename from public/locales/pt-BR/settings.json rename to public/locales/pt/settings.json diff --git a/src/contexts/LocalizationContext.jsx b/src/contexts/LocalizationContext.jsx index 6924272..d34bb8a 100644 --- a/src/contexts/LocalizationContext.jsx +++ b/src/contexts/LocalizationContext.jsx @@ -25,7 +25,7 @@ export const AVAILABLE_LANGUAGES = [ { code: 'es', name: 'Spanish', nativeName: 'Español' }, { code: 'fr', name: 'French', nativeName: 'Français' }, { code: 'nl', name: 'Dutch', nativeName: 'Nederlands' }, - { code: 'pt-BR', name: 'Portuguese (Brazil)', nativeName: 'Português (Brasil)' }, + { code: 'pt', name: 'Portuguese (Brazil)', nativeName: 'Português (Brasil)' }, ] export const LocalizationProvider = ({ children }) => {