Localization Tools
How can I access localized strings?
An application that is being built with the LocaleStation analyzer can access the LocalStrings
class that contains the following properties:
Languages
: The languages that have been processed during the generation time. It lists all supported languages in a single assembly.Localizations
: A list of localization IDs that have been fetched for every language in a single assembly.
The following functions are dynamically generated to support AOT:
Translate()
: Gives a translated version of a string using a language and a localized text ID.Exists()
: Checks to see if a translated version of a string using a language and a localized text ID exists or not.CheckCulture()
: Checks to see if the given culture in a specific language exists.ListLanguagesCulture()
: Lists languages in a given culture.
Last updated