Hello,
my goal is to create a scroll view that would dynamically populate with elements representing the available languages based on the localization assets in the project.
I’ve been wondering if there’s any way to somehow access the data in specific localization files without having to assign them manually as attributes? Can the localization JSONs be expanded by additional data, like “language name”, in order to get “English” for the “en-US” locale, “Deutsch” for the “de-DE” locale etc.?
I’ve seen a property called assets in the I18n class, but it always returns an array of IDs, never the actual assets array.
Any clues?
Thanks for the fast answer! Of course getting values based on a key with getText is easy, but what if I added some additional value to the localization JSON?
Would it be possible for me to get somehow the name value through script in the example below?