How to obtain the current language setting?
I am developing a module that need to send the translation via the API. (e.g. /api?lang=en). In order for this I need to obtain the translation from the configuration and send it over.
this.translatewould translate the word and
getTranslationswould let the system know where the configuration file is. But I have no luck getting the language setting from
Thanks for the help.
Sorry just find that
config.languagesolves the problem
configis the entire config file, so you can read it with for example