1.0.1 • Published 1 year ago

i18n-csv-generator v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

i18n-csv-generator

Description

This is a simple tool to generate i18n csv files from a given directory.

Usage

$ npm i i18n-csv-generator
$ npm exec i18n-csv-generator init # Generates a configuration file
$ npm exec i18n-csv-generator generate # Generates the locale files

Configuration

The configuration file is a JSON file named i18n-csv-generator.json at the root of your project.

{
    "csvFile": "./src/i18n/locale.csv", // The path to the csv file
    "delimiter": ",", // The delimiter used in the csv file
    "generateAt": "./src/i18n/locales", // The path where the locale files will be generated
    "offset": 0, // The offset of the csv file, will jump columns
}
1.0.1

1 year ago

1.0.0

1 year ago

0.0.1

1 year ago