Skip to content

Commit

Permalink
Collection of localization issues (2) (#22758)
Browse files Browse the repository at this point in the history
* Clarify delay action

* Change order

* Add translations for "line" and "bar"
  • Loading branch information
silamon authored Nov 10, 2024
1 parent e183047 commit 1f6b036
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/data/logbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ const triggerPhrases: Record<TriggerPhraseKeys, string> = {
triggered_by_numeric_state_of: "numeric state of", // number state trigger
triggered_by_state_of: "state of", // state trigger
triggered_by_event: "event", // event trigger
triggered_by_time: "time", // time trigger
triggered_by_time_pattern: "time pattern", // time trigger
triggered_by_time: "time", // time trigger
triggered_by_homeassistant_stopping: "Home Assistant stopping", // stop event
triggered_by_homeassistant_starting: "Home Assistant starting", // start event
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,18 @@ export class HuiStatisticsGraphCardEditor
required: true,
type: "select",
options: [
["line", "Line"],
["bar", "Bar"],
[
"line",
localize(
`ui.panel.lovelace.editor.card.statistics-graph.chart_type_labels.line`
),
],
[
"bar",
localize(
`ui.panel.lovelace.editor.card.statistics-graph.chart_type_labels.bar`
),
],
],
},
{
Expand Down
6 changes: 5 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3367,7 +3367,7 @@
"label": "Wait for time to pass (delay)",
"delay": "Duration",
"description": {
"picker": "Wait some time to perform a sequence of actions.",
"picker": "Wait some time before continuing the sequence of actions.",
"full": "Delay {duration}",
"duration_string": "for {string}",
"duration_template": "based on a template",
Expand Down Expand Up @@ -6044,6 +6044,10 @@
"change": "Change"
},
"chart_type": "Chart type",
"chart_type_labels": {
"line": "Line",
"bar": "Bar"
},
"periods": {
"hour": "Hour",
"day": "Day",
Expand Down

0 comments on commit 1f6b036

Please sign in to comment.