From 6d9e822132424e33bf0887c56bb5e3ce86e0fe60 Mon Sep 17 00:00:00 2001 From: Shivan Kaul Sahib Date: Wed, 12 Apr 2023 17:57:10 -0700 Subject: [PATCH] Fix settings UI issues --- .../resources/settings/brave_overrides/privacy_page.ts | 10 +++++----- .../resources/settings/brave_overrides/site_details.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/browser/resources/settings/brave_overrides/privacy_page.ts b/browser/resources/settings/brave_overrides/privacy_page.ts index da448968481d..fd12d36962a1 100644 --- a/browser/resources/settings/brave_overrides/privacy_page.ts +++ b/browser/resources/settings/brave_overrides/privacy_page.ts @@ -109,7 +109,7 @@ function InsertLocalhostAccessSubpage ( '[Brave Settings Overrides] Couldn\'t find localhost access subpage') } else { localhostAccessSubpage.setAttribute('page-title', - I18nBehavior.i18n('siteSettingsCategoryLocalhostAccess')) + loadTimeData.getString('siteSettingsCategoryLocalhostAccess')) const localhostAccessDefault = localhostAccessTemplate.content.getElementById('localhostAccessDefault') if (!localhostAccessDefault) { @@ -118,10 +118,10 @@ function InsertLocalhostAccessSubpage ( } else { localhostAccessDefault.setAttribute( 'toggle-off-label', - I18nBehavior.i18n('siteSettingsLocalhostAccessAsk')) + loadTimeData.getString('siteSettingsLocalhostAccessAsk')) localhostAccessDefault.setAttribute( 'toggle-on-label', - I18nBehavior.i18n('siteSettingsLocalhostAccessAsk')) + loadTimeData.getString('siteSettingsLocalhostAccessAsk')) } const localhostExceptions = localhostAccessTemplate.content.getElementById('localhostExceptions') @@ -131,10 +131,10 @@ function InsertLocalhostAccessSubpage ( } else { localhostExceptions.setAttribute( 'block-header', - I18nBehavior.i18n('siteSettingsLocalhostAccessBlockExceptions')) + loadTimeData.getString('siteSettingsLocalhostAccessBlockExceptions')) localhostExceptions.setAttribute( 'allow-header', - I18nBehavior.i18n('siteSettingsLocalhostAccessAllowExceptions')) + loadTimeData.getString('siteSettingsLocalhostAccessAllowExceptions')) } } } diff --git a/browser/resources/settings/brave_overrides/site_details.ts b/browser/resources/settings/brave_overrides/site_details.ts index 4fb440d401b9..29a804ea5ddf 100644 --- a/browser/resources/settings/brave_overrides/site_details.ts +++ b/browser/resources/settings/brave_overrides/site_details.ts @@ -99,7 +99,7 @@ RegisterPolymerTemplateModifications({ '[Brave Settings Overrides] Localhost access settings not found') } else { localhostAccessSettings.setAttribute( - 'label', I18nBehavior.i18n('siteSettingsLocalhostAccess')) + 'label', loadTimeData.getString('siteSettingsLocalhostAccess')) } curChild++ }