We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Language don't work

hi,

i try set my language diagram but i have an error:

ej.web.all.min.js:10 Uncaught TypeError: Cannot read property 'cut' of undefined



look: http://jsplayground.syncfusion.com/cggent50

culture js:

<script src="http://cdn.syncfusion.com/14.1.0.41/js/cultures/ej.culture.es-ES.min.js" ></script>


Version: 14.

Thanks!

1 Reply

SG Shyam G Syncfusion Team June 1, 2016 05:20 AM UTC

Hi David, 

You need to define the textual description of the context menu items for your custom cultures. We have modified your JSPlayground and provided below. 

Code example: 
<!--Defines the context menu items with spanish language--> 
ej.datavisualization.Diagram.Locale["es-ES"] = { 
                     cut: "Corte", 
                                 copy: "Copia", 
                                 paste: "Pasta", 
                                 undo: "Deshacer", 
                                 redo: "Rehacer", 
                                 selectAll: "Seleccionar todo", 
                                 grouping: "Agrupación", 
                                 group: "Grupo", 
                                 ungroup: "Desagrupar", 
                                 order: "Fin", 
                                 bringToFront: "Traer a delante", 
                                 moveForward: "Movimiento adelante", 
                                 sendToBack: "Enviar a espalda", 
                                 sendBackward: "Enviar hacia atrás" 
                  }; 



Regards, 
Shyam G 


Loader.
Live Chat Icon For mobile
Up arrow icon