Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

use translation for headers

Vincentd2cf4b1e2082
diff --git a/manager/src/web/shared/locales/en/or.json b/manager/src/web/shared/locales/en/or.json
index 3ac8f711b..015e56ee3 100644
--- a/manager/src/web/shared/locales/en/or.json
+++ b/manager/src/web/shared/locales/en/or.json
@@ -9,6 +9,7 @@
"assets": "Assets",
"attribute": "Attribute",
"attribute_plural": "Attributes",
+ "optional_attributes": "Optional attributes",
"insights": "Insights",
"scenes": "Scenes",
"settings": "Settings",
diff --git a/manager/src/web/shared/locales/nl/or.json b/manager/src/web/shared/locales/nl/or.json
index 4677fcd25..acd2564f5 100644
--- a/manager/src/web/shared/locales/nl/or.json
+++ b/manager/src/web/shared/locales/nl/or.json
@@ -8,6 +8,8 @@
"asset_plural": "Assets",
"assets": "Assets",
"attribute": "Attribuut",
+ "attribute_plural": "Attributen",
+ "optional_attributes": "Optionele attributen",
"insights": "Inzicht",
"scenes": "Scenes",
"settings": "Instellingen",
diff --git a/ui/component/or-asset-tree/src/or-add-asset-dialog.ts b/ui/component/or-asset-tree/src/or-add-asset-dialog.ts
index c98ab9610..0e83bb3b4 100644
--- a/ui/component/or-asset-tree/src/or-add-asset-dialog.ts
+++ b/ui/component/or-asset-tree/src/or-add-asset-dialog.ts
@@ -209,7 +209,7 @@ export class OrAddAssetDialog extends LitElement {
? html``
: html`
<div>
- <strong>Attributes</strong>
+ <strong>${i18next.t("attribute_plural")}</strong>
<ul style="margin-top: 0.5em">
${attributes.map(item => html`<li>${Util.getAttributeLabel(undefined, item, undefined, true)}</li>`)}
</ul>
@@ -220,7 +220,7 @@ export class OrAddAssetDialog extends LitElement {
? html``
: html`
<div>
- <strong>Optional attributes</strong>
+ <strong>${i18next.t("optional_attributes")}</strong>
<ul style="margin-top: 0.5em">
${optionalAttributes.map(item => html`<li>${Util.getAttributeLabel(undefined, item, undefined, true)}</li>`)}
</ul>