I18n API documentation example does not work
See original GitHub issueI followed the I18n example in the I18n API section of the documention but I could not get it to work until I noticed the difference to the example of the Base Concepts - Internationalization section which then works.
The difference is the missing messages
key in the I18n API example.
The example should be:
new Editorjs({
// ...
tools: {
image: SimpleImage,
},
i18n: {
messages: {
tools: {
image: {
'Upload an image': 'Загрузить изображение',
}
}
}
}
})
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
API - i18next documentation
The default export of the i18next module is an i18next instance ready to be initialized by calling init . You can create additional...
Read more >i18n - MDN Web Docs - Mozilla
i18n. Functions to internationalize your extension. You can use these APIs to get localized strings from locale files packaged with your extension, find...
Read more >Rails Internationalization (I18n) API - Ruby on Rails Guides
This guide will walk you through the I18n API and contains a tutorial on how to internationalize a Rails application from the start....
Read more >API references | Vue I18n
API references. # Extension of Vue. # Vue constructor options. # i18n. Type: I18nOptions. Component based localization option.
Read more >Getting started - Vue I18n
In the HTML template, we use the $t translation API injected with Vue I18n, to localize. This allows Vue I18n to change the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I tried both above ways, with and without ‘messages’, and I couldn’t make it work for me. Any ideas on this?
@ErriourRU Please check this PR #1711 for fix