File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ platform :ios do
207207 lane :new_beta_release do |options |
208208 ios_betabuild_prechecks ( options )
209209 download_localized_strings_and_metadata_from_glotpress
210- ios_lint_localizations ( input_dir : 'WooCommerce/Resources' , allow_retry : true )
210+ lint_localizations
211211 ios_bump_version_beta
212212 version = ios_get_app_version
213213 trigger_beta_build ( branch_to_build : "release/#{ version } " )
@@ -283,7 +283,7 @@ platform :ios do
283283 )
284284
285285 download_localized_strings_and_metadata_from_glotpress
286- ios_lint_localizations ( input_dir : 'WooCommerce/Resources' , allow_retry : true )
286+ lint_localizations
287287 ios_bump_version_beta
288288
289289 # Wrap up
@@ -915,6 +915,15 @@ platform :ios do
915915 ios_localize_project
916916 end
917917
918+ desc 'Lint the `.strings` files'
919+ lane :lint_localizations do
920+ ios_lint_localizations (
921+ input_dir : RESOURCES_FOLDER ,
922+ allow_retry : true ,
923+ check_duplicate_keys : false # skip for 9.3, which has an issue in the en file
924+ )
925+ end
926+
918927 def write_file ( path , contents )
919928 FileUtils . rm_f ( path )
920929 file = File . new ( path , 'w' )
You can’t perform that action at this time.
0 commit comments