Skip to content

Commit

Permalink
feat: i18n (#706)
Browse files Browse the repository at this point in the history
Basically done. The locales are on `src/locales`. @lidel would you help me by setting up Transifex for IPFS Desktop? 😄 

closes #650
  • Loading branch information
hacdias authored Nov 23, 2018
1 parent 87a6aff commit 123738d
Show file tree
Hide file tree
Showing 11 changed files with 275 additions and 20 deletions.
11 changes: 11 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[main]
host = https://www.transifex.com
lang_map = zh_CN: zh-CN, zh_HK: zh-HK, zh_TW: zh-TW, ko_KR: ko-KR

[ipfs-desktop.ipfs-desktop-json]
file_filter = src/locales/<lang>.json
minimum_perc = 95
source_file = src/locales/en.json
source_lang = en
type = KEYVALUEJSON

10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ IPFS Desktop allows you to run your IPFS Node on your machine without having to

- [Install](#install)
- [Contribute](#contribute)
- [Translations](#translations)

## Install

Expand All @@ -40,12 +41,19 @@ npm start

The IPFS Desktop app will launch and should appear in your OS menu bar.

## Translations

The translations are stored on [./src/locales](./src/locales) and the English version is the source of truth.
Other languages are periodically pulled from [Transifex](https://www.transifex.com/ipfs/ipfs-desktop/), a web interface to help us translate IPFS Desktop and its components to another languages.

## Contribute

[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/blob/master/contributing.md)
[![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif)](https://github.com/ipfs/community/#contributing-guidelines)

Feel free to join in. All welcome. Open an [issue](https://github.com/ipfs-shipyard/ipfs-desktop/issues)!

If you're interested in contributing translations, go to [project page on Transifex](https://www.transifex.com/ipfs/ipfs-desktop/translate/), create an account, pick a language and start translating.

This repository falls under the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

## License
Expand Down
195 changes: 188 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,16 @@
"filesize": "^3.6.1",
"fs-extra": "^7.0.1",
"go-ipfs-dep": "^0.4.18",
"i18next": "^12.1.0",
"i18next-electron-language-detector": "0.0.10",
"i18next-icu": "^0.6.0",
"i18next-node-fs-backend": "^2.1.0",
"ipfs-css": "^0.12.0",
"ipfsd-ctl": "^0.40.0",
"is-ipfs": "^0.4.7",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-i18next": "^8.3.8",
"redux-bundler": "^22.2.0",
"redux-bundler-react": "^1.1.0",
"tachyons": "^4.11.1",
Expand Down
Loading

0 comments on commit 123738d

Please sign in to comment.