1.0.0 โ€ข Published 2 years ago

@neidercode/translate-files v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

๐Ÿš€ Welcome translate files!

install in project

npm i translate-files
import { translateFileCsv } from "translate-files";

or

const { translateFileCsv } = require("translate-files");

usign

translateFileCsv(idDocument,routeFolderSave)
  • Open url and duplicate file in your google drive.

  • Share document

    • give read permission
    • copy link
    • get document ID from url

document base spreadsheets translations

image

  • duplicate document in yout drive

image

  • we give our copy a name

image

  • We add our translations by editing the base column
    • key: the unique key we use in our app to translate text
    • base: the text that we enter so that spreadsheets creates the translations automatically
    • es,en,it,fr: base languages โ€‹โ€‹that the template has, you can add or remove languages

image

  • we press share

image

  • brings the following as a base configuration

image

  • we update it as follows and click on done

image

  • we extract the document id from our url

image

translateFileCsv('19sxdh1WE5RMXiuTWuMJonu81NWrewZbZ','./translations')
  • results

image

  • en

image

  • es

image

  • fr

image