-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add parameter to iOS Lint to make failing on extra strings optional (#…
…631)
- Loading branch information
Showing
6 changed files
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
10 changes: 10 additions & 0 deletions
10
spec/test-data/translations/ios_lint_localizations/extra-strings-in-translations-error.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
test_data: | ||
en: |- | ||
"base_string" = "This is in the base language"; | ||
fr: |- | ||
"base_string" = "This is in French"; | ||
"extra_string" = "This string only exists in French"; | ||
result: | ||
fr: | ||
- '`extra_string` was unexpected, as it is not present in the base locale.' |
8 changes: 8 additions & 0 deletions
8
...test-data/translations/ios_lint_localizations/extra-strings-in-translations-no-error.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
test_data: | ||
en: |- | ||
"base_string" = "This is in the base language"; | ||
fr: |- | ||
"base_string" = "This is in French"; | ||
"extra_string" = "This string only exists in French"; | ||
result: {} |