1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Updated i18n

This commit is contained in:
nobody42
2020-04-06 18:58:33 +02:00
parent 6f03e4fa17
commit 0a058da9f3
5 changed files with 37 additions and 10 deletions

View File

@ -35,6 +35,9 @@ helpers.insertI18nContentIntoDocument = function (document) {
i18nElements.forEach(function (i18nElement) {
let i18nMessageName = i18nElement.getAttribute('data-i18n-content');
if (i18nElement.id === 'button-copy-rule-set') {
i18nElement.value = chrome.i18n.getMessage('copyRuleSet');
}
if(chrome.i18n.getMessage(i18nMessageName) === '') {
// Select english if configured language is empty
i18nElement.innerText = chrome.i18n.getMessage(i18nMessageName);