mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
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:
parent
bb477908ef
commit
e31a7e5236
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue