1.0.0 • Published 6 years ago

@optii/i18n-exporter v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

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

optionsdefaultdescription
-d --dir./srcDirectory to find translations in
-o --out./output.jsOutput translation file
-b --base./src/lang/en.jsPrevious translation file (to merge with, keeps any already translated values), if changed this must be an absolute path
-c --compile ./compiledA temp file use to create a compilation of base file is auto deleted at the end
-h --help noneshows the help