From bb5ffef3d20a6216f8293d8ad94344e2b4a4f04c Mon Sep 17 00:00:00 2001
From: Manuel Kocher <manuel.kocher@tugraz.at>
Date: Thu, 2 Jun 2022 10:57:36 +0200
Subject: [PATCH] Fix linter issues introduced in the last commit

---
 packages/common/i18next.js         |  2 +-
 packages/common/src/i18n.js        |  2 +-
 packages/common/src/translation.js | 15 +--------------
 3 files changed, 3 insertions(+), 16 deletions(-)

diff --git a/packages/common/i18next.js b/packages/common/i18next.js
index 54550215..21544a46 100644
--- a/packages/common/i18next.js
+++ b/packages/common/i18next.js
@@ -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
diff --git a/packages/common/src/i18n.js b/packages/common/src/i18n.js
index ae6a0c68..67966f71 100644
--- a/packages/common/src/i18n.js
+++ b/packages/common/src/i18n.js
@@ -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) {
 
diff --git a/packages/common/src/translation.js b/packages/common/src/translation.js
index fd965c2e..46000971 100644
--- a/packages/common/src/translation.js
+++ b/packages/common/src/translation.js
@@ -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();
           });
-        })
+        });
       }
     }
 
-- 
GitLab