I'm looking for a function to be used in the mod.lua (runFn). It should read the language setting.
After testing the api.util that I found in the Wiki
getLanguage() | Returns the current language settings |
I get only errors. .... "attempt to index field 'util' (a nil value)"
How do I use it right?
local language = api.util.getLanguage()