[]
        
(Showing Draft Content)

Customize Designer Localization

You can customize the Designer Component localization using the getResources and setResources methods. These methods help to modify the localization resources through the following steps:

  1. Get the original designer resource object using the getResources method.

  2. Modify the content of the resource object.

  3. Set the modified resource object using setResources method.

  4. Initialize the designer.

Note: If you set resources after initializing the designer, you will have to modify and set the config in the designer to change the ribbon resources.

var resources = GC.Spread.Sheets.Designer.getResources();
resources.ok = "OK!";
resources.formatDialog.title = "Format Dialog!"
resources.ribbon.home.home = "HOME!";
resources.ribbon.home.paste = "Paste!";
GC.Spread.Sheets.Designer.setResources(resources);

var designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById("designerHost"));

The below output will be generated: