Skip to content

Commit

Permalink
rename nodejs script, update readme.md for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thealphadollar committed Oct 8, 2020
1 parent cb4a6be commit dea694a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">Welcome to vanilla-i18n 👋</h1>
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
<p>
<a href="https://www.npmjs.com/package/vanilla-i18n" target="_blank">
Expand Down
8 changes: 3 additions & 5 deletions csv_to_vanilla-i18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@ NOTE: Python3 should be installed to use the script, follow instructions [here](

To run the script, `python3 csv_to_vanilla_i18n.py PATH_TO_LANGUAGE_CSV`.

The script generates the language JSON files with the filename `LANGUAGE.json`, where "LANGUAGE" the language which the file represents from the CSV, in directory `vanilla-i18n` in the same folder.

Copy the language files to the desired directory in your website's root folder, recommended is `assets/vanilla-i18n`.

## How to use NodeJS script

`csv_to_json.js` was built with Javascript and NodeJS's built in modules.

NOTE: NodeJS should be installed to use the script, download it [here](https://nodejs.org/).
NOTE: NodeJS should be installed to use the script, download it from [here](https://nodejs.org/).

To run the script, `node csv_to_json.js`. After running the script enter `PATH_TO_LANGUAGE_CSV`

## After running the script

The script generates the language JSON files with the filename `LANGUAGE.json`, where "LANGUAGE" is the language which the file represents from the CSV, in directory `vanilla-i18n` in the same folder.

Copy the language files to the desired directory in your website's root folder, recommended is `assets/vanilla-i18n`.
File renamed without changes.

0 comments on commit dea694a

Please sign in to comment.