When I use
grav.language.getActive
is set to false.
Is this the intended behavior and if so, how can I get the language key in the case described above?
You should use grav.language.getLanguage as it falls back to default if the “active language” information is not available. Does it work correctly in this case?
grav.language.getLanguage
Yes it works correctly now. Thanks!