Is any way to use instant localized value from current locale? Now I use
LocalizationSettings.StringDatabase.GetLocalizedStringAsync(“table_name”, “string_key”).WaitForCompletion()
for compatibility with all platforms (WebGL included).
Tho it seems that StringDatabase isn’t in the memory to instant access. Maybe I missed something in docs. What I excatly mean: early I used my own localization system, based on static dictionary and cuz of it, i can instantly get localized value for already loaded local. Looks for something similar, cuz sometimes I need a lot of values from stringdatabase, especially, ongoing. Status text changed often (change value for status Text object based on Locale etc.).
Wait for completion is not supported on WebGl. See here.
If you enabled Preloading you will find that all Async operations are complete and wont need waiting on.
You will need to wait for the preloading at the start of the application and when the selected locale is changed.
There are examples of this in the package Samples.
Using preloading will also solve the WebGL issues as you wont need to use WaitForCompletion.