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
1 changed files with 4 additions and 1 deletions

View File

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