Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Russian localization #1969

Merged
merged 2 commits into from
May 5, 2020
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- nep9 QR support
- Participate in NEO token sales
- View wallet activity
- Translation support for Arabic, Chinese, French, German, Italian, Korean, Portuguese, Turkish and Vietnamese.
- Translation support for Arabic, Chinese, French, German, Italian, Korean, Portuguese, Russian, Turkish and Vietnamese.

## Installation

Expand Down
85 changes: 85 additions & 0 deletions __tests__/components/__snapshots__/Settings.test.js.snap

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions app/assets/flags/russia.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: 2 additions & 0 deletions app/components/Root/IntlWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const {
portuguese,
turkish,
arabic,
russian,
} = translations

type IntlWrapperProps = {
Expand All @@ -38,6 +39,7 @@ const tranlationsMappings = {
[LANGUAGES.PORTUGUESE.value]: portuguese,
[LANGUAGES.TURKISH.value]: turkish,
[LANGUAGES.ARABIC.value]: arabic,
[LANGUAGES.RUSSIAN.value]: russian,
}

class IntlWrapper extends React.Component<IntlWrapperProps> {
Expand Down
6 changes: 6 additions & 0 deletions app/core/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Turkey from '../assets/flags/turkey.svg'
import Vietnam from '../assets/flags/vietnam.svg'
import Korea from '../assets/flags/south-korea.svg'
import UnitedArabEmirates from '../assets/flags/united-arab-emirates.svg'
import Russia from '../assets/flags/russia.svg'

export const NEON_WALLET_RELEASE_LINK =
'https://github.com/CityOfZion/neon-wallet/releases'
Expand Down Expand Up @@ -94,6 +95,11 @@ export const LANGUAGES = {
value: 'ARABIC',
renderFlag: () => <UnitedArabEmirates alt="العربية" />,
},
RUSSIAN: {
label: 'Русский',
value: 'RUSSIAN',
renderFlag: () => <Russia alt="Русский" />,
},
}

export const DEFAULT_LANGUAGE = LANGUAGES.ENGLISH.value
Expand Down
2 changes: 2 additions & 0 deletions app/translations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import italian from './italian'
import portuguese from './portuguese'
import turkish from './turkish'
import arabic from './arabic'
import russian from './russian'

export default {
english,
Expand All @@ -20,4 +21,5 @@ export default {
portuguese,
turkish,
arabic,
russian,
}
Loading