Class LocaleData
- Namespace
- PhoneNumbers
- Assembly
- PhoneNumbers.dll
Holds a map from ISO 3166-1 country code (e.g. GB) to a dict. Each dict maps from an ISO 639-1 language code (e.g. ja) to the country's name in that language.
public class LocaleData
- Inheritance
-
LocaleData
- Inherited Members
Remarks
The data lives in per-country binary resources built from
resources/locale/country_names.txt. Reading Data materialises every
country at once, so nothing inside this library uses it: the country-name lookup goes
through PhoneNumbers.LocaleNames, which reads one country. This type stays for callers
outside the library that were using it before the data moved.
Fields
Data
public static readonly ImmutableDictionary<string, ImmutableDictionary<string, string>> Data