How to change the diagram context in l10n

Hi,

I cannot find the document about how to change the native context of diagram follow multi language




1 Reply

AR Aravind Ravi Syncfusion Team June 14, 2022 10:58 AM UTC

Hi Lorryl,


We have created a sample to show context menu with multi language. By using the localization we can able to show context menu with multi language. In the sample we have displayed context menu items with german culture. So based on your language you can change the context menu items. Please refer to the below code snippet and sample


setCulture('de-DE');

 

/**

 * Default FlowShape sample

 */

 

 

 L10n.load({

  'de-DE': {

      'diagram': {

        "Copy": "Kopieren",

        "Cut": "Ausschneiden",

        "Paste": "Einfügen",

        "Undo": "Rückgängig machen",

        "Redo": "Redo",

        "SelectAll": "Wählen Sie Alle",

        "Grouping": "Gruppierung",

        "Group": "Gruppe",

        "UnGroup": "Gruppierung aufheben",

        "Order": "Bestellung",

        "BringToFront": "Nach vorne bringen",

        "MoveForward": "Vorwärts bewegen",

        "SendToBack": "An Zurück senden",

        "SendBackward": "Rückwärts senden"

      },

    

  }

});


Sample: https://stackblitz.com/edit/angular-wrouzn?file=app.component.ts


For more information about how to use localization, please refer to the below UG link


UG link: https://ej2.syncfusion.com/angular/documentation/common/globalization/localization/#changing-current-locale


Regards

Aravind Ravi


Loader.
Up arrow icon