blocktrail / blocktrail-wallet-translations

Blocktrail Wallet Translations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BTC Wallet Translations

This repo contains JSON files with all translations used for the BTC.com Web and Mobile Wallet.
The scripts to convert from JSON -> CSV -> JSON are horrific right now, but they do what they're supposed to, will be cleaned up at a later stage ...

Structure

translations/*.json are the main translation files, they're used in the Web Wallet.
translations/mobile/*.json are merged over the main translation files for the Mobile Wallet, this is mainly for button text etc. that is otherwise too big to fit.

Install

npm install

Create CSV to translate in Libre Calc / MS Excel

node export-csv.js > translations.csv

Import CSV with changes back into the JSON files

before import a new language make sure to create the .json file for it with {} as content.
the CSV should have a semi-colon ; as delimeter and it's recommended to wrap all text in double quotes ".

# asumes translations.csv is in the root dir
node import-csv.js

RegEx used for converting JS files to JSON

([A-Z].+): ?["'](.+)['"], "$1": "$2",

License

The BTC Wallet source code is released under the GNU Affero General Public License.
The BTC.com Logo and any other images / graphics are not part of this.
See LICENSE.md.

About

Blocktrail Wallet Translations

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 100.0%