mirror of
https://github.com/henrygd/beszel.git
synced 2026-10-22 06:12:33 +00:00
feat(site): add Brazilian Portuguese (pt-BR) translation (#2635)
This commit is contained in:
@@ -23,6 +23,7 @@ export default defineConfig({
|
||||
"no",
|
||||
"pl",
|
||||
"pt",
|
||||
"pt-BR",
|
||||
"tr",
|
||||
"ru",
|
||||
"sl",
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user