Fix tooltips not being localized on load

This commit is contained in:
Misode
2019-12-19 01:02:52 +01:00
parent e2dddec691
commit f96a515d77
3 changed files with 3 additions and 9 deletions

View File

@@ -17,11 +17,11 @@ i18next
})
.then(() => {
jqueryI18next.init(i18next, $, { parseDefaultValueFromContent: false })
$('html').localize()
updateView()
})
function changeLng(code) {
i18next.changeLanguage(code).then(() => {
$('html').localize()
updateView()
})
}