string ToDotnetFallbackLanguage(Framework.Xamariner.PlatformCulture platCulture) { Console.WriteLine(".NET Fallback Language:" + platCulture.LanguageCode); var netLanguage = platCulture.LanguageCode; // use the first part of the identifier (two chars, usually); switch (platCulture.LanguageCode) { case "gsw": netLanguage = "de-CH"; // equivalent to German (Switzerland) for this app break; // add more application-specific cases here (if required) // ONLY use cultures that have been tested and known to work } Console.WriteLine(".NET Fallback Language/Locale:" + netLanguage + " (application-specific)"); return(netLanguage); }
string ToDotnetFallbackLanguage(Framework.Xamariner.PlatformCulture platCulture) { var netLanguage = platCulture.LanguageCode; // use the first part of the identifier (two chars, usually); switch (platCulture.LanguageCode) { case "pt": netLanguage = "pt-PT"; // fallback to Portuguese (Portugal) break; case "gsw": netLanguage = "de-CH"; // equivalent to German (Switzerland) for this app break; // add more application-specific cases here (if required) // ONLY use cultures that have been tested and known to work } return(netLanguage); }