diff --git a/src/panels/profile/ha-change-password-card.js b/src/panels/profile/ha-change-password-card.js
index 4e7657f5b9..5d36df5638 100644
--- a/src/panels/profile/ha-change-password-card.js
+++ b/src/panels/profile/ha-change-password-card.js
@@ -5,9 +5,14 @@ import '@polymer/paper-card/paper-card.js';
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
import { PolymerElement } from '@polymer/polymer/polymer-element.js';
+import LocalizeMixin from '../../mixins/localize-mixin.js';
+
import '../../resources/ha-style.js';
-class HaChangePasswordCard extends PolymerElement {
+/*
+ * @appliesMixin LocalizeMixin
+ */
+class HaChangePasswordCard extends LocalizeMixin(PolymerElement) {
static get template() {
return html`
-
+
[[_errorMsg]]
@@ -38,30 +43,30 @@ class HaChangePasswordCard extends PolymerElement {
[[_statusMsg]]
-
+
@@ -70,7 +75,9 @@ class HaChangePasswordCard extends PolymerElement {
- Submit
+ [[localize('ui.panel.profile.change_password.submit')]]
diff --git a/src/panels/profile/ha-mfa-module-setup-flow.js b/src/panels/profile/ha-mfa-module-setup-flow.js
index 5ff9a42981..f5970dd568 100644
--- a/src/panels/profile/ha-mfa-module-setup-flow.js
+++ b/src/panels/profile/ha-mfa-module-setup-flow.js
@@ -48,10 +48,10 @@ class HaMfaModuleSetupFlow extends
- Aborted
+ [[localize('ui.panel.profile.mfa_setup.title_aborted')]]
- Success!
+ [[localize('ui.panel.profile.mfa_setup.title_success')]]
[[_computeStepTitle(localize, _step)]]
@@ -70,7 +70,7 @@ class HaMfaModuleSetupFlow extends
- Setup done for [[_step.title]]
+ [[localize('ui.panel.profile.mfa_setup.step_done', 'step', _step.title)]]
@@ -90,17 +90,23 @@ class HaMfaModuleSetupFlow extends
diff --git a/src/panels/profile/ha-mfa-modules-card.js b/src/panels/profile/ha-mfa-modules-card.js
index 5935d5423b..0eb884d1c1 100644
--- a/src/panels/profile/ha-mfa-modules-card.js
+++ b/src/panels/profile/ha-mfa-modules-card.js
@@ -41,7 +41,7 @@ class HaMfaModulesCard extends EventsMixin(LocalizeMixin(PolymerElement)) {
margin-right: -.57em;
}
-
+
@@ -49,10 +49,14 @@ class HaMfaModulesCard extends EventsMixin(LocalizeMixin(PolymerElement)) {
[[module.id]]
- Disable
+ [[localize('ui.panel.profile.mfa.disable')]]
- Enable
+ [[localize('ui.panel.profile.mfa.enable')]]
@@ -99,7 +103,12 @@ class HaMfaModulesCard extends EventsMixin(LocalizeMixin(PolymerElement)) {
}
_disable(ev) {
- if (!confirm(`Are you sure you want to disable ${ev.model.module.name}?`)) return;
+ if (!confirm(this.localize(
+ 'ui.panel.profile.mfa.confirm_disable',
+ 'name', ev.model.module.name
+ ))) {
+ return;
+ }
const mfaModuleId = ev.model.module.id;
diff --git a/src/panels/profile/ha-panel-profile.js b/src/panels/profile/ha-panel-profile.js
index e855c583c8..69a2f562d7 100644
--- a/src/panels/profile/ha-panel-profile.js
+++ b/src/panels/profile/ha-panel-profile.js
@@ -12,6 +12,7 @@ import '../../components/ha-menu-button.js';
import '../../resources/ha-style.js';
import EventsMixin from '../../mixins/events-mixin.js';
+import LocalizeMixin from '../../mixins/localize-mixin.js';
import './ha-change-password-card.js';
import './ha-mfa-modules-card.js';
@@ -24,8 +25,9 @@ import './ha-push-notifications-row.js';
/*
* @appliesMixin EventsMixin
+ * @appliesMixin LocalizeMixin
*/
-class HaPanelProfile extends EventsMixin(PolymerElement) {
+class HaPanelProfile extends EventsMixin(LocalizeMixin(PolymerElement)) {
static get template() {
return html`