在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):cmaftuleac/BundleLocalization开源软件地址(OpenSource Url):https://github.com/cmaftuleac/BundleLocalization开源编程语言(OpenSource Language):Objective-C 100.0%开源软件介绍(OpenSource Introduction):BundleLocalizationWorkaround for XCode base internationalization to support on-the-fly language change ReasoningBase internationalization is awesome, but sometimes not enough. Sometimes users want to change the language inside an application, rather than changing on the whole device. Currently there is no way to change the bundle language while the application is running. These set of classes are here to do just that! Usage
or
Nothing more is required, you can use NSLocalizedString() as usual. NotesRemember that for the nib/storyboards to be translated you need to reload them. Implementation detailsThis implementation works by tweaking inside NSBundle. The idea is that you override the method localizedStringForKey on the instance of NSBundle object, and then call this method on a different bundle with a different language. Simple and elegant fully compatible with all types of resources. LcenceMIT Licence. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论