From fbeac49146cc3a1d759dda570352ab421959e26f Mon Sep 17 00:00:00 2001 From: Hunter Baker <62899372+literally-anything@users.noreply.github.com> Date: Mon, 1 Jul 2024 22:38:44 -0400 Subject: [PATCH] Add strings for gauge and details widget parameters --- .../Resources/en.lproj/Localizable.strings | 15 ++++++++++ .../Shared/Resources/Swiftgen/Strings.swift | 30 +++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/Sources/App/Resources/en.lproj/Localizable.strings b/Sources/App/Resources/en.lproj/Localizable.strings index 2cdad1ac1..fe068eec3 100644 --- a/Sources/App/Resources/en.lproj/Localizable.strings +++ b/Sources/App/Resources/en.lproj/Localizable.strings @@ -854,8 +854,23 @@ Home Assistant is free and open source home automation software with a focus on "widgets.open_page.description" = "Open a frontend page in Home Assistant."; "widgets.open_page.not_configured" = "No Pages Available"; "widgets.open_page.title" = "Open Page"; +"widgets.gauge.gauge_type" = "Gauge Type"; +"widgets.gauge.server" = "Server"; +"widgets.gauge.value_template" = "Value Template (0-1)"; +"widgets.gauge.value_label_template" = "Value Label Template"; +"widgets.gauge.min_label_template" = "Min Label Template"; +"widgets.gauge.max_label_template" = "Max Label Template"; +"widgets.gauge.run_action" = "Run Action"; +"widgets.gauge.action" = "Action"; "widgets.gauge.description" = "Display numeric states from Home Assistant in a gauge"; "widgets.gauge.title" = "Gauge"; +"widgets.details.server" = "Server"; +"widgets.details.upper_template" = "Upper Text Template"; +"widgets.details.lower_template" = "Lower Text Template"; +"widgets.details.details_template" = "Details Text Template (only in rectangular family)"; +"widgets.details.max_label_template" = "Max Label Template"; +"widgets.details.run_action" = "Run Action (only in rectangular family)"; +"widgets.details.action" = "Action"; "widgets.details.description" = "Display states using from Home Assistant in text"; "widgets.details.title" = "Details"; "yes_label" = "Yes"; diff --git a/Sources/Shared/Resources/Swiftgen/Strings.swift b/Sources/Shared/Resources/Swiftgen/Strings.swift index 185a96e47..39b2e1df9 100644 --- a/Sources/Shared/Resources/Swiftgen/Strings.swift +++ b/Sources/Shared/Resources/Swiftgen/Strings.swift @@ -2867,16 +2867,46 @@ public enum L10n { public static var reloadTimeline: String { return L10n.tr("Localizable", "widgets.button.reload_timeline") } } public enum Details { + /// Action + public static var action: String { return L10n.tr("Localizable", "widgets.details.action") } /// Display states using from Home Assistant in text public static var description: String { return L10n.tr("Localizable", "widgets.details.description") } + /// Details Text Template (only in rectangular family) + public static var detailsTemplate: String { return L10n.tr("Localizable", "widgets.details.details_template") } + /// Lower Text Template + public static var lowerTemplate: String { return L10n.tr("Localizable", "widgets.details.lower_template") } + /// Max Label Template + public static var maxLabelTemplate: String { return L10n.tr("Localizable", "widgets.details.max_label_template") } + /// Run Action (only in rectangular family) + public static var runAction: String { return L10n.tr("Localizable", "widgets.details.run_action") } + /// Server + public static var server: String { return L10n.tr("Localizable", "widgets.details.server") } /// Details public static var title: String { return L10n.tr("Localizable", "widgets.details.title") } + /// Upper Text Template + public static var upperTemplate: String { return L10n.tr("Localizable", "widgets.details.upper_template") } } public enum Gauge { + /// Action + public static var action: String { return L10n.tr("Localizable", "widgets.gauge.action") } /// Display numeric states from Home Assistant in a gauge public static var description: String { return L10n.tr("Localizable", "widgets.gauge.description") } + /// Gauge Type + public static var gaugeType: String { return L10n.tr("Localizable", "widgets.gauge.gauge_type") } + /// Max Label Template + public static var maxLabelTemplate: String { return L10n.tr("Localizable", "widgets.gauge.max_label_template") } + /// Min Label Template + public static var minLabelTemplate: String { return L10n.tr("Localizable", "widgets.gauge.min_label_template") } + /// Run Action + public static var runAction: String { return L10n.tr("Localizable", "widgets.gauge.run_action") } + /// Server + public static var server: String { return L10n.tr("Localizable", "widgets.gauge.server") } /// Gauge public static var title: String { return L10n.tr("Localizable", "widgets.gauge.title") } + /// Value Label Template + public static var valueLabelTemplate: String { return L10n.tr("Localizable", "widgets.gauge.value_label_template") } + /// Value Template (0-1) + public static var valueTemplate: String { return L10n.tr("Localizable", "widgets.gauge.value_template") } } public enum OpenPage { /// Open a frontend page in Home Assistant.