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

Rename attribute lang-file to lang-files in toolkit-showcase

parent 59e55ef5
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) { ...@@ -21,7 +21,7 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) {
this._i18n = createInstance(); this._i18n = createInstance();
this.lang = this._i18n.language; this.lang = this._i18n.language;
this.noAuth = false; this.noAuth = false;
this.langFile = ''; this.langFiles = '';
} }
static get scopedElements() { static get scopedElements() {
...@@ -47,7 +47,7 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) { ...@@ -47,7 +47,7 @@ export class DbpCommonDemo extends ScopedElementsMixin(LitElement) {
return { return {
lang: {type: String}, lang: {type: String},
noAuth: {type: Boolean, attribute: 'no-auth'}, noAuth: {type: Boolean, attribute: 'no-auth'},
langFile: {type: String, attribute: 'lang-file'}, langFiles: {type: String, attribute: 'lang-files'},
}; };
} }
...@@ -302,7 +302,7 @@ html { ...@@ -302,7 +302,7 @@ html {
</dbp-translated> </dbp-translated>
</div> </div>
<div class="control" id="dbp-translation-demo"> <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>
</div> </div>
</section> </section>
......
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"de": "Gemeinsame Web Components", "de": "Gemeinsame Web Components",
"en": "Common web components" "en": "Common web components"
}, },
"subscribe": "lang,entry-point-url,lang-file" "subscribe": "lang,entry-point-url,lang-files"
} }
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<<%= name %> <<%= name %>
provider-root provider-root
lang="de" lang="de"
lang-file="<%= getPrivateUrl('i18n/') %>" lang-files="<%= getPrivateUrl('i18n/') %>"
entry-point-url="<%= entryPointURL %>" entry-point-url="<%= entryPointURL %>"
nextcloud-auth-url="<%= nextcloudWebAppPasswordURL %>" nextcloud-auth-url="<%= nextcloudWebAppPasswordURL %>"
nextcloud-web-dav-url="<%= nextcloudWebDavURL %>" nextcloud-web-dav-url="<%= nextcloudWebDavURL %>"
......
...@@ -13,7 +13,7 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) { ...@@ -13,7 +13,7 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
super(); super();
this.lang = 'en'; this.lang = 'en';
this.entryPointUrl = ''; this.entryPointUrl = '';
this.langFile = ''; this.langFiles = '';
} }
static get scopedElements() { static get scopedElements() {
...@@ -26,7 +26,7 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) { ...@@ -26,7 +26,7 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
return { return {
...super.properties, ...super.properties,
lang: {type: String}, lang: {type: String},
langFile: {type: String, attribute: 'lang-file'}, langFiles: {type: String, attribute: 'lang-files'},
entryPointUrl: {type: String, attribute: 'entry-point-url'}, entryPointUrl: {type: String, attribute: 'entry-point-url'},
}; };
} }
...@@ -65,7 +65,7 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) { ...@@ -65,7 +65,7 @@ class DbpCommonDemoActivity extends ScopedElementsMixin(AdapterLitElement) {
<dbp-common-demo <dbp-common-demo
id="demo" id="demo"
lang="${this.lang}" lang="${this.lang}"
lang-file="${this.langFile}" lang-files="${this.langFiles}"
entry-point-url="${this.entryPointUrl}"></dbp-common-demo> entry-point-url="${this.entryPointUrl}"></dbp-common-demo>
`; `;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment