Created
January 5, 2022 10:39
-
-
Save dongmai/a0ddf3f18ff5e572d27f73000629f168 to your computer and use it in GitHub Desktop.
iOS update localization files with fastlane
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
localization = config["localization"] | |
localization.each do |loc| | |
if loc["iso"] == "en" | |
replaceFile( | |
"#{placeHolderPath}/Localized/en.lproj/Localizable.strings", | |
Base64.decode64(loc["content"]) | |
) | |
end | |
if loc["iso"] == "ja" | |
replaceFile( | |
"#{placeHolderPath}/Localized/ja.lproj/Localizable.strings", | |
Base64.decode64(loc["content"]) | |
) | |
end | |
if loc["iso"] == "vi" | |
replaceFile( | |
"#{placeHolderPath}/Localized/vi.lproj/Localizable.strings", | |
Base64.decode64(loc["content"]) | |
) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment