Skip to content

Commit 7620abf

Browse files
committed
feature symfony#6989 Added paths options in Framework::translator configuration (mickaelandrieu)
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes symfony#6989). Discussion ---------- Added paths options in Framework::translator configuration Hi, Note this option is already documented in Translator docs, and a blog post mention it too: http://symfony.com/blog/new-in-symfony-2-8-translator-improvements#add-option-to-specify-additional-translation-loading-paths Mickaël Commits ------- e1c55d0 Added paths options in Framework::translator configuration
2 parents b5fe1b4 + e1c55d0 commit 7620abf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

reference/configuration/framework.rst

+9
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Configuration
8686
* :ref:`enabled <reference-translator-enabled>`
8787
* `fallbacks`_
8888
* `logging`_
89+
* `paths`_
8990
* `property_access`_
9091
* `magic_call`_
9192
* `throw_exception_on_invalid_index`_
@@ -1315,6 +1316,13 @@ for a given key. The logs are made to the ``translation`` channel and at the
13151316
``debug`` for level for keys where there is a translation in the fallback
13161317
locale and the ``warning`` level if there is no translation to use at all.
13171318

1319+
paths
1320+
.....
1321+
1322+
**type**: ``array`` **default**: ``[]``
1323+
1324+
This option allows to define an array of paths where the component will look for translation files.
1325+
13181326
property_access
13191327
~~~~~~~~~~~~~~~
13201328

@@ -1638,6 +1646,7 @@ Full Default Configuration
16381646
enabled: false
16391647
fallbacks: [en]
16401648
logging: "%kernel.debug%"
1649+
paths: []
16411650
16421651
# validation configuration
16431652
validation:

0 commit comments

Comments
 (0)