Remap pt to pt-BR instead of pt-PT and handle valid mapping of pt to pt-BR initially (#1096)

* Rename pt-BR to pt, mapping for crowdin

* Map localized pt to pt-BR

* Revert "Rename pt-BR to pt, mapping for crowdin"

This reverts commit 42a09e14b7.
This commit is contained in:
Chad Scharf 2020-09-29 10:58:50 -04:00 committed by GitHub
parent bb477908ef
commit e31a7e5236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,9 @@ namespace Bit.iOS.Core.Services
case "gsw-CH": // "Schwiizertüütsch (Swiss German)" not supported .NET culture case "gsw-CH": // "Schwiizertüütsch (Swiss German)" not supported .NET culture
netLanguage = "de-CH"; // closest supported netLanguage = "de-CH"; // closest supported
break; break;
case "pt":
netLanguage = "pt-BR"; // iOS default (pt) = Portuguese (Brasil)
break;
// add more application-specific cases here (if required) // add more application-specific cases here (if required)
// ONLY use cultures that have been tested and known to work // ONLY use cultures that have been tested and known to work
} }
@ -86,7 +89,7 @@ namespace Bit.iOS.Core.Services
switch (platCulture.LanguageCode) switch (platCulture.LanguageCode)
{ {
case "pt": case "pt":
netLanguage = "pt-PT"; // fallback to Portuguese (Portugal) netLanguage = "pt-BR"; // fallback to Portuguese (Brasil)
break; break;
case "gsw": case "gsw":
netLanguage = "de-CH"; // equivalent to German (Switzerland) for this app netLanguage = "de-CH"; // equivalent to German (Switzerland) for this app