Preload 2 Locales out of dozens

Hi there,

I have dozens of locales defined, and whenever user selects a locale, lets say english I want to preload another locale at that time too, because in my case i have to show hybrid localization between 2 languages.

Please advise how can I programmatically preload 2 localizations at same time?
Thanks

Use PreloadTables.

1 Like

Is there an option for preloading all tables of a locale? without passing the table names?
If not, can you please add this support

Thats not something we currently support. Are you trying to load all the tables that have been marked as preload or every table including the ones not marked?

Im under the assumption that a table with 100 locales, and when we preload a locale, we only load table for that locale and not 99 remaining?

If thats the case, then i want to preload all the tables of a given locale, and at a time ill have 2-3 locales preloaded. I wont be using any marked/editor setting and reason is ill be deciding that on runtime whether for a given locale i need those 2 locales are not…

This is correct although you can modify it a little with the preload bahavior

Whilst PreloadTables does require the table names if you want to load all tables for a Locale you can use GetAllTables which will do something very similar and should give you the same results.

1 Like