Skip to content

Commit c9c931b

Browse files
committed
fix(i18n): electron locale for pt_BR
1 parent df6447e commit c9c931b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/commons/src/lib/i18n.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface Locale {
66
/** `true` if the language is not supported by the application as a display language, but it is selectable by the user for the content. */
77
contentOnly?: boolean;
88
/** The value to pass to `--lang` for the Electron instance in order to set it as a locale. Not setting it will hide it from the list of supported locales. */
9-
electronLocale?: "en" | "de" | "es" | "fr" | "zh_CN" | "zh_TW" | "ro" | "af" | "am" | "ar" | "bg" | "bn" | "ca" | "cs" | "da" | "el" | "en-GB" | "es-419" | "et" | "fa" | "fi" | "fil" | "gu" | "he" | "hi" | "hr" | "hu" | "id" | "it" | "ja" | "kn" | "ko" | "lt" | "lv" | "ml" | "mr" | "ms" | "nb" | "nl" | "pl" | "pt-BR" | "pt-PT" | "ru" | "sk" | "sl" | "sr" | "sv" | "sw" | "ta" | "te" | "th" | "tr" | "uk" | "ur" | "vi";
9+
electronLocale?: "en" | "de" | "es" | "fr" | "zh_CN" | "zh_TW" | "ro" | "af" | "am" | "ar" | "bg" | "bn" | "ca" | "cs" | "da" | "el" | "en_GB" | "es_419" | "et" | "fa" | "fi" | "fil" | "gu" | "he" | "hi" | "hr" | "hu" | "id" | "it" | "ja" | "kn" | "ko" | "lt" | "lv" | "ml" | "mr" | "ms" | "nb" | "nl" | "pl" | "pt_BR" | "pt_PT" | "ru" | "sk" | "sl" | "sr" | "sv" | "sw" | "ta" | "te" | "th" | "tr" | "uk" | "ur" | "vi";
1010
}
1111

1212
const UNSORTED_LOCALES: Locale[] = [
@@ -16,7 +16,7 @@ const UNSORTED_LOCALES: Locale[] = [
1616
{ id: "es", name: "Español", electronLocale: "es" },
1717
{ id: "fr", name: "Français", electronLocale: "fr" },
1818
{ id: "ja", name: "日本語", electronLocale: "ja" },
19-
{ id: "pt_br", name: "Português (Brasil)", electronLocale: "pt-BR" },
19+
{ id: "pt_BR", name: "Português (Brasil)", electronLocale: "pt_BR" },
2020
{ id: "ro", name: "Română", electronLocale: "ro" },
2121
{ id: "ru", name: "Русский", electronLocale: "ru" },
2222
{ id: "tw", name: "繁體中文", electronLocale: "zh_TW" },

0 commit comments

Comments
 (0)