File tree Expand file tree Collapse file tree
assets/controllers/elements Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import "ckeditor5/ckeditor5.css";;
2929import "../../css/components/ckeditor.css" ;
3030
3131const translationContext = require . context (
32- 'ckeditor5/ translations' ,
32+ 'ckeditor5- translations' , //Alias defined in webpack.config.js
3333 false ,
3434 //Only load the translation files we will really need
3535 / ( d e | i t | f r | r u | j a | c s | d a | z h | p l | h u ) \. j s $ /
Original file line number Diff line number Diff line change 2222var Encore = require ( '@symfony/webpack-encore' ) ;
2323
2424const zlib = require ( 'zlib' ) ;
25+ const path = require ( 'path' )
2526const CompressionPlugin = require ( "compression-webpack-plugin" ) ;
2627const BundleAnalyzerPlugin = require ( 'webpack-bundle-analyzer' ) . BundleAnalyzerPlugin ;
2728
@@ -133,6 +134,10 @@ Encore
133134 loader . exclude = / c k e d i t o r 5 - [ ^ / \\ ] + [ / \\ ] t h e m e [ / \\ ] i c o n s [ / \\ ] [ ^ / \\ ] + \. s v g $ / ;
134135 } )
135136
137+ . addAliases ( {
138+ 'ckeditor5-translations' : path . resolve ( __dirname , 'node_modules/ckeditor5/dist/translations' )
139+ } )
140+
136141
137142;
138143
You can’t perform that action at this time.
0 commit comments