Answer the question
In order to leave comments, you need to log in
How to specify env in path for localization?
Symphony 5.3.6. You need to specify a variable for localization in the path, I do this:
<?php
use Symfony\Config\FrameworkConfig;
return static function (FrameworkConfig $frameworkConfig) {
$frameworkConfig
->defaultLocale('ru')
->translator()
->paths([
'%kernel.project_dir%/i18n/default',
'%kernel.project_dir%/i18n/client/%env(APP_CLIENT)%',
])
->enabledLocales(['ru', 'en', 'de', 'es', 'zh_cn']);
};
Incompatible use of dynamic environment variables "APP_CLIENT" found in parameters.
Answer the question
In order to leave comments, you need to log in
https://symfony.com/doc/current/configuration.html...
https://symfony.com/doc/current/configuration/env_...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question