Categories: None [Edit]

switch-cli

https://rubygems.org/gems/switch-cli
https://github.com/yagudaev/switch
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: 66,586 of 189,065
Downloads: 15,228

Daily

Ranking: 94,232 of 189,052
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
29945,094,447rspec
74572,974,273pry
89474,571,955dotenv
172271,203,765launchy
440108,650,217deep_merge
1,34930,753,850google_drive

Owners

#GravatarHandle
1iconyagudaev