Skip to content

Commit 3ae1fc8

Browse files
committed
fix Favorite Actions wear tip localization
1 parent 616a33e commit 3ae1fc8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/Backend/wear_bridge.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,13 @@ Future<void> updateWearData(Ref ref) async {
141141
// Listen for gear connect/disconnect events
142142
ref.watch(getAvailableGearProvider);
143143

144-
final WearLocalizationData localizationData =
145-
WearLocalizationData(triggersPage: triggersPage(), actionsPage: watchFavoriteActionsTitle(), favoriteActionsDescription: watchFavoriteActionsNoFavoritesTip(), knownGear: watchKnownGearTitle(), watchKnownGearNoGearPairedTip: watchKnownGearNoGearPairedTip());
144+
final WearLocalizationData localizationData = WearLocalizationData(
145+
triggersPage: triggersPage(),
146+
actionsPage: watchFavoriteActionsTitle(),
147+
favoriteActionsDescription: watchFavoriteActionsNoFavoritesTip(),
148+
knownGear: watchKnownGearTitle(),
149+
watchKnownGearNoGearPairedTip: watchKnownGearNoGearPairedTip(),
150+
);
146151
final WearData wearData = WearData(
147152
favoriteActions: favoriteMap,
148153
configuredTriggers: triggersMap,

lib/Frontend/translation_string_definitions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ String appLanguageSelectorTitle() => Intl.message('App Language', name: 'appLang
448448

449449
String watchKnownGearTitle() => Intl.message('Your Gear', name: 'watchKnownGearTitle', desc: 'The title for the known gear section of the watch app');
450450

451-
String watchFavoriteActionsNoFavoritesTip() => Intl.message('On your phone, Long press an action to favorite', name: 'watchKnownGearTitle', desc: 'the tip for when no actions are favorited on the watch app');
451+
String watchFavoriteActionsNoFavoritesTip() => Intl.message('On your phone, Long press an action to favorite', name: 'watchFavoriteActionsNoFavoritesTip', desc: 'the tip for when no actions are favorited on the watch app');
452452

453453
String watchFavoriteActionsTitle() => Intl.message("Favorite Actions", name: 'watchFavoriteActionsTitle', desc: 'title for the favorite actions section of the watch app');
454454

0 commit comments

Comments
 (0)