Skip to content

Commit

Permalink
Add exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
flodolo committed Apr 1, 2022
1 parent 1cc6920 commit 7ab070f
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mozorg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
# errors as artifact
continue-on-error: true
run: |
python scripts_repo/l10n/lint_localization.py --toml target_repo/l10n-vendor.toml --ref en --dest errors_vendors.txt
python scripts_repo/l10n/lint_localization.py --toml target_repo/l10n-vendor.toml --ref en --dest errors_vendors.txt --exceptions scripts_repo/l10n/exceptions/mozorg.json
- name: Lint localization (community)
continue-on-error: true
run: |
python scripts_repo/l10n/lint_localization.py --toml target_repo/l10n-pontoon.toml --ref en --dest errors_community.txt
python scripts_repo/l10n/lint_localization.py --toml target_repo/l10n-pontoon.toml --ref en --dest errors_community.txt --exceptions scripts_repo/l10n/exceptions/mozorg.json
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/relay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# errors as artifact
continue-on-error: true
run: |
python scripts_repo/l10n/lint_localization.py --l10n target_repo/ --ref en --dest errors.txt
python scripts_repo/l10n/lint_localization.py --l10n target_repo/ --ref en --dest errors.txt --exceptions scripts_repo/l10n/exceptions/relay.json
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
l10n/exceptions.json
File renamed without changes.
23 changes: 23 additions & 0 deletions l10n/exceptions/mozorg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"HTML": {
"locales": {
"it": [
"en/products/vpn/landing.ftl:vpn-landing-faq-info-question-desc-v2",
"en/mozorg/about/history.ftl:history-in-2013-we-launched-firefox"
]
},
"strings": []
},
"ignore": {
"locales": {},
"strings": []
},
"data-l10n-names": {
"locales": {},
"strings": []
},
"placeables": {
"locales": {},
"strings": []
}
}
22 changes: 22 additions & 0 deletions l10n/exceptions/relay.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"HTML": {
"locales": {},
"strings": []
},
"ignore": {
"locales": {},
"strings": []
},
"data-l10n-names": {
"locales": {},
"strings": []
},
"placeables": {
"locales": {
"sk": [
"app.ftl:profile-promo-email-blocking-label-forwarding"
]
},
"strings": []
}
}

0 comments on commit 7ab070f

Please sign in to comment.