Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rogermolas/csv-localizer
Command Line Interface that convert CSV file to iOS, Android or JSON localizable strings
https://github.com/rogermolas/csv-localizer
android android-localizable-strings csv csv-localizer csv-parser ios ios-localization localization localizedstring python
Last synced: 3 months ago
JSON representation
Command Line Interface that convert CSV file to iOS, Android or JSON localizable strings
- Host: GitHub
- URL: https://github.com/rogermolas/csv-localizer
- Owner: rogermolas
- License: apache-2.0
- Created: 2018-05-29T17:10:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T17:14:36.000Z (over 2 years ago)
- Last Synced: 2024-11-08T14:42:15.083Z (3 months ago)
- Topics: android, android-localizable-strings, csv, csv-localizer, csv-parser, ios, ios-localization, localization, localizedstring, python
- Language: Python
- Homepage:
- Size: 113 KB
- Stars: 91
- Watchers: 7
- Forks: 28
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Convert CSV file to iOS and Android localizable string](https://raw.githubusercontent.com/rogermolas/CSVLocalizer/master/flow.png)
# 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
```bash
$ 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 ',')|```bash
$ 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:
```bash
$ 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 athttp://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.