Skip to content

Commit

Permalink
Use "Dashboard" for the "plugin" category
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed May 27, 2024
1 parent 66cff65 commit 2ec0df2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/dialogs/hacs-custom-repositories-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class HacsCustomRepositoriesDialog extends LitElement {
mode: "dropdown",
options: this._dialogParams.hacs.info.categories.map((category) => ({
value: category,
label: this._dialogParams!.hacs.localize(`common.${category}`),
label: this._dialogParams!.hacs.localize(`type.${category}`),
})),
},
},
Expand Down
6 changes: 3 additions & 3 deletions src/dashboards/hacs-dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class HacsDashboard extends LitElement {
...repository,
translated_status:
localizeFunc(`repository_status.${repository.status}`) || repository.status,
translated_category: localizeFunc(`common.${repository.category}`),
translated_category: localizeFunc(`type.${repository.category}`),
})),
);

Expand Down Expand Up @@ -330,7 +330,7 @@ export class HacsDashboard extends LitElement {
: ""}
${repository.name}
<div class="secondary">
${narrow ? localizeFunc(`common.${repository.category}`) : repository.description}
${narrow ? localizeFunc(`type.${repository.category}`) : repository.description}
</div>
`,
},
Expand Down Expand Up @@ -465,7 +465,7 @@ export class HacsDashboard extends LitElement {
options: types.map((type) => ({
label: localizeFunc(
// @ts-ignore
`common.${type}`,
`type.${type}`,
),
value: `type_${type}`,
})),
Expand Down
20 changes: 10 additions & 10 deletions src/localize/languages/en.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
{
"common": {
"add": "add",
"appdaemon": "AppDaemon",
"cancel": "Cancel",
"close": "Close",
"download": "Download",
"downloaded": "Downloaded",
"ignore": "Ignore",
"integration_plural": "Integrations",
"integration": "Integration",
"learn_more": "Learn more",
"lovelace": "Lovelace",
"navigate": "Navigate",
"netdaemon": "NetDaemon",
"new": "New",
"plugin": "Lovelace",
"python_script": "Python Script",
"reload": "Reload",
"remove": "Remove",
"repositories": "Repositories",
"repository": "Repository",
"save": "Save",
"show": "Show",
"theme": "Theme",
"template": "Template",
"update": "Update",
"updates": "Updates",
"yes": "Yes"
Expand Down Expand Up @@ -144,6 +135,15 @@
"dismiss": "Dismiss new repositories",
"documentation": "Documentation"
},
"type": {
"integration": "Integration",
"plugin": "Dashboard",
"theme": "Theme",
"python_script": "Python Script",
"appdaemon": "AppDaemon",
"netdaemon": "NetDaemon",
"template": "Template"
},
"dialog": {
"reload": {
"description": "You need to reload your browser for the updated resources to be used.",
Expand All @@ -159,4 +159,4 @@
"confirm": "Go to integrations"
}
}
}
}

0 comments on commit 2ec0df2

Please sign in to comment.