Skip to content

Commit

Permalink
Init Crowdin translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds committed Jan 3, 2016
1 parent 84f0bfd commit fce1a6f
Show file tree
Hide file tree
Showing 24 changed files with 17,532 additions and 59 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: ruby
install: gem install crowdin-cli
script: crowdin-cli upload sources
29 changes: 29 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Contributing

### Translating the handbook

The english version of this handbook is the only one updated inside the
repository, if you would like to contribute to other languages you must do so
through Crowdin. You can
[invite yourself to our crowdin project here](https://crowdin.com/project/babel-plugin-handbook/invite).

### Downloading updated translations

Note: This is for maintainers who have api access to Crowdin. If you do not have
access to this and you would like for the translations to be updated please open
an issue.

First make sure you have the `crowdin-cli` installed.

```sh
$ gem install crowdin-cli
```

The you can use it to download the latest translations.

```sh
$ CROWDIN_API_KEY=$(CROWDIN_API_KEY) crowdin-cli download
```

Replace `CROWDIN_API_KEY` with the api key on
https://crowdin.com/project/babel-plugin-handbook/settings#integration.
32 changes: 22 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
This document covers how to create [Babel](https://babeljs.io)
[plugins](https://babeljs.io/docs/advanced/plugins/).

If you are reading a non-english translation of this handbook you may still find
english sections that have not yet been translated. If you would like to
contribute to one of the translations you must do so through Crowdin. Please
read the [contributing guidelines](/CONTRIBUTING.md) for more information.

[![cc-by-4.0](https://licensebuttons.net/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)

Special thanks to [@sebmck](https://github.com/sebmck/),
Expand All @@ -26,16 +31,23 @@ are presently doing.

# Translations

- [中文](/translations/cn.md)
- [Deutsche](/translations/de.md)
- [Español](/translations/es.md)
- [Français](/translations/fr.md)
- [Italiano](/translations/it.md)
- [日本語](/translations/ja.md)
- [한국어](/translations/ko.md)
- [Nederlands](/translations/nl.md)
- [Português](/translations/pl.md)
- [Pусский](/translations/ru.md)
- [English](/README.md)
- [Deutsche](/translations/de/README.md)
- [Español](/translations/es-ES/README.md)
- [Français](/translations/fr/README.md)
- [Italiano](/translations/it/README.md)
- [日本語](/translations/ja/README.md)
- [한국어](/translations/ko/README.md)
- [Nederlands](/translations/nl/README.md)
- [Português](/translations/pl/README.md)
- [Pусский](/translations/ru/README.md)
- [中文](/translations/zh-CN/README.md)

If you are reading a non-english translation of this document you will find a
number of english words that are programming concepts. If these were translated
to other languages there would be a lack of consistency and fluency when reading
about them. In many cases you will find the literal translation followed by the
english term in parenthesis `()`. For example: Abstract Syntax Trees (ASTs).

# Table of Contents

Expand Down
18 changes: 18 additions & 0 deletions crowdin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
project_identifier: babel-plugin-handbook
api_key_env: CROWDIN_API_KEY
base_path: .
files:
- source: '/README.md'
translation: '/translations/%two_letters_code%/%original_file_name%'
languages_mapping:
two_letters_code:
'de': 'de'
'es-ES': 'es-ES'
'fr': 'fr'
'it': 'it'
'ja': 'ja'
'ko': 'ko'
'nl': 'nl'
'pt-PT': 'pt-PT'
'ru': 'ru'
'zh-CN': 'zh-CN'
4 changes: 0 additions & 4 deletions translations/cn.md

This file was deleted.

6 changes: 0 additions & 6 deletions translations/de.md

This file was deleted.

Loading

0 comments on commit fce1a6f

Please sign in to comment.