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

Error in the settings page if translation incomplete (#1659)

This commit is contained in:
nobody
2025-04-19 08:51:31 +02:00
parent 39fca29c32
commit 88ffa7a0e9
2 changed files with 4 additions and 3 deletions

View File

@@ -31,10 +31,11 @@ const helpers = {};
*/
helpers.insertI18nContentIntoDocument = function (document) {
const translationComplete = true;
const scriptDirection = helpers.determineScriptDirection(navigator.language);
const i18nElements = document.querySelectorAll('[data-i18n-content]');
let translationComplete = true;
i18nElements.forEach(function (i18nElement) {
const i18nMessageName = i18nElement.getAttribute('data-i18n-content');