Skip to content

blocktrail/blocktrail-wallet-translations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2730cdc · Apr 1, 2022
Apr 1, 2022
Feb 17, 2022
Jun 27, 2020
Oct 28, 2015
Aug 12, 2016
Aug 12, 2016
Jan 23, 2017
Oct 28, 2015
Aug 5, 2016

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published