Skip to content
Commit 08255e26 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: fix luci.i18n.setlanguage()



Rework the setlanguage() implementation to actually switch catalogues
if another language has been loaded previously and change it to return
the effectively loaded language tag.

Also improve input parameter validation and accept tags in both lower
or upper case.

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 62102f4f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment