Skip to content

Commit

Permalink
Change 1 integrations to 1 integration (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow authored Dec 23, 2020
1 parent afda028 commit 5995d4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/localize/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
},
"restart": {
"title": "Pending restart",
"content": "You have {number} integrations that requires a restart of Home Assistant, you can do that from the 'Server Controls' section under the configuration part of Home Assistant UI."
"content": "You have {number} {pluralWording} that requires a restart of Home Assistant, you can do that from the 'Server Controls' section under the configuration part of Home Assistant UI."
},
"removed": "Removed repository '{repository}'"
},
Expand Down
8 changes: 7 additions & 1 deletion src/tools/get-messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ export const getMessages = memoizeOne((hacs: Hacs, repositories: Repository[]) =
name: hacs.localize("entry.messages.restart.title"),
info: hacs
.localize("entry.messages.restart.content")
.replace("{number}", String(repositoriesRestartPending.length)),
.replace("{number}", String(repositoriesRestartPending.length))
.replace(
"{pluralWording}",
repositoriesRestartPending.length == 1
? hacs.localize("common.integration")
: hacs.localize("common.integration_plural")
),
severity: "error",
path: "/config/server_control",
});
Expand Down

0 comments on commit 5995d4a

Please sign in to comment.