From 59e55ef5cd6f61b074c114dbbd2957ddccf3dc7d Mon Sep 17 00:00:00 2001 From: Manuel Kocher <manuel.kocher@tugraz.at> Date: Thu, 19 May 2022 09:12:09 +0200 Subject: [PATCH] Rename translation lang-file attribute to lang-files --- packages/app-shell/src/app-shell.js | 4 ++-- packages/common/src/translation.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/app-shell/src/app-shell.js b/packages/app-shell/src/app-shell.js index 53397c4e..65892521 100644 --- a/packages/app-shell/src/app-shell.js +++ b/packages/app-shell/src/app-shell.js @@ -74,7 +74,7 @@ export class AppShell extends ScopedElementsMixin(DBPLitElement) { this.initateOpenMenu = false; this.auth = {}; - this.langFile = ''; + this.langFiles = ''; } static get scopedElements() { @@ -272,7 +272,7 @@ export class AppShell extends ScopedElementsMixin(DBPLitElement) { buildTime: {type: String, attribute: 'build-time'}, env: {type: String}, auth: {type: Object}, - langFile: {type: String, attribute: 'lang-file'}, + langFiles: {type: String, attribute: 'lang-files'}, }; } diff --git a/packages/common/src/translation.js b/packages/common/src/translation.js index fe003e65..9712ac62 100644 --- a/packages/common/src/translation.js +++ b/packages/common/src/translation.js @@ -8,7 +8,7 @@ export class Translation extends DBPLitElement { super(); this.key = ''; this.lang = ''; - this.langFile = ''; + this.langFiles = ''; this.interpolation = ''; } @@ -17,7 +17,7 @@ export class Translation extends DBPLitElement { ...super.properties, key: {type: String}, lang: {type: String}, - langFile: {type: String, attribute: 'lang-file'}, + langFiles: {type: String, attribute: 'lang-files'}, interpolation: {type: Object, attribute: 'var'}, }; } @@ -33,7 +33,7 @@ export class Translation extends DBPLitElement { connectedCallback() { super.connectedCallback(); - this._i18n = createInstanceAsync(this.langFile); + this._i18n = createInstanceAsync(this.langFiles); } update(changedProperties) { -- GitLab