我正在使用一种简单的方法为我返回地图位置,但我只想用英文获取该地址。
public static async Task<MapLocation> ResolveLocationForGeopoint(Geopoint geopoint)
{
MapLocationFinderResult result = await MapLocationFinder.FindLocationsAtAsync(geopoint);
if (result.Status == MapLocationFinderStatus.Success)
{
if (result.Locations.Count != 0)
// Check if the result is really valid
if (result.Locations[0].Address.Town != "")
return result.Locations[0];
}
return null;
}
我的问题是:当我的 Windows 语言是俄语时,它会返回 cirillic 字符。
我试图覆盖应用程序语言:
ApplicationLanguages.PrimaryLanguageOverride = "en";
但是好像不行。。。
我怎样才能从这个方法中得到本地化的字符串?