Skip to content
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

Added paths options in Framework::translator configuration #6989

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Configuration
* :ref:`enabled <reference-translator-enabled>`
* `fallbacks`_
* `logging`_
* `paths`_
* `property_access`_
* `magic_call`_
* `throw_exception_on_invalid_index`_
Expand Down Expand Up @@ -1264,6 +1265,13 @@ for a given key. The logs are made to the ``translation`` channel and at the
``debug`` for level for keys where there is a translation in the fallback
locale and the ``warning`` level if there is no translation to use at all.

paths
.....

**type**: ``array`` **default**: ``[]``

This option allows to define an array of paths where the component will look for translation files.

property_access
~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -1555,6 +1563,7 @@ Full Default Configuration
enabled: false
fallbacks: [en]
logging: "%kernel.debug%"
paths: []

# validation configuration
validation:
Expand Down