Wondering what’s next for npm?Check out our public roadmap! »

    @optii/i18n-exporter

    1.0.0 • Public • Published

    VueJS i18n Exporter

    A Command line utility to export vue-i18n translations to a file. This lib is probably not adapted to every vue project and will probably depend highly on your setup.

    Install

    npm i -g @optii/i18n-exporter
    

    Usage

    I advise that you don't overwrite your existing base file, or at least back it up, just in case this tool doesn't correctly detect the previous translations.

    help

    i18n-exporter --help
    

    options

    options default description
    -d --dir ./src Directory to find translations in
    -o --out ./output.js Output translation file
    -b --base ./src/lang/en.js Previous translation file (to merge with, keeps any already translated values), if changed this must be an absolute path
    -c --compile ./compiled A temp file use to create a compilation of base file is auto deleted at the end
    -h --help none shows the help

    Keywords

    none

    Install

    npm i @optii/i18n-exporter

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    5.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar