Skip to content

Commit 5708201

Browse files
Merge pull request #828 from GetStream/vishal/jp-ko-translations
feat: added support for japanese and korean language
2 parents 8c4de97 + f8737c5 commit 5708201

File tree

4 files changed

+127
-1
lines changed

4 files changed

+127
-1
lines changed

docusaurus/docs/reactnative/basics/translations.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ At the moment we support the following languages (and more will be added in the
1515
- [Dutch (nl)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/nl.json)
1616
- [Turkish (tr)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/tr.json)
1717
- [Russian (ru)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/ru.json)
18+
- [Japanese (ja)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/ja.json)
19+
- [Korean (ko)](https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/i18n/ko.json)
1820

1921
## Usage
2022

@@ -36,7 +38,7 @@ Two components require your custom instance of `Streami18n` to properly pass you
3638
Both components accept an instance of `Streami18n` via the prop `i18nInstance`.
3739
Providing this prop will provide your instance of `Streami18n` to all of the components via [`context`](https://reactjs.org/docs/context.html) instead of the default instance.
3840

39-
```tsx {5,8}
41+
```tsx {5,8-9}
4042
import { StreamChat } from 'stream-chat';
4143
import { Chat, OverlayProvider, Streami18n } from 'stream-chat-react-native';
4244

@@ -255,6 +257,8 @@ The following options are available:
255257
- Dutch (`nl`)
256258
- Turkish (`tr`)
257259
- Russian (`ru`)
260+
- Japanese (`ja`)
261+
- Korean (`ko`)
258262

259263
| TYPE | DEFAULT |
260264
| - | - |

package/src/i18n/ja.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"1 Thread Reply": "1件のスレッド返信",
3+
"Allow access to your Gallery": "ギャラリーへのアクセスを許可する",
4+
"Also send to channel": "チャンネルにも送信",
5+
"Are you sure you want to permanently delete this message?": "このメッセージを完全に削除してもよろしいですか?",
6+
"Block User": "ユーザをブロックする",
7+
"Copy Message": "メッセージのコピー",
8+
"Delete Message": "メッセージを削除",
9+
"Dismiss": "棄却する",
10+
"Do you want to send a copy of this message to a moderator for further investigation?": "このメッセージのコピーをモデレーターに送信して、さらに調査しますか?",
11+
"Editing Message": "メッセージを編集中",
12+
"Error loading": "読み込みエラー",
13+
"Error loading channel list...": "チャネルリストの読み込み中にエラーが発生しました。。。",
14+
"Error loading messages for this channel...": "このチャネルのメッセージの読み込み中にエラーが発生しました。。。",
15+
"Error while loading, please reload/refresh": "ロード中にエラーが発生しました。更新してください",
16+
"Flag Message": "メッセージをフラグする",
17+
"Instant Commands": "インスタントコマンド",
18+
"Loading channels...": "チャネルを読み込み中。。。",
19+
"Loading messages...": "メッセージを読み込み中。。。",
20+
"Loading...": "読み込み中。。。",
21+
"Message Reactions": "メッセージのリアクション",
22+
"Message flagged": "メッセージにフラグが付けられました",
23+
"Mute User": "ユーザーをミュートする",
24+
"Photo": "写真",
25+
"Photos": "写真",
26+
"Please enable access to your photos and videos so you can share them.": "写真やビデオへのアクセスを有効にして、共有できるようにしてください。",
27+
"Please select a channel first": "最初にチャンネルを選択してください",
28+
"Reconnecting...": "再接続中。。。",
29+
"Resend": "再送",
30+
"Search GIFs": "GIFの探索",
31+
"Send a message": "メッセージを送る",
32+
"Something went wrong": "問題が発生しました。",
33+
"The message has been reported to a moderator.": "メッセージはモデレーターに報告されました。",
34+
"The operation couldn't be completed.": "操作を完了できませんでした。",
35+
"Thread Reply": "スレッドの返信",
36+
"Unblock User": "ユーザーのブロックを解除する",
37+
"Unknown User": "不明なユーザー",
38+
"Unmute User": "ユーザーのミュートを解除する",
39+
"Unread Messages": "未読メッセージ",
40+
"You": "あなた",
41+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }}と{{ nonSelfUserLength }}人がタイピングしています",
42+
"{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
43+
"{{ replyCount }} Thread Replies": "{{ replyCount }}件のスレード返信",
44+
"{{ user }} is typing": "{{ user }}はタイピング中",
45+
"1 Reply": "1件の返信",
46+
"Cancel": "キャンセル",
47+
"Delete": "消去",
48+
"Edit Message": "メッセージを編集",
49+
"Emoji matching": "絵文字マッチング",
50+
"Empty message...": "空のメッセージ...",
51+
"Flag": "フラグ",
52+
"Message deleted": "メッセージが削除されました",
53+
"Nothing yet...": "まだ何もありません...",
54+
"Only visible to you": "あなただけに見える",
55+
"Reply": "返事",
56+
"Reply to Message": "メッセージに返信",
57+
"🏙 Attachment...": "🏙 アタッチメント..."
58+
}

package/src/i18n/ko.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"1 Thread Reply": "1개의 스레드 답글",
3+
"Allow access to your Gallery": "갤러리에 대한 액세스를 허용",
4+
"Also send to channel": "채널에도 전송",
5+
"Are you sure you want to permanently delete this message?": "이 메시지를 영구적으로 삭제하시겠습니까?",
6+
"Block User": "사용자 차단",
7+
"Copy Message": "메시지 복사",
8+
"Delete Message": "메시지 삭제",
9+
"Dismiss": "기각하기",
10+
"Do you want to send a copy of this message to a moderator for further investigation?": "이 메시지의 복사본을 운영자에게 보내 추가 조사를합니까?",
11+
"Editing Message": "메시지 편집중",
12+
"Error loading": "로드 오류",
13+
"Error loading channel list...": "채널리스트 을로드하는 동안 오류가 발생했습니다...",
14+
"Error loading messages for this channel...": "이 채널의 메시지를로드하는 동안 오류가 발생했습니다...",
15+
"Error while loading, please reload/refresh": "로드하는 동안 오류가 발생했습니다. 다시로드하십시오",
16+
"Flag Message": "메시지를 플래그하기",
17+
"Instant Commands": "인스턴트 명령",
18+
"Loading channels...": "채널을 로딩 중...",
19+
"Loading messages...": "메시지를 로딩 중...",
20+
"Loading...": "로딩 중...",
21+
"Message Reactions": "메시지의 리액션",
22+
"Message flagged": "메시지에 플래그가 지정되었습니다",
23+
"Mute User": "사용자를 음소거",
24+
"Photo": "사진",
25+
"Photos": "사진",
26+
"Please enable access to your photos and videos so you can share them.": "사진 및 비디오에 대한 액세스를 사용하여 공유 할 수 있도록합니다.",
27+
"Please select a channel first": "먼저 채널을 선택하십시오",
28+
"Reconnecting...": "다시 연결 중...",
29+
"Resend": "재전송",
30+
"Search GIFs": "GIF의 검색",
31+
"Send a message": "메세지를 보내다",
32+
"Something went wrong": "문제가 발생했습니다.",
33+
"The message has been reported to a moderator.": "메시지는 운영자에보고되었습니다.",
34+
"The operation couldn't be completed.": "작업을 완료할 수 없습니다.",
35+
"Thread Reply": "스레드 답장",
36+
"Unblock User": "사용자 차단 해제",
37+
"Unknown User": "알 수없는 사용자",
38+
"Unmute User": "사용자 음소거 해제",
39+
"Unread Messages": "읽지 않은 메시지",
40+
"You": "당신",
41+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} 외 {{ nonSelfUserLength }}명이 입력 중입니다",
42+
"{{ index }} of {{ photoLength }}": "{{ index }} / {{ photoLength }}",
43+
"{{ replyCount }} Thread Replies": "{{ replyCount }} 스레드 답글",
44+
"{{ user }} is typing": "{{ user }} 타이핑 중",
45+
"1 Reply": "답장 1개",
46+
"Cancel": "취소",
47+
"Delete": "삭제",
48+
"Edit Message": "메시지 수정",
49+
"Emoji matching": "이모티콘 매칭",
50+
"Empty message...": "빈 메시지...",
51+
"Flag": "플래그",
52+
"Message deleted": "메시지가 삭제되었습니다.",
53+
"Nothing yet...": "아직 아무것도...",
54+
"Only visible to you": "당신만 볼 수 있습니다",
55+
"Reply": "답장",
56+
"Reply to Message": "메시지에 답장",
57+
"🏙 Attachment...": "🏙 부착..."
58+
}

package/src/utils/Streami18n.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import enTranslations from '../i18n/en.json';
1010
import frTranslations from '../i18n/fr.json';
1111
import hiTranslations from '../i18n/hi.json';
1212
import itTranslations from '../i18n/it.json';
13+
import jaTranslations from '../i18n/ja.json';
14+
import koTranslations from '../i18n/ko.json';
1315
import nlTranslations from '../i18n/nl.json';
1416
import ruTranslations from '../i18n/ru.json';
1517
import trTranslations from '../i18n/tr.json';
@@ -20,6 +22,8 @@ const defaultLng = 'en';
2022
import 'dayjs/locale/fr';
2123
import 'dayjs/locale/hi';
2224
import 'dayjs/locale/it';
25+
import 'dayjs/locale/ja';
26+
import 'dayjs/locale/ko';
2327
import 'dayjs/locale/nl';
2428
import 'dayjs/locale/ru';
2529
import 'dayjs/locale/tr';
@@ -355,6 +359,8 @@ export class Streami18n {
355359
fr: { [defaultNS]: frTranslations },
356360
hi: { [defaultNS]: hiTranslations },
357361
it: { [defaultNS]: itTranslations },
362+
ja: { [defaultNS]: jaTranslations },
363+
ko: { [defaultNS]: koTranslations },
358364
nl: { [defaultNS]: nlTranslations },
359365
ru: { [defaultNS]: ruTranslations },
360366
tr: { [defaultNS]: trTranslations },

0 commit comments

Comments
 (0)