View Single Post
01/02/22, 10:16 AM   #2
Shadowfen
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 86
I understood it charges the default en.lua language file and then the language file of the user language if any.
But let's say we have new variables in the en.lua file that are not in the fr.lua file, will these be displayed in english from the en.lua file charged before or will it cause an error/exception ?
By default, no. If you are displaying fr and the string is missing from fr then the value of the string will be nil even though there is an en value.

On the other hand, if you use LibLanguage, it was designed to load your default language first and then overload with the currently selected language so that (as in our example) the fr strings (when available) will be used and if not available then the default language (en in our example) would still be there.
  Reply With Quote