Improve: add missing translate
This commit is contained in:
parent
4838ccaf45
commit
b9a576df4d
@ -146,12 +146,12 @@ class RemoteConfigManager {
|
||||
static func updateConfig(config: RemoteConfigModel, complete:((String?)->())?=nil) {
|
||||
getRemoteConfigData(config: config) { data in
|
||||
guard let newData = data else {
|
||||
complete?("Download fail")
|
||||
complete?(NSLocalizedString("Download fail", comment: "") )
|
||||
return
|
||||
}
|
||||
guard let newConfigString = String(data: newData, encoding: .utf8),
|
||||
verifyConfig(string: newConfigString) else {
|
||||
complete?("Remote Config Format Error")
|
||||
complete?(NSLocalizedString("Remote Config Format Error", comment: ""))
|
||||
return
|
||||
}
|
||||
let savePath = kConfigFolderPath.appending(config.name).appending(".yaml")
|
||||
|
@ -23,6 +23,9 @@
|
||||
/* No comment provided by engineer. */
|
||||
"Direct" = "Direct";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Download fail" = "Download fail";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Global" = "Global";
|
||||
|
||||
@ -50,6 +53,9 @@
|
||||
/* No comment provided by engineer. */
|
||||
"Reload Config Succeed" = "Reload Config Succeed";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Remote Config Format Error" = "Remote Config Format Error";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Remote Config Update" = "Remote Config Update";
|
||||
|
||||
|
@ -23,6 +23,9 @@
|
||||
/* No comment provided by engineer. */
|
||||
"Direct" = "直连";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Download fail" = "下载失败";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Global" = "全局";
|
||||
|
||||
@ -50,6 +53,9 @@
|
||||
/* No comment provided by engineer. */
|
||||
"Reload Config Succeed" = "重载配置文件成功";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Remote Config Format Error" = "托管配置文件格式不正确";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Remote Config Update" = "更新托管配置文件";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user