Latest 0.0.2
Homepage https://github.com/Alittlefly/AppLanguageChange
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation
Authors

AppLanguageChange


How to use?

pod 'LanguageChange'

Demo Code

  • 设置table,table只能设置一次
    //   tableName "LanguageChange"
    [[FSSharedLanguages SharedLanguage] setTableName:@"LanguageChange"];
  • 读取文字
    NSString *value = [FSSharedLanguages CustomLocalizedStringWithKey:@"key"];

其他方法

  • followSystem

YES: 跟随系统当前的语言
NO:自己设定

读取特定的语言的value

    NSLog(@"%@",[FSSharedLanguages CustomLocalizedStringWithKey:@"keyaaa" LanguageType:FSSharedLanaguageTypeChinese]);

Latest podspec

{
    "name": "LanguageChange",
    "version": "0.0.2",
    "summary": "u8fd9u662fu4e00u4e2au5e94u7528u5185u5207u6362u8bedu8a00u7684u5de5u5177u7c7b.",
    "description": "u5207u6362u591au8bedu8a00,u53efu4ee5u8bfbu53d6stringsu5185u7684u591au8bedu8a00u6587u4ef6",
    "homepage": "https://github.com/Alittlefly/AppLanguageChange",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "gaochao": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Alittlefly/AppLanguageChange.git",
        "tag": "0.0.2"
    },
    "source_files": "Sources/*.{h,m}",
    "frameworks": "Foundation",
    "requires_arc": true
}

Pin It on Pinterest

Share This