Latest 0.0.1
Homepage https://github.com/hirohisa/SLBundle
License MIT
Authors

SLBundle provides to specify a standard language for iOS.

First or second primary language is English in iOS’s localization. If you change primary language, SLBundle can do.

Installation

There are two ways to use this in your project:

  • Copy the ImageLoader class files into your project

  • Install with CocoaPods to write Podfile
    platform :ios
    pod 'SLBundle', '~> 0.0.1'

Usage

Select standard language

[SLBundle mainBundle].standardLanguageCode = @"ja";

Excluding languages

[SLBundle mainBundle].exclusionLanguageCodes = @[@"en"];

localize

NSString *string = SLLocalizedString(@"key");

or

NSString *string = [[SLBundle mainBundle] localizedStringForKey:@"key" value:@"" table:@"Example"];

Example

If you are Japanese, you want to develop in Japanese but your product is not support in Japanese.

#ifdef DEBUG
    [SLBundle mainBundle].standardLanguageCode = @"ja";
#else
    [SLBundle mainBundle].exclusionLanguageCodes = @[@"ja"];
#endif

Latest podspec

{
    "name": "SLBundle",
    "version": "0.0.1",
    "summary": "SLBundle provides to specify a standard language",
    "description": "SLBundle provides to specify a standard language for iOS.nnFirst or second primary language is English in iOS's localization. If you change primary language, SLBundle can do.n",
    "homepage": "https://github.com/hirohisa/SLBundle",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Hirohisa Kawasaki": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hirohisa/SLBundle.git",
        "tag": "0.0.1"
    },
    "source_files": "SLBundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This