Skip to content

Commit 20c7a0b

Browse files
committed
localization
1 parent 31fa8ef commit 20c7a0b

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Experiments/Experiments/DefaultFeatureFlagService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
9898
case .notificationSettings:
9999
return true
100100
case .allowMerchantAIAPIKey:
101-
return false
101+
return true
102102
default:
103103
return true
104104
}

WooCommerce/Classes/ViewRelated/Hub Menu/HubMenuViewModel.swift

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ extension HubMenuViewModel {
558558
struct AISettings: HubMenuItem {
559559
static var id = "ai-settings"
560560

561-
let title: String = "AI Settings"
562-
let description: String = "Manage your store's AI-powered features"
561+
let title: String = Localization.aiSettings
562+
let description: String = Localization.aiSettingsDescription
563563
let icon: UIImage = .wandAndRaysInverse
564564
let iconColor: UIColor = .primary
565565
let accessibilityIdentifier: String = "ai-settings"
@@ -748,6 +748,16 @@ extension HubMenuViewModel {
748748
"Payments",
749749
comment: "Title of the hub menu payments button")
750750

751+
static let aiSettings = NSLocalizedString(
752+
"hubMenuViewModel.aiSettings",
753+
value: "AI Settings",
754+
comment: "Title of the hub menu AI settings button")
755+
756+
static let aiSettingsDescription = NSLocalizedString(
757+
"hubMenuViewModel.aiSettingsDescription",
758+
value: "Manage your store's AI-powered features",
759+
comment: "Description of the hub menu AI settings button")
760+
751761
static let paymentsDescription = NSLocalizedString(
752762
"Take payments on the go",
753763
comment: "Description of the hub menu payments button")

0 commit comments

Comments
 (0)