Skip to content

Commit ff3e296

Browse files
authored
Merge pull request #44 from php-translation/bocharsky-bw-patch-2
Add content to the Configuration Reference chapter
2 parents bd38a2d + 92d13c9 commit ff3e296

File tree

1 file changed

+79
-1
lines changed

1 file changed

+79
-1
lines changed

symfony/configuration-reference.rst

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,82 @@
11
Configuration reference
22
=======================
33

4-
TODO
4+
The full default configuration is:
5+
6+
.. code-block:: yaml
7+
8+
translation:
9+
configs:
10+
11+
# Prototype
12+
name:
13+
14+
# Directories we should scan for translations
15+
dirs: []
16+
excluded_dirs: []
17+
excluded_names: []
18+
external_translations_dirs: []
19+
output_format: xlf # One of "php"; "yml"; "xlf"; "po"
20+
blacklist_domains: []
21+
whitelist_domains: []
22+
23+
# Service ids with to classes that supports remote storage of translations.
24+
remote_storage: []
25+
26+
# Service ids with to classes that supports local storage of translations.
27+
local_storage:
28+
29+
# Default:
30+
- php_translation.local_file_storage.abstract
31+
output_dir: '%kernel.root_dir%/Resources/translations'
32+
33+
# The root dir of your project. By default this will be kernel_root's parent.
34+
project_root: ~
35+
36+
# The version of XLIFF XML you want to use (if dumping to this format).
37+
xliff_version: '2.0'
38+
39+
# Options passed to the local file storage's dumper.
40+
local_file_storage_options: []
41+
fallback_translation:
42+
enabled: false
43+
service: google # One of "google"; "yandex"
44+
api_key: null
45+
edit_in_place:
46+
enabled: false
47+
config_name: default
48+
activator: php_translation.edit_in_place.activator
49+
show_untranslatable: true
50+
webui:
51+
enabled: false
52+
allow_create: true
53+
allow_delete: true
54+
55+
# Base path for SourceLocation's. Defaults to "%kernel.project_dir%".
56+
file_base_path: null
57+
locales: []
58+
59+
# Your default language or fallback locale. Default will be kernel.default_locale
60+
default_locale: ~
61+
62+
# Extend the debug profiler with information about requests.
63+
symfony_profiler:
64+
65+
# Turn the symfony profiler integration on or off. Defaults to kernel debug mode.
66+
enabled: true
67+
formatter: null
68+
69+
# Limit long HTTP message bodies to x characters. If set to 0 we do not read the message body. Only available with the default formatter (FullHttpMessageFormatter).
70+
captured_body_length: 0
71+
allow_edit: true
72+
auto_add_missing_translations:
73+
enabled: false
74+
config_name: default
75+
http_client: httplug.client
76+
message_factory: httplug.message_factory
77+
78+
You can also dump the default configuration yourself using Symfony command:
79+
80+
.. code-block:: bash
81+
82+
bin/console config:dump-reference translation

0 commit comments

Comments
 (0)