我可以在 grapesjs 中更改工具栏语言吗?
Can I change toolbar language in grapesjs?
我用的是grapejs,需要更改文字语言。标签有 'i81n',但我找不到像 this as you can see i change the label language with i18n but selectbox's options are still english Also if it's possible, As you can see in the 这样的输入图片 我需要更改文本输入的占位符和上面的标题 'text'
我找到了如何更改输入。你必须一件一件地更换你的道具。您可以在中找到详细信息
https://github.com/artf/grapesjs/issues/2712#issuecomment-615763048
对于第二期,您必须添加国际化文件 domComponents。在我的场景中是这样的
var _default = {domComponents: {
names: {
'': 'Kutu',
wrapper: 'Gövde',
text: 'Metin',
comment: 'Yorum',
image: 'Görsel',
video: 'Video',
label: 'Etiket',
link: 'Link',
map: 'Harita',
tfoot: 'Tablo alt',
tbody: 'Tablo gövde',
thead: 'Tablo başlık',
table: 'Tablo',
row: 'Satır',
cell: 'Hücre'
}...}..}
相关文件在这里:https://grapesjs.com/docs/modules/I18n.html#plugin-development
我用的是grapejs,需要更改文字语言。标签有 'i81n',但我找不到像 this as you can see i change the label language with i18n but selectbox's options are still english Also if it's possible, As you can see in the 这样的输入图片 我需要更改文本输入的占位符和上面的标题 'text'
我找到了如何更改输入。你必须一件一件地更换你的道具。您可以在中找到详细信息 https://github.com/artf/grapesjs/issues/2712#issuecomment-615763048
对于第二期,您必须添加国际化文件 domComponents。在我的场景中是这样的
var _default = {domComponents: {
names: {
'': 'Kutu',
wrapper: 'Gövde',
text: 'Metin',
comment: 'Yorum',
image: 'Görsel',
video: 'Video',
label: 'Etiket',
link: 'Link',
map: 'Harita',
tfoot: 'Tablo alt',
tbody: 'Tablo gövde',
thead: 'Tablo başlık',
table: 'Tablo',
row: 'Satır',
cell: 'Hücre'
}...}..}
相关文件在这里:https://grapesjs.com/docs/modules/I18n.html#plugin-development