Skip to content

not able to find way to add new key-value pair and how to initialize i18n with value from mongoDB #21

Description

@premnkl

Dear Team,

Need help for below points. I am not getting references for below things:

  1. How do we initialize the mongoDB with language data
  2. How to upsert existing key value pair
  3. How i18n in react initializes with the mongoDB data as resource

I followed the readMe and initialized the i18next using nodeJS as below, which created a new table in mongoDB:

i18next.use(Backend).init({
// Backend Options
backend: {
host: 'localhost',
port: 27017,
dbName: 'dy-mde', // Required field
},
})_

image

Regards,
Prem

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions