Latest 0.0.3
Homepage https://github.com/GrayLand119/LocalizableDemo
License MIT
Platforms ios 8.0, requires ARC
Authors

App国际化语言管理工具,实现App内切换语言(App语言不随系统语言变化而变化)
0.0.1版本目前只添加了英语和简体中文

1.使用方法

1.1 给自己的工程添加国际化语言

略.(教程Google or Baidu)

1.2 使用GLLanguageManager

import "GLLanguageManager.h"后直接调用GLLocalizedString宏

GLLocalizedString(key, comment)

_label2.text = GLLocalizedString(@"main_banana", nil);

1.3 切换语言

- (void)changeLanguageType:(GLLanguageType)type;

1.4 目前支持语言

0.0.1版本目前只添加了英语和简体中文

typedef NS_ENUM(NSUInteger, GLLanguageType) {
    GLLanguageTypeEnglish,
    GLLanguageTypeChineseSimple,
};

安装方法

pod ‘GLLanguageManager’

Latest podspec

{
    "name": "GLLanguageManager",
    "version": "0.0.3",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "appu56fdu9645u5316u8bedu8a00u7ba1u7406u5de5u5177,u53efu5728appu5185u5207u6362u8bedu8a00",
    "homepage": "https://github.com/GrayLand119/LocalizableDemo",
    "authors": {
        "GrayLand": "[email protected]"
    },
    "source": {
        "git": "https://github.com/GrayLand119/LocalizableDemo.git",
        "tag": "0.0.3"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "GLLanguageManager/*.{h,m}"
}

Pin It on Pinterest

Share This