question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I18n API documentation example does not work

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dsheypcommented, Oct 10, 2020

I tried both above ways, with and without ‘messages’, and I couldn’t make it work for me. Any ideas on this?

0reactions
robonetphycommented, Jun 25, 2021

@ErriourRU Please check this PR #1711 for fix

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found