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

Added Korean translation #146

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
7 changes: 6 additions & 1 deletion src/App.js

Choose a reason for hiding this comment

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

Thank you 🙏

Choose a reason for hiding this comment

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

This is Solana

Choose a reason for hiding this comment

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

This is Solana

Choose a reason for hiding this comment

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

You're very welcome

Choose a reason for hiding this comment

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

Looking forward to a successful project

Choose a reason for hiding this comment

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

Thank you

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import ha from 'react-intl/locale-data/ha'
import it from 'react-intl/locale-data/it'
import ne from 'react-intl/locale-data/ne'
import pt from 'react-intl/locale-data/pt'
import ko from 'react-intl/locale-data/ko'



Expand All @@ -40,6 +41,7 @@ import haMessages from './languages/hau.json'
import itMessages from './languages/it'
import neMessages from './languages/ne'
import ptMessages from './languages/pt'
import koMessages from './languages/ko'


import Header from './components/layout/Header'
Expand Down Expand Up @@ -81,8 +83,9 @@ addLocaleData([
...it,
...ne,
...pt,
...ko,
])
const locales = ['en', 'fr', 'hi', 'id', 'ja', 'ru', 'ur', 'vi', 'zh-Hans', 'zh-Hant', 'ha', 'it', 'ne', 'pt']
const locales = ['en', 'fr', 'hi', 'id', 'ja', 'ru', 'ur', 'vi', 'zh-Hans', 'zh-Hant', 'ha', 'it', 'ne', 'pt', 'ko']
let initialLanguage =
storage.getItem('language') || navigator.language || 'en'
if(!locales.includes(initialLanguage) ){
Expand Down Expand Up @@ -123,6 +126,8 @@ const getMessages = locale => {
return neMessages
case 'pt':
return ptMessages
case 'ko':
return koMessages
default:
return enMessages
}
Expand Down
3 changes: 3 additions & 0 deletions src/components/layout/LanguageSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const LanguageSelector = ({
<MenuItem lang="zh-Hant" onClick={switcher}>
中文 (繁體)
</MenuItem>
<MenuItem lang="ko" onClick={switcher}>
한글
</MenuItem>
<MenuItem lang="ru" onClick={switcher}>
Pусский
</MenuItem>
Expand Down