mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 07:36:34 +03:00
Adding PHP translation
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
translation:
|
||||
symfony_profiler: # must be placed in config_dev.yml
|
||||
enabled: true
|
||||
@@ -0,0 +1,14 @@
|
||||
translation:
|
||||
locales: ["en", "sv", "fr"]
|
||||
webui:
|
||||
enabled: true
|
||||
edit_in_place:
|
||||
enabled: false
|
||||
config_name: app
|
||||
activator: php_translation.edit_in_place.activator
|
||||
configs:
|
||||
app:
|
||||
dirs: ["%kernel.project_dir%/templates", "%kernel.root_dir%/src"]
|
||||
output_dir: "%kernel.project_dir%/Resources/translations"
|
||||
excluded_names: ["*TestCase.php", "*Test.php"]
|
||||
excluded_dirs: [cache, data, logs]
|
||||
@@ -0,0 +1,6 @@
|
||||
_translation_webui:
|
||||
resource: "@TranslationBundle/Resources/config/routing_webui.yml"
|
||||
prefix: /admin
|
||||
|
||||
_translation_profiler:
|
||||
resource: '@TranslationBundle/Resources/config/routing_symfony_profiler.yml'
|
||||
@@ -0,0 +1,3 @@
|
||||
_translation_edit_in_place:
|
||||
resource: '@TranslationBundle/Resources/config/routing_edit_in_place.yml'
|
||||
prefix: /admin
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user