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) {
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>
......
......@@ -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"
}
......@@ -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 %>"
......
......@@ -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>
`;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment