Skip to content

Commit

Permalink
Localize skip button in notifications (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry23011 authored Sep 16, 2023
1 parent d4a8003 commit 73773a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TomatoBar/Notifications.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TBNotificationCenter: NSObject, UNUserNotificationCenterDelegate {

let actionSkipRest = UNNotificationAction(
identifier: TBNotification.Action.skipRest.rawValue,
title: "Skip",
title: NSLocalizedString("TBTimer.onRestStart.skip.title", comment: "Skip"),
options: []
)
let restStartedCategory = UNNotificationCategory(
Expand Down
1 change: 1 addition & 0 deletions TomatoBar/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"TBTimer.onRestStart.title" = "Time's up";
"TBTimer.onRestStart.short.body" = "It's time for a short break!";
"TBTimer.onRestStart.long.body" = "It's time for a long break!";
"TBTimer.onRestStart.skip.title" = "Skip";
"TBTimer.onRestFinish.title" = "Break is over";
"TBTimer.onRestFinish.body" = "Keep up the good work!";
1 change: 1 addition & 0 deletions TomatoBar/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"TBTimer.onRestStart.title" = "时间到";
"TBTimer.onRestStart.short.body" = "小憩时间到!";
"TBTimer.onRestStart.long.body" = "长休息时间到!";
"TBTimer.onRestStart.skip.title" = "跳过";
"TBTimer.onRestFinish.title" = "休息结束";
"TBTimer.onRestFinish.body" = "继续努力!";

0 comments on commit 73773a5

Please sign in to comment.