File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,6 @@ file. 2 of the new items are::
138
138
'path' => 'var/translations/configuration.js',
139
139
],
140
140
141
- .. caution ::
142
-
143
- If you change the ``dump_directory `` in your configuration file, you will need to
144
- replace the default ``var/translations/*** `` with your new path in the
145
- ``importmap.php `` file.
146
-
147
141
These are then imported in your ``assets/translator.js `` file. This setup is
148
142
very similar to working with WebpackEncore. However, the ``var/translations/index.js ``
149
143
file contains *every * translation in your app, which is not ideal for production
Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ public function prepend(ContainerBuilder $container)
43
43
if (!$ this ->isAssetMapperAvailable ($ container )) {
44
44
return ;
45
45
}
46
- $ config = $ container -> getExtensionConfig ( ' ux_translator ' )[ 0 ];
46
+
47
47
$ container ->prependExtensionConfig ('framework ' , [
48
48
'asset_mapper ' => [
49
49
'paths ' => [
50
50
__DIR__ .'/../../assets/dist ' => '@symfony/ux-translator ' ,
51
- $ config [ ' dump_directory ' ] => '@app /translations ' ,
51
+ ' %kernel.project_dir%/var/translations ' => 'var /translations ' ,
52
52
],
53
53
],
54
54
]);
You can’t perform that action at this time.
0 commit comments