SpreadJS 15
SpreadJS Designer Component / Customizations / Customize Designer Localization
In This Topic
    Customize Designer Localization
    In This Topic

    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 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.
    Copy Code
    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!";
    var designer = new GC.Spread.Sheets.Designer.Designer(document.getElementById("designerHost"));

     The below output will be generated: