Hi,
I want to get the month labels translated to different languages (for example to spanish) in my gantt, so I import them in my app.module.ts:
import "syncfusion-ej-global/i18n/ej.culture.es-ES.min.js";
In my component.html I define the locale property:
And in component.ts I assign "es-ES" language to lang:
In development mode (ng serve --open), it works great, but if I build it in production mode (ng build --prod), when executing I get this error.
Uncaught ReferenceError: ej is not defined
at Object.t+P1 (main.71ff5dc….js:1)
at p (runtime.6afe301….js:1)
at Object.zUnb (main.71ff5dc….js:1)
at p (runtime.6afe301….js:1)
at Object.3 (main.71ff5dc….js:1)
at p (runtime.6afe301….js:1)
at n (runtime.6afe301….js:1)
at Array.e [as push] (runtime.6afe301….js:1)
at main.71ff5dc….js:1
Any idea why?
Thanks.