Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(i18n): electron locale for pt_BR
Elian Doranbd35539fa197
diff --git a/packages/commons/src/lib/i18n.ts b/packages/commons/src/lib/i18n.tsindex 5f2470aa3e..ff435de785 100644--- a/packages/commons/src/lib/i18n.ts+++ b/packages/commons/src/lib/i18n.ts@@ -6,7 +6,7 @@ export interface Locale {/** `true` if the language is not supported by the application as a display language, but it is selectable by the user for the content. */contentOnly?: boolean;/** 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. */- 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";+ 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";}const UNSORTED_LOCALES: Locale[] = [@@ -16,7 +16,7 @@ const UNSORTED_LOCALES: Locale[] = [{ id: "es", name: "Español", electronLocale: "es" },{ id: "fr", name: "Français", electronLocale: "fr" },{ id: "ja", name: "日本語", electronLocale: "ja" },- { id: "pt_br", name: "Português (Brasil)", electronLocale: "pt-BR" },+ { id: "pt-BR", name: "Português (Brasil)", electronLocale: "pt_BR" },{ id: "ro", name: "Română", electronLocale: "ro" },{ id: "ru", name: "Русский", electronLocale: "ru" },{ id: "tw", name: "繁體中文", electronLocale: "zh_TW" },