Closed tilimac closed 5 years ago
Loading UI display for translation
On my local, i've this error : Unable to find template "JMSTranslationBundle::base.html.twig" (looked into: F:\www\evalandgo\site/templates) in @JMSTranslation\Translate\index.html.twig at line 1.
Unable to find template "JMSTranslationBundle::base.html.twig" (looked into: F:\www\evalandgo\site/templates) in @JMSTranslation\Translate\index.html.twig at line 1.
I go on this URL site.com/_trans. My config :
jms_translation: locales: ['fr','en','es','pt','it','de'] source_language: 'en' configs: app: dirs: ["%kernel.root_dir%/../templates", "%kernel.root_dir%/../src"] output_dir: "%kernel.project_dir%/translations" excluded_names: ["*TestCase.php", "*Test.php"] excluded_dirs: [cache, data, logs]
In my routes files, i add :
JMSTranslationBundle_ui: resource: "@JMSTranslationBundle/Controller/" prefix: /_trans
And i add this in my services.yaml
services: [...] JMS\TranslationBundle\Controller\TranslateController: public: true arguments: $configFactory: '@jms_translation.config_factory' $loader: '@jms_translation.loader_manager' JMS\TranslationBundle\Controller\ApiController: public: true arguments: $configFactory: '@jms_translation.config_factory' $updater: '@jms_translation.updater'
Someone has a solution ?
fixed in https://github.com/schmittjoh/JMSTranslationBundle/pull/504
Must update layout path to "@JMSTranslationBundle/base.html.twig" If your symfony version greater than 6
"@JMSTranslationBundle/base.html.twig"
Expected behavior
Loading UI display for translation
Actual behavior
On my local, i've this error :
Unable to find template "JMSTranslationBundle::base.html.twig" (looked into: F:\www\evalandgo\site/templates) in @JMSTranslation\Translate\index.html.twig at line 1.
Steps to reproduce
I go on this URL site.com/_trans. My config :
In my routes files, i add :
And i add this in my services.yaml
Someone has a solution ?