Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blocktrail/blocktrail-wallet-translations
Blocktrail Wallet Translations
https://github.com/blocktrail/blocktrail-wallet-translations
Last synced: 2 days ago
JSON representation
Blocktrail Wallet Translations
- Host: GitHub
- URL: https://github.com/blocktrail/blocktrail-wallet-translations
- Owner: blocktrail
- License: agpl-3.0
- Created: 2015-10-28T10:14:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-01T10:51:57.000Z (almost 3 years ago)
- Last Synced: 2023-03-23T13:07:59.972Z (almost 2 years ago)
- Language: JavaScript
- Size: 1.28 MB
- Stars: 3
- Watchers: 10
- Forks: 22
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](LICENSE.md).