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

prepaired things for russian translation #259

Merged
merged 1 commit into from
Aug 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, actually, this should be translated into Russian. Could you update that?

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"
}