x-extends / vxe-table

Vxe table 的表格组件
https://vxetable.cn
MIT License
7.62k stars 1.05k forks source link

Is it possible to use internationalization without vue-18n? #1164

Closed im1x closed 3 years ago

im1x commented 3 years ago

(必填)请填写问题描述或截图: Hello. I have a problem with warnings like this: [vxe-table] The property "{{0}}" is deprecated, please use "{{1}}

Yes, I know that the exact same ticket has been previously https://github.com/x-extends/vxe-table/issues/1092

But my problem is that I am already using i18next in my project and don't want to install additional third party libraries for internationalization like vue-18n.

I used a way like this:

VXETable.setup({
  i18n: (key, value) => XEUtils.get(EnLocat, key)
});

But now this apparently doesn’t work correctly.

Is it possible to use English translation of vxe-table without installing vue-18n?

(必填)请填在线链接: No need, another type of problem

(必填)请填写期望的结果: I would like to use the available translations without installing additional third party libraries. I already have XEUtils and i18next installed so also a solution with these libraries will be ok too

(必填)请填写以下信息:

xe-bot[bot] commented 3 years ago

机器人助手: