Categories: None [Edit]
switch-cli
Switch helps you add multiple languages to your site by leveraging the power of google spreadsheets. It is a commandline tool providing you with an easy way to automate the process and avoid common mistakes.
The most common use case of switch is for switching between a locale representation in JSON/YAML to a CSV (spreadsheet) based one and vice-versa.
# Install
```
gem install switch-cli
```
# Usage
```
switch json2csv [input-dir] [output-file]
```
Converts multiple json files to be a single csv file with columns for each file, with the file name as the column header.
If you do not specify an input-dir it will be taken as ./locales and output-file would be the direcotry name + .csv.
```
switch csv2json [input-file] [output-dir]
```
Converts a single csv file into multiple json files, with a file for each column using the key and order columns to construct the files.
Total
Ranking: 68,312 of 198,225
Downloads: 15,962
Daily
Ranking: 132,668 of 198,184
Downloads: 0
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 29 | 1,037,342,164 | rspec |
| 73 | 646,693,402 | pry |
| 87 | 568,077,091 | dotenv |
| 179 | 306,594,946 | launchy |
| 443 | 125,939,263 | deep_merge |
| 1,409 | 33,306,388 | google_drive |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | yagudaev |