This commit is contained in:
2025-11-17 20:07:39 +08:00
parent ee433db4ad
commit 005e3c7581
43 changed files with 529 additions and 172 deletions

View File

@@ -174,9 +174,9 @@ static NSString * const kKBKeyboardExtensionBundleId = @"com.loveKey.nyx.CustomK
// VM Apple +
[[KBLoginVM shared] signInWithAppleFromViewController:KB_CURRENT_NAV completion:^(BOOL success, NSError * _Nullable error) {
if (success) {
[KBHUD showInfo:@"登录成功"];
[KBHUD showInfo:KBLocalized(@"Signed in successfully")];
} else {
NSString *msg = error.localizedDescription ?: @"登录失败";
NSString *msg = error.localizedDescription ?: KBLocalized(@"Sign-in failed");
[KBHUD showInfo:msg];
}
}];
@@ -281,17 +281,17 @@ static BOOL KBIsKeyboardEnabled(void) {
return;
}
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"网络不可用"
message:@"请在“设置”中检查本应用的无线数据权限或网络连接。"
UIAlertController *alert = [UIAlertController alertControllerWithTitle:KBLocalized(@"Network unavailable")
message:KBLocalized(@"Please check this app's wireless-data permission or network connection in Settings.")
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *settings = [UIAlertAction actionWithTitle:@"去设置"
UIAlertAction *settings = [UIAlertAction actionWithTitle:KBLocalized(@"Open Settings")
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * _Nonnull action) {
[self kb_openAppSettings]; //
}];
UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"取消"
UIAlertAction *cancel = [UIAlertAction actionWithTitle:KBLocalized(@"Cancel")
style:UIAlertActionStyleCancel
handler:nil];