-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lint task for translations #255
Add lint task for translations #255
Conversation
@@ -164,6 +166,10 @@ | |||
"lint-php-cs": "@php vendor/bin/php-cs-fixer fix --verbose --diff --dry-run", | |||
"lint-composer": "@composer validate --no-check-publish --strict", | |||
"lint-twig": "@php bin/console lint:twig templates/", | |||
"lint-xliff": "@php bin/console lint:xliff translations/", | |||
"lint-translations": [ | |||
"@php bin/console debug:translation en --only-missing" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additonal languages a project can add itself via:
- "@php bin/console debug:translation en --only-missing"
+ "@php bin/console debug:translation en --only-missing",
+ "@php bin/console debug:translation de --only-missing"
In some cases it may be best to translate all via:
- "@php bin/console debug:translation en --only-missing",
+ "@php bin/console debug:translation --all en --only-missing",
But specially if more bundles are added I want may only validate my own translations and not admin bundles.
@@ -164,6 +166,10 @@ | |||
"lint-php-cs": "@php vendor/bin/php-cs-fixer fix --verbose --diff --dry-run", | |||
"lint-composer": "@composer validate --no-check-publish --strict", | |||
"lint-twig": "@php bin/console lint:twig templates/", | |||
"lint-xliff": "@php bin/console lint:xliff translations/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may make sense if a project use xliff files. still if project not using it it can remove it.
What's in this PR?
Add lint task for translations.
Why?
Add a lint task to show which translation where missed when run
composer lint
.Todo