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

Rename translation lang-file attribute to lang-files

parent 4d417482
Branches
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ export class AppShell extends ScopedElementsMixin(DBPLitElement) { ...@@ -74,7 +74,7 @@ export class AppShell extends ScopedElementsMixin(DBPLitElement) {
this.initateOpenMenu = false; this.initateOpenMenu = false;
this.auth = {}; this.auth = {};
this.langFile = ''; this.langFiles = '';
} }
static get scopedElements() { static get scopedElements() {
...@@ -272,7 +272,7 @@ export class AppShell extends ScopedElementsMixin(DBPLitElement) { ...@@ -272,7 +272,7 @@ export class AppShell extends ScopedElementsMixin(DBPLitElement) {
buildTime: {type: String, attribute: 'build-time'}, buildTime: {type: String, attribute: 'build-time'},
env: {type: String}, env: {type: String},
auth: {type: Object}, auth: {type: Object},
langFile: {type: String, attribute: 'lang-file'}, langFiles: {type: String, attribute: 'lang-files'},
}; };
} }
......
...@@ -8,7 +8,7 @@ export class Translation extends DBPLitElement { ...@@ -8,7 +8,7 @@ export class Translation extends DBPLitElement {
super(); super();
this.key = ''; this.key = '';
this.lang = ''; this.lang = '';
this.langFile = ''; this.langFiles = '';
this.interpolation = ''; this.interpolation = '';
} }
...@@ -17,7 +17,7 @@ export class Translation extends DBPLitElement { ...@@ -17,7 +17,7 @@ export class Translation extends DBPLitElement {
...super.properties, ...super.properties,
key: {type: String}, key: {type: String},
lang: {type: String}, lang: {type: String},
langFile: {type: String, attribute: 'lang-file'}, langFiles: {type: String, attribute: 'lang-files'},
interpolation: {type: Object, attribute: 'var'}, interpolation: {type: Object, attribute: 'var'},
}; };
} }
...@@ -33,7 +33,7 @@ export class Translation extends DBPLitElement { ...@@ -33,7 +33,7 @@ export class Translation extends DBPLitElement {
connectedCallback() { connectedCallback() {
super.connectedCallback(); super.connectedCallback();
this._i18n = createInstanceAsync(this.langFile); this._i18n = createInstanceAsync(this.langFiles);
} }
update(changedProperties) { update(changedProperties) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment