summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-12-05 15:26:35 -0500
committerOmar Roth <omarroth@protonmail.com>2019-12-05 15:26:35 -0500
commit0e844edacb45c803d5142bf63d35000fbbefce8d (patch)
tree3cdbf6bab75693e941ada602992c42ee6a08483a
parent5751bb2481baad2965195e53fec6779ce6699fb1 (diff)
downloadinvidious-0e844edacb45c803d5142bf63d35000fbbefce8d.tar.gz
invidious-0e844edacb45c803d5142bf63d35000fbbefce8d.tar.bz2
invidious-0e844edacb45c803d5142bf63d35000fbbefce8d.zip
Add support for pt-BR
-rw-r--r--locales/nb-NO.json (renamed from locales/nb_NO.json)0
-rw-r--r--locales/pt-BR.json1
-rw-r--r--src/invidious.cr3
3 files changed, 2 insertions, 2 deletions
diff --git a/locales/nb_NO.json b/locales/nb-NO.json
index d3bce6ac..d3bce6ac 100644
--- a/locales/nb_NO.json
+++ b/locales/nb-NO.json
diff --git a/locales/pt-BR.json b/locales/pt-BR.json
index d13a69ac..5a4bcfc8 100644
--- a/locales/pt-BR.json
+++ b/locales/pt-BR.json
@@ -161,7 +161,6 @@
"Show replies": "Mostrar respostas",
"Incorrect password": "Senha incorreta",
"Quota exceeded, try again in a few hours": "Cota excedida, tente novamente em algumas horas",
-
"Unable to log in, make sure two-factor authentication (Authenticator or SMS) is turned on.": "Não foi possível fazer login, sua autenticação por dois passos (app autenticador ou sms) deve estar ativada.",
"Invalid TFA code": "Código TFA inválido",
"Login failed. This may be because two-factor authentication is not turned on for your account.": "Falha no login. Isso pode acontecer pois a autenticação por dois passos está desativada para sua conta.",
diff --git a/src/invidious.cr b/src/invidious.cr
index a4f20bc4..5d011a5c 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -84,8 +84,9 @@ LOCALES = {
"is" => load_locale("is"),
"it" => load_locale("it"),
"ja" => load_locale("ja"),
- "nb_NO" => load_locale("nb_NO"),
+ "nb-NO" => load_locale("nb-NO"),
"nl" => load_locale("nl"),
+ "pt-BR" => load_locale("pt-BR"),
"pl" => load_locale("pl"),
"ro" => load_locale("ro"),
"ru" => load_locale("ru"),