Skip to content

Commit

Permalink
Update whats new kit
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhnx committed Mar 9, 2022
1 parent 823669a commit 197ecbd
Show file tree
Hide file tree
Showing 19 changed files with 64 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Clendar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 94;
CURRENT_PROJECT_VERSION = 95;
"DEBUG_INFORMATION_FORMAT[sdk=iphoneos*]" = "dwarf-with-dsym";
"DEBUG_INFORMATION_FORMAT[sdk=iphonesimulator*]" = dwarf;
DEVELOPMENT_TEAM = 6TWWD47PW9;
Expand Down Expand Up @@ -2125,7 +2125,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 94;
CURRENT_PROJECT_VERSION = 95;
DEVELOPMENT_TEAM = 6TWWD47PW9;
INFOPLIST_FILE = Clendar/Resources/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
Expand Down
35 changes: 26 additions & 9 deletions Clendar/Helper/Extensions/ClendarApp+WhatsNew.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extension ClendarApp: WhatsNewCollectionProvider {
WhatsNew(
version: WhatsNew.Version(
major: 3,
minor: 2,
minor: 4,
patch: 0
), // specify version here
title: WhatsNew.Title(
Expand All @@ -26,23 +26,39 @@ extension ClendarApp: WhatsNewCollectionProvider {
features: [
.init(
image: .init(
systemName: "clock",
systemName: "wand.and.stars.inverse",
foregroundColor: .orange
),
title: WhatsNew.Text(NSLocalizedString("12 or 24 hour date setting", comment: "")),
subtitle: WhatsNew.Text(NSLocalizedString("You can now choose 12 or 24 hour format, from the settings menu.", comment: ""))
title: WhatsNew.Text(""),
subtitle: WhatsNew.Text(NSLocalizedString("Fix wrong widget theme when changing different languages", comment: ""))
),
.init(
image: .init(
systemName: "arrow.left.arrow.right",
foregroundColor: .cyan
systemName: "wand.and.stars.inverse",
foregroundColor: .indigo
),
title: WhatsNew.Text(NSLocalizedString("Quick date switcher button", comment: "")),
subtitle: WhatsNew.Text(NSLocalizedString("Quickly toggle between dates.", comment: ""))
title: WhatsNew.Text(""),
subtitle: WhatsNew.Text(NSLocalizedString("Fix localization", comment: ""))
),
.init(
image: .init(
systemName: "heart",
systemName: "wand.and.stars.inverse",
foregroundColor: .green
),
title: WhatsNew.Text(""),
subtitle: WhatsNew.Text(NSLocalizedString("Fix action sheet crash", comment: ""))
),
.init(
image: .init(
systemName: "rectangle.portrait.inset.filled",
foregroundColor: .teal
),
title: WhatsNew.Text(""),
subtitle: WhatsNew.Text(NSLocalizedString("Support portrait mode on iPad", comment: ""))
),
.init(
image: .init(
systemName: "heart.fill",
foregroundColor: .red
),
title: WhatsNew.Text(NSLocalizedString("Thanks for using Clendar!", comment: "")),
Expand All @@ -51,6 +67,7 @@ extension ClendarApp: WhatsNewCollectionProvider {
],
primaryAction: .init(
title: WhatsNew.Text(NSLocalizedString("Continue", comment: "")),
backgroundColor: .appRed,
hapticFeedback: {
#if os(iOS)
.notification(.success)
Expand Down
2 changes: 1 addition & 1 deletion Clendar/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.3.4</string>
<string>3.4.0</string>
<key>CFBundleVersion</key>
<string>94</string>
<key>ITSAppUsesNonExemptEncryption</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "12- oder 24-Stunden-Datumseinstellung";
"Have a nice day!" = "Einen schönen Tag noch!";
"Start Week On" = "Beginnen Sie die Woche am";
"NEW" = "NEU";
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "12 or 24 hour date setting";
"Have a nice day!" = "Have a nice day!";
"Start Week On" = "Start Week On";
"NEW" = "NEW";
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "Ajuste de fecha de 12 o 24 horas";
"Have a nice day!" = "¡Que tenga un lindo día!";
"Start Week On" = "Empezar la semana el";
"NEW" = "NUEVA";
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "Réglage de la date sur 12 ou 24 heures";
"Have a nice day!" = "Bonne journée!";
"Start Week On" = "Commencer la semaine le";
"NEW" = "NOUVELLE";
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "12時間または24時間の日付設定";
"Have a nice day!" = "良い1日を!";
"Start Week On" = "週を開始";
"NEW" = "新着";
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "12시간 또는 24시간 날짜 설정";
"Have a nice day!" = "좋은 하루 되세요!";
"Start Week On" = "시작 주";
"NEW" = "새로운";
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "การตั้งค่าวันที่ 12 หรือ 24 ชั่วโมง";
"Have a nice day!" = "ขอให้เป็นวันที่ดี!";
"Start Week On" = "เริ่มสัปดาห์ที่";
"NEW" = "ใหม่";
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "Cài đặt ngày 12 hoặc 24 giờ";
"Have a nice day!" = "Chúc một ngày tốt lành!";
"Start Week On" = "Bắt đầu tuần vào";
"NEW" = "MỚI";
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "12 或 24 小时日期设置";
"Have a nice day!" = "祝你今天过得愉快!";
"Start Week On" = "开始一周";
"NEW" = "新的";
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@
"12 or 24 hour date setting" = "12 或 24 小時日期設置";
"Have a nice day!" = "祝你今天過得愉快!";
"Start Week On" = "開始一周";
"NEW" = "新的";
2 changes: 1 addition & 1 deletion ClendarTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>3.3.4</string>
<string>3.4.0</string>
<key>CFBundleVersion</key>
<string>94</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion ClendarUITests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>3.3.4</string>
<string>3.4.0</string>
<key>CFBundleVersion</key>
<string>94</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion ClendarWatchApp Extension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>3.3.4</string>
<string>3.4.0</string>
<key>CFBundleVersion</key>
<string>94</string>
<key>CLKComplicationPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion ClendarWatchApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>3.3.4</string>
<string>3.4.0</string>
<key>CFBundleVersion</key>
<string>94</string>
<key>UISupportedInterfaceOrientations</key>
Expand Down
2 changes: 1 addition & 1 deletion ClendarWidget/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>3.3.4</string>
<string>3.4.0</string>
<key>CFBundleVersion</key>
<string>94</string>
<key>NSExtension</key>
Expand Down
21 changes: 20 additions & 1 deletion R.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ struct R: Rswift.Validatable {
fileprivate init() {}
}

/// This `R.string.localizable` struct is generated, and contains static references to 160 localization keys.
/// This `R.string.localizable` struct is generated, and contains static references to 161 localization keys.
struct localizable {
/// en translation: ... and many more features to come in the future!
///
Expand Down Expand Up @@ -800,6 +800,10 @@ struct R: Rswift.Validatable {
///
/// Locales: en, vi, ja, zh-hans, es, ko, zh-hant, th, de, fr
static let moreCalendarIdentifiersSuchAs = Rswift.StringResource(key: "More calendar identifiers, such as:", tableName: "Localizable", bundle: R.hostingBundle, locales: ["en", "vi", "ja", "zh-hans", "es", "ko", "zh-hant", "th", "de", "fr"], comment: nil)
/// en translation: NEW
///
/// Locales: en, vi, ja, zh-hans, es, ko, zh-hant, th, de, fr
static let neW = Rswift.StringResource(key: "NEW", tableName: "Localizable", bundle: R.hostingBundle, locales: ["en", "vi", "ja", "zh-hans", "es", "ko", "zh-hant", "th", "de", "fr"], comment: nil)
/// en translation: Name
///
/// Locales: en, vi, ja, zh-hans, es, ko, zh-hant, th, de, fr
Expand Down Expand Up @@ -2343,6 +2347,21 @@ struct R: Rswift.Validatable {
return NSLocalizedString("More calendar identifiers, such as:", bundle: bundle, comment: "")
}

/// en translation: NEW
///
/// Locales: en, vi, ja, zh-hans, es, ko, zh-hant, th, de, fr
static func neW(preferredLanguages: [String]? = nil) -> String {
guard let preferredLanguages = preferredLanguages else {
return NSLocalizedString("NEW", bundle: hostingBundle, comment: "")
}

guard let (_, bundle) = localeBundle(tableName: "Localizable", preferredLanguages: preferredLanguages) else {
return "NEW"
}

return NSLocalizedString("NEW", bundle: bundle, comment: "")
}

/// en translation: Name
///
/// Locales: en, vi, ja, zh-hans, es, ko, zh-hant, th, de, fr
Expand Down

0 comments on commit 197ecbd

Please sign in to comment.