Skip to content

Commit

Permalink
feat(Translations): add Russian and Japanese (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolam committed May 4, 2019
1 parent c6a1086 commit be39103
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -2,7 +2,7 @@
desktop.ini

# Jetbrains
.ideia
.idea

# Output of 'npm pack'
*.tgz
Expand Down
2 changes: 2 additions & 0 deletions CODE_OF_CONDUCT.md
Expand Up @@ -8,3 +8,5 @@ Read the code of conduct in:
- <a href="https://allcontributors.org/docs/od/project/code-of-conduct">Bahasa Indonesia</a>
- <a href="https://allcontributors.org/docs/de/project/code-of-conduct">Deutsch</a>
- <a href="https://allcontributors.org/docs/pl/project/code-of-conduct">Polskie</a>
- <a href="https://allcontributors.org/docs/ru/project/code-of-conduct">Русский</a>
- <a href="https://allcontributors.org/docs/ja/project/code-of-conduct">日本語</a>
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -8,3 +8,5 @@ Read the contributing docs in:
- <a href="https://allcontributors.org/docs/id/project/contribute">Bahasa Indonesia</a>
- <a href="https://allcontributors.org/docs/de/project/contribute">Deutsch</a>
- <a href="https://allcontributors.org/docs/pl/project/contribute">Polskie</a>
- <a href="https://allcontributors.org/docs/ru/project/contribute">Русский</a>
- <a href="https://allcontributors.org/docs/ja/project/contribute">日本語</a>
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -22,6 +22,8 @@
<td><a href="https://allcontributors.org/docs/pt-BR/overview">Português</a></td>
<td><a href="https://allcontributors.org/docs/es-ES/overview">Español</a></td>
<td><a href="https://allcontributors.org/docs/fr/overview">Français</a></td>
<td><a href="https://allcontributors.org/docs/ru/overview">Русский</a></td>
<td><a href="https://allcontributors.org/docs/ja/overview">日本語</a></td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 2 additions & 0 deletions crowdin.yaml
Expand Up @@ -17,6 +17,8 @@ files:
'id': 'id'
'de': 'de'
'pl': 'pl'
'ru': 'ru'
'ja': 'ja'

-
source: '/website/i18n/en.json'
Expand Down
6 changes: 6 additions & 0 deletions website/_redirects
Expand Up @@ -22,6 +22,8 @@ https://all-contributors.com/* https://allcontributors.org/:splat 301!
/id / 302
/de / 302
/pl / 302
/ru / 302
/ja / 302

/docs/en /docs/en/overview 302
/docs/es-ES /docs/es-ES/overview 302
Expand All @@ -32,6 +34,8 @@ https://all-contributors.com/* https://allcontributors.org/:splat 301!
/docs/id /docs/id/overview 302
/docs/de /docs/de/overview 302
/docs/pl /docs/pl/overview 302
/docs/ru /docs/ru/overview 302
/docs/ja /docs/ja/overview 302

# Language doc redirects
/docs /docs/en/overview 302 Language=en
Expand All @@ -43,6 +47,8 @@ https://all-contributors.com/* https://allcontributors.org/:splat 301!
/docs /docs/id/overview 302 Language=id
/docs /docs/de/overview 302 Language=de
/docs /docs/pl/overview 302 Language=pl
/docs /docs/ru/overview 302 Language=ru
/docs /docs/ja/overview 302 Language=ja
# Fallback to english if no language present
/docs /docs/en/overview 302

Expand Down
4 changes: 2 additions & 2 deletions website/languages.js
Expand Up @@ -12,7 +12,7 @@ const languages = [
tag: 'en',
},
{
enabled: false,
enabled: true,
name: '日本語',
tag: 'ja',
},
Expand Down Expand Up @@ -137,7 +137,7 @@ const languages = [
tag: 'ro',
},
{
enabled: false,
enabled: true,
name: 'Русский',
tag: 'ru',
},
Expand Down

0 comments on commit be39103

Please sign in to comment.