Skip to content

Command Line Interface that convert CSV file to iOS, Android or JSON localizable strings

License

Notifications You must be signed in to change notification settings

rogermolas/csv-localizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert CSV file to iOS and Android localizable string

csv-localizer

is a simple, fast, and fun command line interface writing in Python. The goal is to enable iOS and Android developers to save time doing the manual copy and paste in thier localizable strings list.

Requirements

CSV File in this format:

keys en zh ja

Sample CSV

keys en zh ja
pause_key paused 暂停 一時停止する
start_key start 开始 スタート
stop_key stop 停止 ストップ

Installation

csv-localizer can be installed from homebrew via

$ brew tap rogermolas/csv-localizer
$ brew install csv-localizer

Usage

csv-localizer use three required commands

Commands Descriptions
-p Platforms (ios, android, json)
-i Input directory, CSV files directory path
-o Output directory, Generated localizable files path
-d Delimiter used as seperation of values in the CSV file (example ':' or ',')
$ csv-localizer -p ios -i your_path/csv_files/ -o your_path/output

You can always get help and a full list of options with:

$ csv-localizer -h

Contributing

Bug fixes, improvements, and especially new implementations are welcome.

Workflow

  1. Fork.
  2. Make a feature/bugfix branch: git checkout -b my-feature
  3. Push your branch to your fork: git push -u origin my-feature
  4. Open GitHub, under "Your recently pushed branches", click Pull Request for my-feature.

License

Copyright 2018 Roger Molas

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.