I am trying to translate the columns as follows:

Ext.define ("Element.locale.ru.office.view.element.workstationList.WorkstationList", {override: "Ews.office.view.element.workstationList.WorkstationList", title: "List of Jobs", columns: [ {dataIndex: "PARAMS", text: "Parameters"}]});

In the hope that according to dataIndex, sencha will only replace text with an automatic machine (a similar mechanism is involved in the field inheritance in models).

But alas, there is nothing of the kind here and what is happening is happening. The columns parameter is overwritten with a new one; as a result, all column settings are lost.

Sandbox https://fiddle.sencha.com/#view/editor&fiddle/1q4p

How to localize table columns?

    1 answer 1

    At one time, I did not bother the locale or third-party development (plug-ins, bundles) available in the public domain. In the DOM, when I loaded the page, I formed a view element

    <script id="Localizator" ...> var Localize { 'firstname' : 'Имя', 'lastname' : 'Фамилия' ... }; </script> 

    I wrote a method for getting this object and its values, and I used it in the format

     columns: [{ header: Ext.app.Loc('firstname') }] 

    This worked fine on ExtJS 3.2, I can’t say anything about modern versions of ExtJS)

    • Thanks for the answer! Most likely I will. - Khusamov Sukhrob