-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Description
Hello,
I want to translate buttons label and tooltips and did it that way :
L.drawLocal.draw.toolbar.actions.title = this.translateService.instant(
'app.map.draw.toolbar.actions.title',
);
L.drawLocal.draw.toolbar.actions.text = this.translateService.instant(
'app.map.draw.toolbar.actions.text',
);
L.drawLocal.draw.toolbar.finish.title = this.translateService.instant(
'app.map.draw.toolbar.finish.title',
);
L.drawLocal.draw.toolbar.finish.text = this.translateService.instant(
'app.map.draw.toolbar.finish.text',
);
L.drawLocal.draw.toolbar.undo.title = this.translateService.instant(
'app.map.draw.toolbar.undo.title',
);
L.drawLocal.draw.toolbar.undo.text = this.translateService.instant(
'app.map.draw.toolbar.undo.text',
);
L.drawLocal.draw.toolbar.buttons.polygon = this.translateService.instant(
'app.map.draw.toolbar.buttons.polygon',
);
where L is :
import * as L from 'leaflet';
In local, it's working successful. However, in production build, got the following error
ERROR TypeError: Cannot read properties of undefined (reading 'draw')
at o.configureLeafletDrawLocalization
and drawLocal is undefined.
Any idea of a resolution way ?
Thanks for answer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels