i18next-node-firestore-backend

Use i18next with Google Firestore as backend

Usage no npm install needed!

<script type="module">
  import i18nextNodeFirestoreBackend from 'https://cdn.skypack.dev/i18next-node-firestore-backend';
</script>

README

i18next-node-firestore-backend

A plugin for i18next that supports fetching translations from a Google Cloud Firestore database.

Getting Started

See the example applications. One is a CLI written in Javascript/NodeJS. The other is a React application. See their respective README files for details as to how to get them running.

Acknowledgements

This project began as a copy of i18next-node-mongodb-backend (https://github.com/lamualfa/i18next-node-mongo-backend). Many thanks for your contributions!

Publishing NPM

Following the instructions from this page, we did:

  1. make sure local repo is clean: git status
  2. no need to do a build - we do not have a "build" script
  3. update the version in the packages & CHANGELOG.md: npm run release-bump:patch (or 'minor' or 'major')
  4. push to your remote: git push
  5. push tags too: npm run release:tag-push
  6. test a publish of the NPM: npm publish --dry-run and review output
  7. publish the NPM: npm publish