diff --git a/packages/common/dbp-common-demo.js b/packages/common/dbp-common-demo.js index 5f5b9bc0f94bd8b218ca979e82d531b869e46193..66e55fc099407dd4f82038ac2eb8aa17e87fdc94 100644 --- a/packages/common/dbp-common-demo.js +++ b/packages/common/dbp-common-demo.js @@ -21,7 +21,7 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) { this._i18n = createInstance(); this.lang = this._i18n.language; this.noAuth = false; - this.langFile = ''; + this.langFiles = ''; } static get scopedElements() { @@ -47,7 +47,7 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) { return { lang: {type: String}, noAuth: {type: Boolean, attribute: 'no-auth'}, - langFile: {type: String, attribute: 'lang-file'}, + langFiles: {type: String, attribute: 'lang-files'}, }; } @@ -302,7 +302,7 @@ html { </dbp-translated> </div> <div class="control" id="dbp-translation-demo"> - <dbp-translation key="toolkit-showcase" subscribe="lang, lang-file"></dbp-translation> + <dbp-translation key="toolkit-showcase" subscribe="lang, lang-files"></dbp-translation> </div> </div> </section> diff --git a/toolkit-showcase/assets/common.metadata.json b/toolkit-showcase/assets/common.metadata.json index 51e4892cb53180deb82a6224e9dd0c836c9f6452..12f74b5c0ce45029eeb7b3144822d1b35d49aa98 100644 --- a/toolkit-showcase/assets/common.metadata.json +++ b/toolkit-showcase/assets/common.metadata.json @@ -14,5 +14,5 @@ "de": "Gemeinsame Web Components", "en": "Common web components" }, - "subscribe": "lang,entry-point-url,lang-file" + "subscribe": "lang,entry-point-url,lang-files" } diff --git a/toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs b/toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs index 89c2a191d9e98c2d5aa3b01bde70137b38f8b17c..feaee44ca49cf1b38505c4840f74a0e3eabbf2aa 100644 --- a/toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs +++ b/toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs @@ -113,7 +113,7 @@ <<%= name %> provider-root lang="de" - lang-file="<%= getPrivateUrl('i18n/') %>" + lang-files="<%= getPrivateUrl('i18n/') %>" entry-point-url="<%= entryPointURL %>" nextcloud-auth-url="<%= nextcloudWebAppPasswordURL %>" nextcloud-web-dav-url="<%= nextcloudWebDavURL %>" diff --git a/toolkit-showcase/src/dbp-common-demo-activity.js b/toolkit-showcase/src/dbp-common-demo-activity.js index 6735845541387b0098d6f61bf329470508bf84c3..7dee8d6b61bfbf8e7501d1b39daeac1026504a03 100644 --- a/toolkit-showcase/src/dbp-common-demo-activity.js +++ b/toolkit-showcase/src/dbp-common-demo-activity.js @@ -13,7 +13,7 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) { super(); this.lang = 'en'; this.entryPointUrl = ''; - this.langFile = ''; + this.langFiles = ''; } static get scopedElements() { @@ -26,7 +26,7 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) { return { ...super.properties, lang: {type: String}, - langFile: {type: String, attribute: 'lang-file'}, + langFiles: {type: String, attribute: 'lang-files'}, entryPointUrl: {type: String, attribute: 'entry-point-url'}, }; } @@ -65,7 +65,7 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) { <dbp-common-demo id="demo" lang="${this.lang}" - lang-file="${this.langFile}" + lang-files="${this.langFiles}" entry-point-url="${this.entryPointUrl}"></dbp-common-demo> `; }