将 devextreme dx-date-box Angular 2+ 本地化为自定义语言
localize devextreme dx-date-box Angular 2+ in custom language
我想将 devextreme
dx-date-box
本地化为 亚美尼亚语 语言,我正在使用 devextreme-intl
,我为 devextreme 添加了将我的自定义语言 .json
文件网格化到 devextreme/localization/messages
但对于 dx-date-box
我不能,你能帮我怎么做吗?
请在安装节点模块时,在安装后更改 module.exports = require("stream")
;进入 module.exports = require("readable-stream")
;文件 url 是 node_modules/jszip/lib/readable-stream-browser.js
localizate-dx-date-box.zip
我已将此问题发布到 Github。
谢谢。
所以我在 Armenian for whole devextreme components (including calendar dx-date-box
) but with Globalize not with Intl 中使用 自定义语言 解决了本地化问题,我更改了 JSON 文件将其移动到 assets/i18n
和 JSON 文件中我已经添加了日历的翻译,所以你只需要下载项目并安装,npm install
,我已经做了一些更改配置。
项目Angular CLI: 7.0.7
globalize-localization.zip
Add "typings.d.ts" file into the project see here
src/typings.d.ts
package.json
我添加了"typings": "typings.d.ts"
tsconfig.json
像这样 github.com/DevExpress 添加 "path"
,一些模块 ("resolveJsonModule": true, "esModuleInterop": true
) 用于将 JSON 文件使用到项目中。
问题发布在 Devextreme 支持中心
devexpress.com/Support/Center/Question
我想将 devextreme
dx-date-box
本地化为 亚美尼亚语 语言,我正在使用 devextreme-intl
,我为 devextreme 添加了将我的自定义语言 .json
文件网格化到 devextreme/localization/messages
但对于 dx-date-box
我不能,你能帮我怎么做吗?
请在安装节点模块时,在安装后更改 module.exports = require("stream")
;进入 module.exports = require("readable-stream")
;文件 url 是 node_modules/jszip/lib/readable-stream-browser.js
localizate-dx-date-box.zip
我已将此问题发布到 Github。
谢谢。
所以我在 Armenian for whole devextreme components (including calendar dx-date-box
) but with Globalize not with Intl 中使用 自定义语言 解决了本地化问题,我更改了 JSON 文件将其移动到 assets/i18n
和 JSON 文件中我已经添加了日历的翻译,所以你只需要下载项目并安装,npm install
,我已经做了一些更改配置。
项目Angular CLI: 7.0.7
globalize-localization.zip
Add "typings.d.ts" file into the project see here
src/typings.d.ts
package.json
我添加了"typings": "typings.d.ts"
tsconfig.json
像这样 github.com/DevExpress 添加 "path"
,一些模块 ("resolveJsonModule": true, "esModuleInterop": true
) 用于将 JSON 文件使用到项目中。
问题发布在 Devextreme 支持中心 devexpress.com/Support/Center/Question