Last active
July 6, 2020 08:22
-
-
Save seyhunak/0bf2ec7bdf530850a8a2ebec9f89f743 to your computer and use it in GitHub Desktop.
Initializer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Lokalise | |
| func applicationDidBecomeActive(_ application: UIApplication) { | |
| Lokalise.shared.checkForUpdates { _, _ in } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| protocol Initializer { | |
| func perform() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let initializers: [Initializer] = [ | |
| LokaliseInitializer() | |
| ] | |
| initializers.forEach { | |
| $0.perform() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Lokalise | |
| class LokaliseInitializer: Initializer { | |
| func perform() { | |
| Lokalise.shared.setAPIToken("472b823ae94430928f60562ef4b9f64dcf3bbbce", projectID: "3947163159df13df851b51.98101647") | |
| Lokalise.shared.swizzleMainBundle() | |
| Lokalise.shared.localizationType = .prerelease // TODO: Ortama göre localizationType değişmelidir. | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment