Migrating an i18next project
Migrating an existing backend from i18next is just changing a few lines of code.

Browser & node.js

Just use the i18next-locize-backend
1
import i18next from 'i18next';
2
import Backend from 'i18next-locize-backend';
3
4
i18next
5
.use(Backend)
6
.init({
7
// ...other options
8
9
backend: {
10
projectId: '[PROJECT_ID]',
11
apiKey: '[API_KEY]',
12
referenceLng: '[LNG]'
13
}
14
});
Copied!
(You can find your projectId and API Key in your projects settings under the API Tab.)
Find more details and configuration options on the github page.

Migrating your data

You can use our command line tool to copy your existing translations over to your locize project.
Last modified 6mo ago