Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rickykaare/csvtrans
Translation tools using Google Sheet/CSV as source
https://github.com/rickykaare/csvtrans
csv google-sheets resx translation
Last synced: 2 months ago
JSON representation
Translation tools using Google Sheet/CSV as source
- Host: GitHub
- URL: https://github.com/rickykaare/csvtrans
- Owner: rickykaare
- Created: 2019-02-22T15:04:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-25T07:10:30.000Z (over 5 years ago)
- Last Synced: 2024-11-15T16:47:27.551Z (3 months ago)
- Topics: csv, google-sheets, resx, translation
- Language: F#
- Homepage:
- Size: 53.7 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# csvtrans
_Tool for building translations from Google Sheet_[![Build Status](https://dev.azure.com/rickykaare/csvtrans/_apis/build/status/csvtrans-ci?branchName=master)](https://dev.azure.com/rickykaare/csvtrans/_build/latest?definitionId=2&branchName=master) [![NuGet](https://img.shields.io/nuget/dt/csvtrans.svg?style=flat-square)](http://www.nuget.org/packages/csvtrans) [![NuGet](https://img.shields.io/nuget/v/csvtrans.svg?style=flat-square)](http://www.nuget.org/packages/csvtrans)
The idea behind the tool is to read translations from a Google Sheet and output them as string resources for iOS or Android.
### Installation
Tool can be installed using the commanddotnet tool install -g csvtrans
### Input
The tool supports the following input sources:- A local CSV file
- An online CSV source
- A Google SheetThe column headers in the input identifies the target languages (e.g. en, en-US, da-DK etc.) with the following special columns:
|Column Name |Purpose |
|------------|--------|
Key|Mandatory identifier for the string
Comment|Optional comment for the trasnslation
Default|Optional default valueAn example sheet can be found here: [SampleTranslations](https://docs.google.com/spreadsheets/d/1SpSu13Gtk8aBsGK4b-iRK4wmmTtywx3twN1yABAVTOA/edit?usp=sharing)
### Output
Supported outputs are:- Apple string resources (iOS)
- Android string resources
- Json dictionary
- Resx resources### CLI interface
USAGE: csvtrans [--help] [--sheet ]
[--csv ] [--format ]
[--outputdir ] [--name ]
[--convert-placeholders ]OPTIONS:
--sheet, -s
specify a Google Sheet as input.
--csv, -c
specify a online or local cvs file as input.
--format, -f
specify the output format.
--outputdir, -o
specify the output directory.
--name, -n specify an optional name for the output.
--convert-placeholders, -p
convert placeholders to match the output format.
--help display this list of options.