From 658bb5d03451185504f196a2d49babc4f7cedab5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Lapersonne Date: Wed, 26 Jun 2024 09:49:07 +0200 Subject: [PATCH] fix(#111): display of working key instead of value in tips Signed-off-by: Pierre-Yves Lapersonne --- WidgetsKit/Sources/WidgetsKit/Tips/MainNavigationTip.swift | 4 ++-- WidgetsKit/Sources/WidgetsKit/Tips/MenuCustomizableTip.swift | 4 ++-- WidgetsKit/Sources/WidgetsKit/Tips/TimelineDoubleTapTip.swift | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/WidgetsKit/Sources/WidgetsKit/Tips/MainNavigationTip.swift b/WidgetsKit/Sources/WidgetsKit/Tips/MainNavigationTip.swift index 16ae518..f540ce8 100644 --- a/WidgetsKit/Sources/WidgetsKit/Tips/MainNavigationTip.swift +++ b/WidgetsKit/Sources/WidgetsKit/Tips/MainNavigationTip.swift @@ -14,11 +14,11 @@ public struct MainNavigationTip: Tip { } public var title: Text { - Text("tip.mainNavigation.title", bundle: Bundle.module, comment: "Main navigation tip title.") + Text(NSLocalizedString("tip.mainNavigation.title", bundle: Bundle.module, comment: "Main navigation tip title.")) } public var message: Text? { - Text("tip.mainNavigation.message", bundle: Bundle.module, comment: "Main navigation tip message.") + Text(NSLocalizedString("tip.mainNavigation.message", bundle: Bundle.module, comment: "Main navigation tip message.")) } public var image: Image? { diff --git a/WidgetsKit/Sources/WidgetsKit/Tips/MenuCustomizableTip.swift b/WidgetsKit/Sources/WidgetsKit/Tips/MenuCustomizableTip.swift index bb307d3..e429da0 100644 --- a/WidgetsKit/Sources/WidgetsKit/Tips/MenuCustomizableTip.swift +++ b/WidgetsKit/Sources/WidgetsKit/Tips/MenuCustomizableTip.swift @@ -14,11 +14,11 @@ public struct MenuCustomizableTip: Tip { } public var title: Text { - Text("tip.menuCustomizable.title", bundle: Bundle.module, comment: "Menu customizable tip title.") + Text(NSLocalizedString("tip.menuCustomizable.title", bundle: Bundle.module, comment: "Menu customizable tip title.")) } public var message: Text? { - Text("tip.menuCustomizable.message", bundle: Bundle.module, comment: "Menu customizable tip message.") + Text(NSLocalizedString("tip.menuCustomizable.message", bundle: Bundle.module, comment: "Menu customizable tip message.")) } public var image: Image? { diff --git a/WidgetsKit/Sources/WidgetsKit/Tips/TimelineDoubleTapTip.swift b/WidgetsKit/Sources/WidgetsKit/Tips/TimelineDoubleTapTip.swift index d74e2f7..4e65431 100644 --- a/WidgetsKit/Sources/WidgetsKit/Tips/TimelineDoubleTapTip.swift +++ b/WidgetsKit/Sources/WidgetsKit/Tips/TimelineDoubleTapTip.swift @@ -14,11 +14,11 @@ public struct TimelineDoubleTapTip: Tip { } public var title: Text { - Text("tip.timelineDoubleTap.title", bundle: Bundle.module, comment: "Timeline double tip title.") + Text(NSLocalizedString("tip.timelineDoubleTap.title", bundle: Bundle.module, comment: "Timeline double tip title.")) } public var message: Text? { - Text("tip.timelineDoubleTap.message", bundle: Bundle.module, comment: "Timeline double tip message.") + Text(NSLocalizedString("tip.timelineDoubleTap.message", bundle: Bundle.module, comment: "Timeline double tip message.")) } public var image: Image? {