mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
Update dropdowns on language change (#4519)
This commit is contained in:
parent
5a8f7cf54e
commit
ba7d80fa57
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,10 @@ const padeditor = (function () {
|
|||
$('#languagemenu').val(html10n.getLanguage());
|
||||
$('#languagemenu').change(() => {
|
||||
Cookies.set('language', $('#languagemenu').val());
|
||||
window.html10n.localize([$('#languagemenu').val(), 'en']);
|
||||
window.html10n.localize([$("#languagemenu").val(), 'en']);
|
||||
if ($('select').niceSelect) {
|
||||
$('select').niceSelect('update');
|
||||
}
|
||||
});
|
||||
},
|
||||
setViewOptions(newOptions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue