Migrating from the old InContext editor

The InContext Editor feature has been fundamentally changed. Now the InContext Editor is part of the locize UI and not a separate web component anymore.

circle-info

tl;drarrow-up-right: Make sure to load this scriptarrow-up-right and paste your website url in the in-built InContext view of the locize UIarrow-up-right.

If you are using the old locize-editorarrow-up-right this guide will help you to migrate to the new approach.

Migration should be straight forward...

1) Replace the old locize-editor

Replace the old locize-editor with the new locizearrow-up-right script

import { locizePlugin } from 'locize';

i18next.use(locizePlugin)

// Using react-i18next you might want to bind the editorSaved event to trigger a rerender:
i18next.init({
  // ...
  react: {
    bindI18n: 'languageChanged editorSaved'
  }
})

The locizearrow-up-right script is already included in locizifyarrow-up-right >= v4.1.0

with other as module

with other in vanilla javascript

2) The new InContext view

Follow this guide.

Last updated