Skip to content
Snippets Groups Projects
Commit b4bf672d authored by Kocher, Manuel's avatar Kocher, Manuel
Browse files

Fix linter issues

parent ef4383c9
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,6 @@ export function setOverrides(i18n, element, overrides) { ...@@ -159,7 +159,6 @@ export function setOverrides(i18n, element, overrides) {
* *
* @param {i18next.i18n} i18n - The i18next instance * @param {i18next.i18n} i18n - The i18next instance
* @param {HTMLElement} element - The element at which the overrides are targeted * @param {HTMLElement} element - The element at which the overrides are targeted
* @param {object} overrides - The override data as promise
*/ */
export async function setOverridesByGlobalCache(i18n, element) { export async function setOverridesByGlobalCache(i18n, element) {
// We add a special namespace which gets used with priority and falls back // We add a special namespace which gets used with priority and falls back
......
...@@ -45,9 +45,7 @@ export class Translation extends DBPLitElement { ...@@ -45,9 +45,7 @@ export class Translation extends DBPLitElement {
this._i18n = createInstanceGivenResources(en, de); this._i18n = createInstanceGivenResources(en, de);
if (this.langDir) { if (this.langDir) {
for(let lng of this._i18n.languages) { setOverridesByGlobalCache(this._i18n, this);
setOverridesByGlobalCache(this._i18n, this);
}
} }
} }
......
...@@ -58,9 +58,7 @@ export class ThemeSwitcher extends ScopedElementsMixin(AdapterLitElement) { ...@@ -58,9 +58,7 @@ export class ThemeSwitcher extends ScopedElementsMixin(AdapterLitElement) {
this.detectInitialMode(); this.detectInitialMode();
}); });
if (this.langDir) { if (this.langDir) {
for(let lng of this._i18n.languages) { setOverridesByGlobalCache(this._i18n, this);
setOverridesByGlobalCache(this._i18n, this);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment