From e31a7e5236ca536a355cd6f9348bc62e12b299bb Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Tue, 29 Sep 2020 10:58:50 -0400 Subject: [PATCH] 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 42a09e14b74e310d1b4c9ca8d7372fd70b5678d4. --- src/iOS.Core/Services/LocalizeService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/iOS.Core/Services/LocalizeService.cs b/src/iOS.Core/Services/LocalizeService.cs index fa62965dc..21f4a2250 100644 --- a/src/iOS.Core/Services/LocalizeService.cs +++ b/src/iOS.Core/Services/LocalizeService.cs @@ -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