diff --git a/translation/lint.rst b/translation/lint.rst index 29cec3c5008..bcdd42eae9b 100644 --- a/translation/lint.rst +++ b/translation/lint.rst @@ -32,3 +32,16 @@ The linter results can be exported to JSON using the ``--format`` option: $ php bin/console lint:yaml translations/ --format=json $ php bin/console lint:xliff translations/ --format=json + +.. tip:: + + The Yaml component provides a stand-alone ``yaml-lint`` binary to lint YAML + files without using the entire Symfony console application: + + .. code-block:: terminal + + $ php vendor/bin/yaml-lint translations/ + + .. versionadded:: 5.1 + + The ``yaml-lint`` binary was introduced in Symfony 5.1.