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

Fix linter issues introduced in the last commit

parent 4e3c5c04
No related branches found
No related tags found
No related merge requests found
Pipeline #176865 passed
......@@ -141,7 +141,7 @@ async function fetchOverridesByLanguage(overrides, lng) {
*
* @param {i18next.i18n} i18n - The i18next instance
* @param {HTMLElement} element - The element at which the overrides are targeted
* @param {String} overridesFile - Path to the translation file containing the overrides
* @param {string} overridesFile - Path to the translation file containing the overrides
*/
export async function setOverridesByFile(i18n, element, overridesFile) {
// We add a special namespace which gets used with priority and falls back
......
......@@ -9,7 +9,7 @@ export function createInstance() {
export async function createInstanceAsync(langFile, namespace) {
if (namespace == undefined)
namespace = 'translation'
namespace = 'translation';
// check if a path to language files is given
if(langFile) {
......
......@@ -4,19 +4,6 @@ import {unsafeHTML} from 'lit/directives/unsafe-html.js';
import DBPLitElement from '../dbp-lit-element';
import {createInstanceAsync, setOverridesByFile} from './i18n.js';
let OVERRIDE = {
'de': {
'dbp-translation': {
'toolkit-showcase': 'testText'
}
},
'en': {
'dbp-translation': {
'toolkit-showcase': 'testText2'
}
}
}
export class Translation extends DBPLitElement {
constructor() {
super();
......@@ -68,7 +55,7 @@ export class Translation extends DBPLitElement {
local._i18n = response;
local.requestUpdate();
});
})
});
}
}
......
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