Internationalization of React App using Google Sheet and react-i18n

Google sheet as JSON Hosting

We can host this langData.json over Google sheet. Think, Google sheet as JSON hosting website. In this article, we will learn to use an npm-package, which converts a Google-Sheet into a JSON file.


  • Product Manager/Owner can make changes in translations.
  • We can Google Translation service for automatic translations.

Lets Code now

Step1 — Set Basic Example

npx create-react-app my-react-app --template typescript
cd my-react-app
npm start
  • Type your name
  • Name must be between 5 to 20 characters
npm install sheet-to-array-of-objects
touch build/getLangData.js
"prebuild": "node build/getLangData.js",
npm install react-i18next i18next --save
touch src/i18n.js
const resources = {    en: {        translation: {           "KEY": "VAL",


so, finally, its demo time.

Source Code:

all the source code is available at —

  1. Google Translate Function —
  2. NPM package which converts Google sheet to JSON —
  3. Source Code of demo —



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Narendra Sisodiya

Narendra Sisodiya

12+yrs exp. JavaScript Expert. Full Stack Expert. React, Nodejs Mongo AWS, Terraform Pulumi. IITian, Open Source. Currently Software Architect @