Skip to content

Instantly share code, notes, and snippets.

@dongmai
Created January 5, 2022 10:39
Show Gist options
  • Save dongmai/a0ddf3f18ff5e572d27f73000629f168 to your computer and use it in GitHub Desktop.
Save dongmai/a0ddf3f18ff5e572d27f73000629f168 to your computer and use it in GitHub Desktop.
iOS update localization files with fastlane
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