mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-08 17:28:46 +01:00
Reorganize profile localization settings into dedicated card (#29496)
Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
This commit is contained in:
@@ -6,7 +6,6 @@ import { fireEvent } from "../../common/dom/fire_event";
|
||||
import { nextRender } from "../../common/util/render-status";
|
||||
import "../../components/ha-button";
|
||||
import "../../components/ha-card";
|
||||
import "../../components/ha-divider";
|
||||
import "../../components/ha-md-list";
|
||||
import "../../components/ha-md-list-item";
|
||||
import { isExternal } from "../../data/external";
|
||||
@@ -128,12 +127,16 @@ class HaProfileSectionGeneral extends LitElement {
|
||||
</ha-card>
|
||||
<ha-card
|
||||
.header=${this.hass.localize(
|
||||
"ui.panel.profile.user_settings_header"
|
||||
"ui.panel.profile.user_preferences_header"
|
||||
)}
|
||||
>
|
||||
<div class="card-content">
|
||||
${this.hass.localize("ui.panel.profile.user_settings_detail")}
|
||||
${this.hass.localize("ui.panel.profile.user_preferences_detail")}
|
||||
</div>
|
||||
<ha-pick-language-row
|
||||
.narrow=${this.narrow}
|
||||
.hass=${this.hass}
|
||||
></ha-pick-language-row>
|
||||
<ha-pick-theme-row
|
||||
.narrow=${this.narrow}
|
||||
.hass=${this.hass}
|
||||
@@ -182,11 +185,19 @@ class HaProfileSectionGeneral extends LitElement {
|
||||
`
|
||||
: ""}
|
||||
</ha-md-list>
|
||||
<ha-divider></ha-divider>
|
||||
<ha-pick-language-row
|
||||
</ha-card>
|
||||
<ha-card
|
||||
.header=${this.hass.localize(
|
||||
"ui.panel.profile.localization_header"
|
||||
)}
|
||||
>
|
||||
<div class="card-content">
|
||||
${this.hass.localize("ui.panel.profile.localization_detail")}
|
||||
</div>
|
||||
<ha-pick-time-zone-row
|
||||
.narrow=${this.narrow}
|
||||
.hass=${this.hass}
|
||||
></ha-pick-language-row>
|
||||
></ha-pick-time-zone-row>
|
||||
<ha-pick-number-format-row
|
||||
.narrow=${this.narrow}
|
||||
.hass=${this.hass}
|
||||
@@ -199,10 +210,6 @@ class HaProfileSectionGeneral extends LitElement {
|
||||
.narrow=${this.narrow}
|
||||
.hass=${this.hass}
|
||||
></ha-pick-date-format-row>
|
||||
<ha-pick-time-zone-row
|
||||
.narrow=${this.narrow}
|
||||
.hass=${this.hass}
|
||||
></ha-pick-time-zone-row>
|
||||
<ha-pick-first-weekday-row
|
||||
.narrow=${this.narrow}
|
||||
.hass=${this.hass}
|
||||
|
||||
@@ -9547,8 +9547,10 @@
|
||||
},
|
||||
"current_user": "You are currently logged in as {fullName}.",
|
||||
"is_owner": "You are an owner.",
|
||||
"user_settings_header": "User settings",
|
||||
"user_settings_detail": "The following settings are tied to your account and will persist across all sessions and devices.",
|
||||
"user_preferences_header": "User preferences",
|
||||
"user_preferences_detail": "The following settings are tied to your account and will persist across all sessions and devices.",
|
||||
"localization_header": "Localization",
|
||||
"localization_detail": "These settings are tied to your account and control how dates, times, and numbers are displayed.",
|
||||
"mobile_app_settings": "Mobile app settings",
|
||||
"browser_settings": "Browser settings",
|
||||
"client_settings_detail": "The following settings are local to this client only, and may reset to defaults on logout or when local data is cleared.",
|
||||
|
||||
Reference in New Issue
Block a user