Next-i18next: Support for loading translation data via resources field

Created on 22 Oct 2020  路  1Comment  路  Source: isaachinman/next-i18next

My use-case requires that the translation strings be loaded into the app from an API.

Previously I had success initializing things this way:

const resources = fetchTranslations()
const lng = 'en'

i18n
  .use( initReactI18next )
  .init({ resources, lng })
})

Using next-i18next it appears that loading locales using json files is a hard requirement.

>All comments

Nope, not a hard requirement. You can use any i18next backend you like. Good luck!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jonesus picture Jonesus  路  6Comments

nataliaroque77 picture nataliaroque77  路  3Comments

dimensi picture dimensi  路  4Comments

ghoshnirmalya picture ghoshnirmalya  路  3Comments

slava-lu picture slava-lu  路  6Comments