Skip to content

Commit

Permalink
Add strings for gauge and details widget parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
literally-anything committed Jul 2, 2024
1 parent abd90c0 commit fbeac49
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Sources/App/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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";
30 changes: 30 additions & 0 deletions Sources/Shared/Resources/Swiftgen/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fbeac49

Please sign in to comment.