{"id":30672956,"url":"https://github.com/janlionly/swiftyinapplocalization","last_synced_at":"2026-05-16T18:10:24.313Z","repository":{"id":62456977,"uuid":"281301587","full_name":"janlionly/SwiftyInAppLocalization","owner":"janlionly","description":"Support for switching the language at run time.","archived":false,"fork":false,"pushed_at":"2021-07-31T19:21:10.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T11:17:19.969Z","etag":null,"topics":["changelanguage","in-app","l10n","l10n-runtime","language","localization","localization-runtime","objective-c","runtime","swift"],"latest_commit_sha":null,"homepage":"https://github.com/janlionly/InAppLocalization","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janlionly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-21T05:12:48.000Z","updated_at":"2021-07-31T19:21:00.000Z","dependencies_parsed_at":"2022-11-01T23:04:09.525Z","dependency_job_id":null,"html_url":"https://github.com/janlionly/SwiftyInAppLocalization","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/janlionly/SwiftyInAppLocalization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2FSwiftyInAppLocalization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2FSwiftyInAppLocalization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2FSwiftyInAppLocalization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2FSwiftyInAppLocalization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janlionly","download_url":"https://codeload.github.com/janlionly/SwiftyInAppLocalization/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlionly%2FSwiftyInAppLocalization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273077227,"owners_count":25041358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["changelanguage","in-app","l10n","l10n-runtime","language","localization","localization-runtime","objective-c","runtime","swift"],"created_at":"2025-09-01T05:40:09.799Z","updated_at":"2026-05-16T18:10:24.236Z","avatar_url":"https://github.com/janlionly.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftyInAppLocalization\n\n[![Version](https://img.shields.io/cocoapods/v/SwiftyInAppLocalization.svg?style=flat)](https://cocoapods.org/pods/SwiftyInAppLocalization)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License](https://img.shields.io/cocoapods/l/SwiftyInAppLocalization.svg?style=flat)](https://github.com/janlionly/SwiftyInAppLocalization/blob/master/LICENSE)\n[![Platform](https://img.shields.io/cocoapods/p/SwiftyInAppLocalization.svg?style=flat)](https://github.com/janlionly/SwiftyInAppLocalization)\n![Swift](https://img.shields.io/badge/%20in-swift%204.2-orange.svg)\n\n## Description\n**SwiftyInAppLocalization** which supports to switch the language at run time. Compatible with both Swift and Objective-C.\n\n## Installation\n### CocoaPods\n```swift\npod 'SwiftyInAppLocalization'\n```\n\n### Carthage\n```swift\ngithub \"janlionly/SwiftyInAppLocalization\"\n```\n\n### Swift Package Manager\n- iOS: Open Xcode, File-\u003eSwift Packages, search input **https://github.com/janlionly/SwiftyInAppLocalization.git**, and then select Version Up to Next Major **1.0.0** \u003c .\n- Or add dependencies in your `Package.swift`:\n```swift\n.package(url: \"https://github.com/janlionly/SwiftyInAppLocalization.git\", .upToNextMajor(from: \"1.0.0\")),\n```\n\n## Usage\n\nBefore do this, Firstly, you should set your **localizations** in your Xcode project; Secondly, add **Localizable.strings** and localize it.\n\n\n```swift\nfunc application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -\u003e Bool {\n  // Set you default language after launching\n  SwiftyInAppLocalization.shared().defaultLanguageCode = \"en\"\n  return true\n}\n\n// somewhere you want to change language call \"setCurrentLanguageCode\", and must reload your view controller.\nlet ctrl = UIStoryboard(name: \"Main\", bundle: nil).instantiateInitialViewController()!\nSwiftyInAppLocalization.shared().setCurrentLanguageCode(\"ja\", reload: ctrl) { (view) in\n   view.alpha = 0\n}\n\n// or set the parameter of 'reload' to nil, then you do reload your view controller by yourself\nSwiftyInAppLocalization.shared().setCurrentLanguageCode(language.languageCode, reload: nil, animation: nil)\n// reload your view controller here\n// ...\n```\n\n## Requirements\n\n- iOS 8.0+\n- Swift 4.2 to 5.2\n\n## Author\nVisit my github: [janlionly](https://github.com/janlionly)\u003cbr\u003e\nContact with me by email: janlionly@gmail.com\n\n## Contribute\nI would love you to contribute to **SwiftyInAppLocalization**\n\n## License\n**SwiftyInAppLocalization** is available under the MIT license. See the [LICENSE](https://github.com/janlionly/SwiftyInAppLocalization/blob/master/LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlionly%2Fswiftyinapplocalization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanlionly%2Fswiftyinapplocalization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlionly%2Fswiftyinapplocalization/lists"}