1.0.0 โข Published 3 years ago
@neidercode/translate-files v1.0.0
๐ Welcome translate files!
install in project
npm i translate-filesimport { 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

- duplicate document in yout drive

- we give our copy a name

- 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

- we press share

- brings the following as a base configuration

- we update it as follows and click on done

- we extract the document id from our url

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

- en

- es

- fr

1.0.0
3 years ago