]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit - src/Utils.js
i18n: use correct ISO 639-1 code for Korean with backward compat
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Jan 2024 17:15:06 +0000 (18:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Jan 2024 17:40:59 +0000 (18:40 +0100)
commitfc792d6411a4980b8ef1d4e441a8d7ebd40cf506
tree1fbd9ba92f587fdbfb5dcbdb1c25b15d66c9b144
parent905528a28dbf6f7f268f5114da676a28dc5cfab2
i18n: use correct ISO 639-1 code for Korean with backward compat

recently the proxmox-i18n repo got a fix where we moved the files for
Korean to the correct language code, i.e., from previously wrong used
kr (Kanuri) to the correct ko (Korean).

This loads the correct ExtJS locale and is less confusing for our
Korean speakers, but we still want a clean transition for those that
have still the 'kr' value set in their language cookie.
Note that this transition only happens when the user opens the
language selector, as otherwise we do not have the product-specific
cookie name available, so a better transition would need to happen in
the per-product UIs.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Utils.js
src/window/LanguageEdit.js