Skip to content

Commit 88c806b

Browse files
committed
Skip duplicated keys validation due to issue with en.lproj/
Parsing the `en.lproj/Localizable.strings` file when looking for duplicated keys raises an error. We haven't been able to identify the error's source, but it could be an UTF-encoding related issue. The new localization tooling, 62d1c5e (#6936), ensures localization files are always UTF-8. I run the linting on the `en.lproj/Localizable.strings` that the new tooling would generate on `trunk` and didn't experience the crash. Side note: The new tooling was introduce after the 9.3 code freeze, so it's available on `trunk` but hasn't run to generate a new `.strings` file there yet.
1 parent 7b5271d commit 88c806b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fastlane/Fastfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,11 @@ platform :ios do
917917

918918
desc 'Lint the `.strings` files'
919919
lane :lint_localizations do
920-
ios_lint_localizations(input_dir: RESOURCES_FOLDER, allow_retry: true)
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+
)
921925
end
922926

923927
def write_file(path, contents)

0 commit comments

Comments
 (0)