Skip to content

Commit 41ed766

Browse files
authored
Merge pull request #113 from wordpress-mobile/fix/ios-localization
Fix iOS localization
2 parents 2d1264d + f19c432 commit 41ed766

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_localize_project.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ def self.run(params)
55
UI.message "Updating project localisation..."
66

77
require_relative '../../helper/ios/ios_git_helper.rb'
8+
other_action.cocoapods()
89
Fastlane::Helpers::IosGitHelper.localize_project()
910

1011
UI.message "Done."

lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_git_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ def self.final_tag(version)
6969
def self.localize_project()
7070
Action.sh("cd #{ENV["PROJECT_ROOT_FOLDER"]} && ./Scripts/localize.py")
7171
Action.sh("git add #{ENV["PROJECT_ROOT_FOLDER"]}#{ENV["PROJECT_NAME"]}*.lproj/Localizable.strings")
72-
is_repo_clean = `git status --porcelain`.empty?
72+
is_repo_clean = `git status --porcelain`.empty?
7373
if is_repo_clean then
74-
Action.sh("git diff-index --quiet HEAD || git commit -m \"Updates strings for localization\"")
75-
Action.sh("git push origin HEAD")
74+
UI.message("No new strings, skipping commit.")
7675
else
77-
UI.message("No new strings, skipping commit.")
76+
Action.sh("git commit -m \"Updates strings for localization\"")
77+
Action.sh("git push origin HEAD")
7878
end
7979
end
8080

0 commit comments

Comments
 (0)