Skip to content
Commit 70e32f0c authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: dispatcher.uc: ensure usage of dashes in language tags



The LuCI uci configuration requires language tags with underscores due
limitations of uci option names but the language catalogs themselves
are designated with dash separated language tags.

Make sure to substitute underscores with dashes when determining the
desired request language in order to fix loading of languages such as
`pt-br` or `zh-cn`.

Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1290352951
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent adc4ca65
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