feat(bootstrap): add language type

xiaoyi 2021-05-27 14:19:38 +08:00
parent 2d9bde52f2
commit 43bf50adff
9 changed files with 31 additions and 6 deletions

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 58ded2f44795140928d8c5d2081c1120 guid: 5eff03b83045645b1966f07bef799d44
PluginImporter: PluginImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -4,5 +4,20 @@
}, },
"en":{ "en":{
"network_error_click_retry":"Network error, click to retry" "network_error_click_retry":"Network error, click to retry"
},
"zh_hant":{
"network_error_click_retry":"網路異常,點擊重試"
},
"ja":{
"network_error_click_retry":"ネットワークエラーです。もう一度やり直してください"
},
"ko":{
"network_error_click_retry":"네트워크 오류, 다시 시도하기"
},
"th":{
"network_error_click_retry":"พบข้อผิดพลาดในการเชื่อมต่อ กรุณาลองอีกครั้ง"
},
"id":{
"network_error_click_retry":"Jaringan error. Harap coba lagi."
} }
} }

View File

@ -13,6 +13,11 @@ NS_ASSUME_NONNULL_BEGIN
+ (void)language:(NSString *)language; + (void)language:(NSString *)language;
+ (void)getRegionCode:(void (^)(NSString *result))callback; + (void)getRegionCode:(void (^)(NSString *result))callback;
+ (void)isTapTapInstalled:(void (^)(NSString *result))callback;
+ (void)isTapGlobalInstalled:(void (^)(NSString *result))callback;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END

View File

@ -11,8 +11,13 @@ NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM (NSInteger, TapLanguageType) { typedef NS_ENUM (NSInteger, TapLanguageType) {
TapLanguageType_Auto = 0,// 自动 TapLanguageType_Auto = 0,// 自动
TapLanguageType_zh_Hans,// 简 TapLanguageType_zh_Hans,// 简
TapLanguageType_en,// 英文 TapLanguageType_en,// 英文
TapLanguageType_zh_Hant,// 繁体中文
TapLanguageType_ja,// 日文
TapLanguageType_ko,// 韩文
TapLanguageType_th,// 泰文
TapLanguageType_id,// 印度尼西亚语
}; };
@interface TDSLocalizeManager : NSObject @interface TDSLocalizeManager : NSObject

View File

@ -26,7 +26,7 @@ FOUNDATION_EXPORT const unsigned char TapCommonSDKVersionString[];
#import <TapCommonSDK/TDSDomainManager.h> #import <TapCommonSDK/TDSDomainManager.h>
#import <TapCommonSDK/TDSGameUtil.h> #import <TapCommonSDK/TapGameUtil.h>
#import <TapCommonSDK/TDSAutoLayout.h> #import <TapCommonSDK/TDSAutoLayout.h>
#import <TapCommonSDK/TDSButton.h> #import <TapCommonSDK/TDSButton.h>

View File

@ -1,5 +1,5 @@
// //
// TDSGameUtil.h // TapGameUtil.h
// TDSCommon // TDSCommon
// //
// Created by Bottle K on 2021/2/2. // Created by Bottle K on 2021/2/2.
@ -9,7 +9,7 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@interface TDSGameUtil : NSObject @interface TapGameUtil : NSObject
+ (BOOL)isTapTapInstalled; + (BOOL)isTapTapInstalled;

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: b0f7fded05b0348899cff146e870dc55 guid: 0ec27cd1f9b0f42f39a7f2402b811dda
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}
userData: userData: