Search code examples
devextreme-angular

localize devextreme dx-date-box Angular 2+ in custom language


I would to like localize devextreme dx-date-box in Armenian language, I'm working with devextreme-intl , I added for the devextreme grid my custom language .json file into devextreme/localization/messages but for dx-date-box I can't, could you help me how can I do it?

And please when you install node-modules, after installation change the module.exports = require("stream"); into module.exports = require("readable-stream"); the file url is node_modules/jszip/lib/readable-stream-browser.js localizate-dx-date-box.zip

I've posted into the Github this question.

Thanks.

enter image description here


Solution

  • So I've solved the localization with custom language in my case in Armenian for whole devextreme components (including calendar dx-date-box) but with Globalize not with Intl, I've changed the location of the JSON files move it into assets/i18n and into the JSON files I've added the calendar's translating, so you need only download the project and install, npm install, I've done some changing into the configuration.

    The project Angular CLI: 7.0.7 globalize-localization.zip

    Add "typings.d.ts" file into the project see here

    src/typings.d.ts
    

    package.json

    I've added "typings": "typings.d.ts"

    tsconfig.json

    add "path" like this github.com/DevExpress, some modules ("resolveJsonModule": true, "esModuleInterop": true) for using JSON files into the project.

    The question is posted in the Devextreme Support Center devexpress.com/Support/Center/Question

    enter image description here