TapCommon-Unity/Plugins/iOS/TapCommonSDK.framework/Headers/TDSLocalizeManager.h

46 lines
1.1 KiB
C
Raw Normal View History

//
// TDSLocalizeManager.h
// TDSCommon
//
// Created by Bottle K on 2021/3/8.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM (NSInteger, TapLanguageType) {
TapLanguageType_Auto = 0,// 自动
TapLanguageType_zh_Hans,// 简中
TapLanguageType_en,// 英文
};
@interface TDSLocalizeManager : NSObject
@property (nonatomic, assign) BOOL regionIsIO;
+ (instancetype)shareInstance;
/// 设定当前语言类型
/// @param langType 语言类型
+ (void)setCurrentLanguage:(TapLanguageType)langType;
/// 注册SDK本地化翻译
/// @param sdk SDK tag
/// @param filePath 本地化翻译文件位置
+ (void)addSDKLocalization:(NSString *)sdk localizedFilePath:(NSString *)filePath;
/// 注册SDK本地化翻译
/// @param sdk SDK tag
/// @param localizedDic 本地化翻译字典
+ (void)addSDKLocalization:(NSString *)sdk localizedDic:(NSDictionary *)localizedDic;
/// 获取本地化翻译
/// @param sdk SDK tag
/// @param key 本地化翻译key
+ (NSString *)getLocalizedStringWithSDK:(NSString *)sdk localizedKey:(NSString *)key;
@end
NS_ASSUME_NONNULL_END