Skip to content

Commit

Permalink
添加重要警告预览
Browse files Browse the repository at this point in the history
  • Loading branch information
Finb committed Nov 13, 2024
1 parent 448d814 commit f858105
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Bark/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,40 @@
}
}
},
"criticalAlert" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Critical Alert"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "重要警告"
}
}
}
},
"criticalAlertNotice" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Critical Alert will ignore silent and Do Not Disturb modes. \nVolume range: 1-10."
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "重要警告会忽略静音设置和勿扰模式,无论设备是否静音,通知都会提示并播放声音。\n音量参数 volume 取值范围: 1-10。"
}
}
}
},
"CustomedNotificationContent" : {
"extractionState" : "manual",
"localizations" : {
Expand Down
6 changes: 6 additions & 0 deletions Controller/HomeViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ class HomeViewModel: ViewModel, ViewModelType {
moreInfo: NSLocalizedString("encryptionSettings"),
moreViewModel: CryptoSettingViewModel()
),
PreviewModel(
body: NSLocalizedString("criticalAlert"),
notice: NSLocalizedString("criticalAlertNotice"),
queryParameter: "level=critical&volume=5",
image: UIImage(named: "criticalAlert")
),
PreviewModel(
body: NSLocalizedString("interruptionLevel"),
notice: NSLocalizedString("interruptionLevelNotice"),
Expand Down

0 comments on commit f858105

Please sign in to comment.