i18n-csv-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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
}

/i18n-csv-generator/

    Package Sidebar

    Install

    npm i i18n-csv-generator

    Weekly Downloads

    89

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    27 kB

    Total Files

    16

    Last publish

    Collaborators

    • wetrustinprize