Simple solution to localize your iOS App.

Related tags

Localization Hodor
Overview

GA

Hodor is a simple solution to localize your iOS App quickly, allow you to change language of project in-app without quiting the app, Just like WeChat.

You may interested in my other project

You can add more languages support in your app by create a new Localizations row in Project.

Just like this:

中文文档

Screenshots

Usage

Simple usage like this:

kLang(@"Hello World");

and it will display Hello World in the English environment, 你好 世界 in the Simplified Chinese environment.

Check the code in Xcode if you want to know more details.

Contributing

Thank you for your interest in contributing to Hodor! Your ideas for improving this app are greatly appreciated. The best way to contribute is by submitting a pull request. I'll do my best to respond to you as soon as possible. You can also submit a new GitHub issue if you find bugs or have questions.

License

Copyright (c) 2015 Paul King


Released under the MIT license

中文文档

Hodor 是一套可让你的应用快速支持本地化的解决方案, 允许你在应用内直接更改应用语言而无需退出应用, 类似微信.

开源自 The EST Group 团队.

你或许对我其它项目感兴趣

你可通过创建新的 Localizations 行来添加更多语言支持.

就像这样:

截图

使用

基本的用法:

kLang(@"Hello World");

上述内容将会在英文环境下显示为 Hello World, 中文环境下显示 你好 世界.

打开 Xcode 查看此项目代码了解更多详细信息.

参与贡献

感谢您有兴趣参与 Hodor 的开发, 您可以在本地修改此项目, 经测试后无任何问题即可给我提交 Pull Request, 我会定期查看并 Merge, 若有其它问题, 可通过提交 issue 来让我知道.

许可证

Copyright (c) 2015 Paul King


使用 MIT 许可证 发行.

You might also like...
iOS localization swift code generation project

code-gen-library - localization-swift module code-gen-library - localization-swift module with Python bash script execute to localization swift files(

Check Localizable.strings files of iOS Apps
Check Localizable.strings files of iOS Apps

Rubustrings Check the format and consistency of the Localizable.strings files of iOS Apps with multi-language support Rubustrings is also available fo

transai is a localization tool on Android and iOS.

transai transai is a command line tool to help you do Android and iOS translation management. You can extract string files to csv format, or generate

iOS implementation of the Catrobat language

Catty Catty, also known as Pocket Code for iOS, is an on-device visual programming system for iPhones. Catrobat is a visual programming language and s

Demo project of Swift language crash using Release build on iOS 14

Demo project of Swift language crash using Release build on iOS 14 Repro steps O

Simple solution to localize your iOS App.
Simple solution to localize your iOS App.

Hodor is a simple solution to localize your iOS App quickly, allow you to change language of project in-app without quiting the app, Just like WeChat.

Localize your views directly in Interface Builder with IBLocalizable
Localize your views directly in Interface Builder with IBLocalizable

Localize your views easily in Interface Builder with IBLocalizable. With IBLocalizable, you can localize your views in Interface Builder easily. Simpl

Localize iOS apps in a smarter way using JSON files. Swift framework.
Localize iOS apps in a smarter way using JSON files. Swift framework.

Swifternalization Swift library that helps in localizing apps in a different, better, simpler, more powerful way than system localization does. It use

Super lightweight library that helps you to localize strings, even directly in storyboards!
Super lightweight library that helps you to localize strings, even directly in storyboards!

Translatio Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 9 or higher. Swi

ImagePicker : an all-in-one camera solution for your iOS app
ImagePicker : an all-in-one camera solution for your iOS app

Description ImagePicker is an all-in-one camera solution for your iOS app. It lets your users select images from the library and take pictures at the

All in one eKYC (Electronic Know Your Customer) solution available for android and ios
All in one eKYC (Electronic Know Your Customer) solution available for android and ios

WideKYC All in one eKYC (Electronic Know Your Customer) solution available for android and ios. Wide Technologies provides an SDK for you to implement

PRGTipView is a drop-in solution for adding onboarding tips to your apps
PRGTipView is a drop-in solution for adding onboarding tips to your apps

PRGTipView PRGTipView is a drop-in solution for adding onboarding tips to your apps. It supports: Title, detail and dismissal button Give focus on a p

A simple solution to decrease build time and more cleaner codebase

Swift Optional Optimizer A simple Protocol Oriented solution to decrease build time and more cleaner code base. Are you tired of using ?? in your code

A simple solution for tiring [weak self] in swift

Weakifiable A simple solution for tiring [weak self] in swift Usage give this repo a Star ⭐️ Add EBWeakifiable to your Project. simply after each clos

A simple solution to show a toast message by writing single one line of code
A simple solution to show a toast message by writing single one line of code

easySwiftToast A very simple solution to show a toast message by writing single one line of code. Installation easySwiftToast is available through Coc

🌏 A zero-dependency networking solution for building modern and secure iOS, watchOS, macOS and tvOS applications.
🌏 A zero-dependency networking solution for building modern and secure iOS, watchOS, macOS and tvOS applications.

A zero-dependency networking solution for building modern and secure iOS, watchOS, macOS and tvOS applications. 🚀 TermiNetwork was tested in a produc

 UIAdapter - An elegant solution to the iOS screen adaptation problem
UIAdapter - An elegant solution to the iOS screen adaptation problem

UIAdapter - An elegant solution to the iOS screen adaptation problem 🇨🇳 天朝子民 Features Numerical type fast conversion Storyboard equal scale adaptati

A drop-in universal solution for moving text fields out of the way of the keyboard in iOS

TPKeyboardAvoiding A drop-in universal solution for moving text fields out of the way of the keyboard in iOS. Introduction There are a hundred and one

BetterBlock is the #1 AdBlocking solution for iOS

BetterBlock BetterBlock is the #1 AdBlocking solution for iOS. BetterBlock has auto-updates, no bootlooping (cough cough MYbloXX), easy setup, no batt

Comments
  • Help with implementing library

    Help with implementing library

    Hi, this is not an issue as I was able to edit your project and added new ViewController which worked well. However, after copying the Language.m(.h) files into my project and using kLang(), I am not able to load Chinese Strings (no text shows up if I select Chinese) and English shows when I select English though I have set them up in the Localisable.string for Simplified Chinese. I need help with this. Any pointers will be highly appreciated. Thanks

    opened by saintjab 1
  • 关于系统语言的获取

    关于系统语言的获取

    你好, 我觉得系统语言的获取不应该使用[[NSBundle mainBundle] preferredLocalizations], 而应该取[NSLocale preferredLanguages]中第0个, 再判断, 我只想到了用这种不严谨的判断方法: NSString *firstLanguage = [NSLocale preferredLanguages].firstObject; if ([firstLanguage hasPrefix:@"en"]) { return 英语; } if ([firstLanguage hasPrefix:@"zh-Hans"] || //简体 [firstLanguage hasPrefix:@"yue-Hans"] //粤语简体 ) { return 中文简体; } if ([firstLanguage hasPrefix:@"zh-Hant"] || //繁体 [firstLanguage hasPrefix:@"zh-TW"] || //台湾 [firstLanguage hasPrefix:@"zh-HK"] || //香港 [firstLanguage hasPrefix:@"yue-Hant"] //粤语繁体 ) { return 中文繁体; } if ([firstLanguage hasPrefix:@"ja"]) { return 日语; } if ([firstLanguage hasPrefix:@"ko"]) { return 韩语; }

    return 其他;
    
    opened by jeson251 0
Owner
Aufree
Live a life you will remember.
Aufree
Localize your views directly in Interface Builder with IBLocalizable

Localize your views easily in Interface Builder with IBLocalizable. With IBLocalizable, you can localize your views in Interface Builder easily. Simpl

Chris Jimenez 461 Dec 29, 2022
Localize iOS apps in a smarter way using JSON files. Swift framework.

Swifternalization Swift library that helps in localizing apps in a different, better, simpler, more powerful way than system localization does. It use

Tomasz Szulc 575 Nov 3, 2022
Super lightweight library that helps you to localize strings, even directly in storyboards!

Translatio Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 9 or higher. Swi

Andrea Mario Lufino 19 Jan 29, 2022
Localizations is an OS X app that manages your Xcode project localization files (.strings)

Localizations 0.2 Localizations is an OS X app that manages your Xcode project localization files (.strings). It focuses on keeping .strings files in

Arnaud Thiercelin 129 Jul 19, 2022
Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files.

Installation • Configuration • Usage • Build Script • Donation • Migration Guides • Issues • Contributing • License BartyCrouch BartyCrouch incrementa

Flinesoft 1.3k Jan 1, 2023
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs!

SwiftGen SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images, localised strings, etc), to make them ty

null 8.3k Jan 3, 2023
Android/iOS Apps created to practice with different iOS/Android Tech. These apps were built to have similar feature sets using native Android/iOS.

AgilityFitTodayApp Android/iOS Apps created to practice with different iOS/Android Tech. These apps were built to have similar feature sets using nati

Lauren Yew 1 Feb 25, 2022
Swift friendly localization and i18n with in-app language switching

Localize-Swift Localize-Swift is a simple framework that improves i18n and localization in Swift iOS apps - providing cleaner syntax and in-app langua

Roy Marmelstein 2.9k Dec 29, 2022
Will Powell 1.2k Dec 29, 2022
Crowdin iOS SDK delivers all new translations from Crowdin project to the application immediately

Crowdin iOS SDK Crowdin iOS SDK delivers all new translations from Crowdin project to the application immediately. So there is no need to update this

Crowdin 98 Dec 14, 2022