feat(site): add Brazilian Portuguese (pt-BR) translation (#2635)

This commit is contained in:
Matheus Eduardo
2026-10-20 13:22:53 -04:00
committed by GitHub
parent 87b4bc5a1d
commit cb608ab5df
4 changed files with 2554 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ export default defineConfig({
"no",
"pl",
"pt",
"pt-BR",
"tr",
"ru",
"sl",
+4
View File
@@ -51,6 +51,10 @@ export function getLocale() {
}
return zhVariantMap[locale] || "zh-CN"
}
// handle pt-BR (other pt variants fall back to pt)
if (locale === "pt-BR") {
return locale
}
locale = (locale || "en").split("-")[0]
// use en if locale is not in languages
if (!languages.some((l) => l[0] === locale)) {
+1
View File
@@ -20,6 +20,7 @@ export default [
["no", "Norsk", "🇳🇴"],
["pl", "Polski", "🇵🇱"],
["pt", "Português", "🇵🇹"],
["pt-BR", "Português (Brasil)", "🇧🇷"],
["ru", "Русский", "🇷🇺"],
["sl", "Slovenščina", "🇸🇮"],
["sr", "Српски", "🇷🇸"],
File diff suppressed because it is too large Load Diff