Localization of DocumentEditor and toolbar

Greetings sirs,

I'm having problems trying to localize the DocumentEditor component using plain JavaScript.

I did noticed there's a same thread having almost exact same question.

The difference is I have multiple pages that will use the DocumentEditor, it'll be quite stupid to have codes below in every pages.

    ej.base.L10n.load({
        "cn": {
            "tab": {
                "closeButtonTitle": "Close Button"
            },
            "pivotview": {
                "column": "column",
                "collapse": "collapse",
            }
        }
    });


So i was wondering if there's any way I can do things like import to make it happen.

In README of  ej2-locale Github did have an example of using ajax to load locale object, but I have no idea how to use it.

Is it possible to have any example to reference?

Thank you.


1 Reply 1 reply marked as answer

SM Suriya Murugan Syncfusion Team October 20, 2021 10:48 AM UTC

Hi Arashi, 

Syncfusion Greetings! 

We have prepared the simple sample for your reference. Please check it from below link: 


In which we have referred Arabic language json for two file. 

Please let us know if you have any questions. 

Regards, 
Suriya M. 


Marked as answer
Loader.
Up arrow icon