Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grafikri/excel-vue-i18n
This CLI application is used to transform Excel file to JSON which is able to use by the plugin of Vue i18n
https://github.com/grafikri/excel-vue-i18n
Last synced: 26 days ago
JSON representation
This CLI application is used to transform Excel file to JSON which is able to use by the plugin of Vue i18n
- Host: GitHub
- URL: https://github.com/grafikri/excel-vue-i18n
- Owner: grafikri
- Created: 2020-09-05T10:43:07.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2020-09-19T07:19:22.000Z (over 3 years ago)
- Last Synced: 2024-03-30T15:21:45.896Z (about 2 months ago)
- Language: TypeScript
- Size: 29.3 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Lists
- awesome-vue - excel-vue-i18n - A plugin transforms excel file to i18n json format for translations. (Components & Libraries / Utilities)
- awesome-vue - excel-vue-i18n - A plugin transforms excel file to i18n json format for translations. (Components & Libraries / Utilities)
- awesome-vue - excel-vue-i18n - A plugin transforms excel file to i18n json format for translations. (Components & Libraries / Utilities)
- awesome-vue - excel-vue-i18n - A plugin transforms excel file to i18n json format for translations. (Components & Libraries / Utilities)
- awesome-vue - excel-vue-i18n - A plugin transforms excel file to i18n json format for translations. (Components & Libraries / Utilities)
- awesome-vue - excel-vue-i18n - A plugin transforms excel file to i18n json format for translations. (Components & Libraries / Utilities)
- awesome-vue - excel-vue-i18n - A plugin transforms excel file to i18n json format for translations. (Components & Libraries / Utilities)
README
![preview](https://i.imgur.com/IczvRYZ.png)
Excel Vue i18n
You can create [Vue i18n](https://kazupon.github.io/vue-i18n/guide/formatting.html#named-formatting) locale files from Excel via this CLI application
Installation
```bash
$ npm i -g excel-vue-i18n
```Examples
This line will generate json locale files depend on their key values that exist in the excel file. The JSON file will be generated under the root
/locale
as default.```bash
$ excelVueI18n -p myLangFile.xlsx
```If you want to specify path
```bash
$ excelVueI18n -p file/myLangFile.xlsx
```If you want to generate one single file that contains all locales information you can use `-s` option.
```bash
$ excelVueI18n -p file/myLangFile.xlsx -s true
```If you use `-o` option with `-s` you can also specify genetared file name like this
```bash
$ excelVueI18n -p file/myLangFile.xlsx -s true -o myLocaleFile
```
then your genetared file name will be named as `myLocaleFile.json `under the root of `/locale`> Note: When `-s` option didn't use `-o` option will be ignored because file names will be their lang codes
Specifying the folder path for the generated file(s) you can use `-f` option.
```bash
$ excelVueI18n -p myLangFile.xlsx -f langFolder
```
then your genetared file name will be named as `myLocaleFile.json `under the root of `/langFolder`Reference
```
Usage: -p
Usage: -f
Usage: -s
Usage: -oOptions:
--help Show help [boolean]
--version Show version number [boolean]
-p, --path Source excel file path [string] [required]
-f, --folder The folder that the files will be created into it
[string]
-s, --singleFile When entered as true just one locale file will be
created [boolean]
-o, --outputFileName Output file name that will be named when single param
sent as true [string]
```