# Migrating an i18next project

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

{% embed url="<https://youtu.be/jeRxew3OV64>" %}

## Browser & Node.js & Deno

Just use the `i18next-locize-backend`

```javascript
import i18next from 'i18next';
import Backend from 'i18next-locize-backend';

i18next
  .use(Backend)
  .init({
    // ...other options

    backend: {
      projectId: '[PROJECT_ID]',
      apiKey: '[API_KEY]',
      referenceLng: '[LNG]'
    }
  });
```

(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](https://github.com/locize/i18next-locize-backend).

{% hint style="info" %}
[Here you will find an example on how you could migrate to locize when already using i18next.](https://github.com/locize/react-tutorial)
{% endhint %}

{% hint style="success" %}
[And here a complete tutorial on how to best internationalize with i18next and locize.](https://locize.com/blog/react-i18next/)
{% endhint %}

## Migrating your data

You can use our [command line tool](https://github.com/locize/locize-cli#migration-of-existing-i18next-files) to copy your existing translations over to your locize project.

```shell
locize migrate --api-key my-api-key-d9de-4f55-9855-a9ef0ed44672 --project-id my-project-id-93e1-442a-ab35-24331fa294ba --path ./public/locales
```
