File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/Symfony/Bundle/FrameworkBundle/Resources/config Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 27
27
use Symfony \Component \Translation \Extractor \ChainExtractor ;
28
28
use Symfony \Component \Translation \Extractor \ExtractorInterface ;
29
29
use Symfony \Component \Translation \Extractor \PhpExtractor ;
30
+ use Symfony \Component \Translation \FallbackLocaleProvider ;
31
+ use Symfony \Component \Translation \FallbackLocaleProviderInterface ;
30
32
use Symfony \Component \Translation \Formatter \MessageFormatter ;
31
33
use Symfony \Component \Translation \Loader \CsvFileLoader ;
32
34
use Symfony \Component \Translation \Loader \IcuDatFileLoader ;
59
61
'debug ' => param ('kernel.debug ' ),
60
62
],
61
63
abstract_arg ('enabled locales ' ),
64
+ service ('translation.fallback_locale_provider ' )
62
65
])
63
66
->call ('setConfigCacheFactory ' , [service ('config_cache_factory ' )])
64
67
->tag ('kernel.locale_aware ' )
75
78
->set ('translator.formatter.default ' , MessageFormatter::class)
76
79
->args ([service ('identity_translator ' )])
77
80
81
+ ->set ('translation.fallback_locale_provider ' , FallbackLocaleProvider::class)
82
+ ->alias (FallbackLocaleProviderInterface::class, 'translation.fallback_locale_provider ' )
83
+
78
84
->set ('translation.loader.php ' , PhpFileLoader::class)
79
85
->tag ('translation.loader ' , ['alias ' => 'php ' ])
80
86
You can’t perform that action at this time.
0 commit comments