Skip to content

Doesn't get the changes in json #76

Answered by fyra3or
ls30378 asked this question in Q&A
Discussion options

You must be logged in to vote

You can configure the backend like this:

backend: {
  loadPath: '/locales/{{lng}}/{{ns}}.json',

  // Disable cache for translation files in development
  requestOptions: { cache: process.env.NODE_ENV === 'production' ? 'default' : 'no-cache' }

  // Optional: Add versioning to your translations to bust cache when deploying to production
  queryStringParams: { v: '1.0.0' },
}

More options: https://github.com/i18next/i18next-http-backend

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@fyra3or
Comment options

@sergiodxa
Comment options

@fyra3or
Comment options

@ls30378
Comment options

Answer selected by ls30378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants