use-i18n-with-google-translate
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

useI18nWithGoogleTranslate 🐱‍🐉

Helper automated function to translate json file based on language like english to any other language through google-translate.

Created to be used in [Breakpoint] Project(s).

Installation

# npm
$ npm install use-i18n-with-google-translate
# yarn
$ yarn add use-i18n-with-google-translate

Usage

import useI18nWithGoogleTranslate from "use-i18n-with-google-translate";

useI18nWithGoogleTranslate(
  inputFile, // input file path to read data(string)
  outputFile, // output file path to write the result (string)
  config // config object to setup the direction of translate default to { from: 'en', to: 'ar' }
); // return a promise

License


MIT © Imed Jaberi

Package Sidebar

Install

npm i use-i18n-with-google-translate

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.92 kB

Total Files

6

Last publish

Collaborators

  • 3imed-jaberi