Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
prepaired things for russian translation (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKonovalov authored and Kent C. Dodds committed Aug 4, 2017
1 parent f29a767 commit 2090180
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions components/locale-chooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import EsSvg from './svgs/es.svg'
import FrSvg from './svgs/fr.svg'
import DeSvg from './svgs/de.svg'
import CnSvg from './svgs/cn.svg'
import RuSvg from './svgs/ru.svg'

const {supportedLocales, fallbackLocale} = require('../config.json')

Expand Down Expand Up @@ -234,6 +235,11 @@ function mapLocale(key = fallbackLocale) {
display: '中文',
Flag: CnSvg,
},
ru: {
key,
display: 'Russian',
Flag: RuSvg,
},
help: {
key,
display: content.help,
Expand Down
7 changes: 7 additions & 0 deletions components/svgs/ru.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"supportedLocales": ["en", "es", "fr", "de", "zh"],
"supportedLocales": ["en", "es", "fr", "de", "zh", "ru"],
"fallbackLocale": "en"
}

0 comments on commit 2090180

Please sign in to comment.