Skip to content

Commit 20a73f0

Browse files
authored
Merge pull request #1512 from GetStream/steve/hebrew-locale
feat: hebrew locale support
2 parents 7aa9406 + 63ee25c commit 20a73f0

File tree

3 files changed

+74
-3
lines changed

3 files changed

+74
-3
lines changed

package/src/i18n/he.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"1 Reply": "תגובה אחת",
3+
"1 Thread Reply": "תגובה אחת לשרשור",
4+
"Allow access to your Gallery": "אפשר גישה לגלריה שלך",
5+
"Also send to channel": "שלח/י הודעה לשיחה",
6+
"Are you sure you want to permanently delete this message?": "האם את/ה בטוח/ה שאת/ה רוצה למחוק את ההודעה הזו לצמיתות?",
7+
"Block User": "חסום משתמש",
8+
"Cancel": "ביטול",
9+
"Cannot Flag Message": "סימון הודעה לא אפשרי",
10+
"Copy Message": "העתק/י הודעה",
11+
"Delete": "מחק",
12+
"Delete Message": "מחק/י הודעה",
13+
"Do you want to send a copy of this message to a moderator for further investigation?": "האם את/ה רוצה לשלוח עותק של הודעה זו למנחה להמשך חקירה?",
14+
"Edit Message": "ערוך הודעה",
15+
"Editing Message": "הודעה בעריכה",
16+
"Emoji matching": "התאמת אמוג'י",
17+
"Empty message...": "הודעה ריקה...",
18+
"Error loading": "שגיאה ארעה בעת הטעינה",
19+
"Error loading channel list...": "שגיאה ארעה בטעינת השיחות...",
20+
"Error loading messages for this channel...": "שגיאה ארעה בטעינת הודעות עבור שיחה זאת...",
21+
"Error while loading, please reload/refresh": "שגיאה ארעה בזמן הטעינה, אנא טען מחדש/רענן",
22+
"File type not supported": "סוג הקובץ אינו נתמך",
23+
"Flag": "סמן",
24+
"Flag Message": "סמן הודעה",
25+
"Flag action failed either due to a network issue or the message is already flagged": "פעולת הסימון נכשלה בגלל בעיית רשת או שההודעה כבר סומנה.",
26+
"Instant Commands": "פעולות מיידיות",
27+
"Links are disabled": "הקישורים מבוטלים",
28+
"Loading channels...": "השיחות בטעינה...",
29+
"Loading messages...": "ההודעות בטעינה..",
30+
"Loading...": "טוען...",
31+
"Message Reactions": "תגובות להודעה",
32+
"Message deleted": "ההודעה נמחקה",
33+
"Message flagged": "ההודעה סומנה",
34+
"Mute User": "השתק/י משתמש",
35+
"Not supported": "לא נתמך",
36+
"Nothing yet...": "אינפורמציה תתקבל בהמשך...",
37+
"Ok": "אוקיי",
38+
"Only visible to you": "גלוי רק לך",
39+
"Photo": "תמונה",
40+
"Photos": "תמונות",
41+
"Pin to Conversation": "הצמד/י לשיחה",
42+
"Please enable access to your photos and videos so you can share them.": "אפשר/י גישה לתמונות ולסרטונים שלך כדי שתוכל/י לשתף אותם.",
43+
"Please select a channel first": "אנא בחר/י שיחה תחילה",
44+
"Reconnecting...": "מתחבר מחדש...",
45+
"Reply": "השב/י",
46+
"Reply to Message": "השב/י להודעה",
47+
"Resend": "שלח/י שוב",
48+
"Search GIFs": "חפש/י GIFs",
49+
"Send a message": "שלח/י הודעה",
50+
"Sending links is not allowed in this conversation": "שליחת קישורים אינה מותרת בשיחה זו",
51+
"Slow mode ON": "מצב איטי מופעל",
52+
"The message has been reported to a moderator.": "ההודעה דווחה למנהל",
53+
"Thread Reply": "הגב/י בשרשור",
54+
"Unblock User": "בטל/י חסימת משתמש",
55+
"Unknown User": "משתמש לא ידוע",
56+
"Unmute User": "בטל/י השתקת משתמש",
57+
"Unpin from Conversation": "בטל/י הצמדה לשיחה",
58+
"Unread Messages": "הודעות שטרם נקרו",
59+
"You": "את/ה",
60+
"You can't send messages in this channel": "את/ב לא יכול/ה לשלוח הודעות בשיחה זו",
61+
"{{ firstUser }} and {{ nonSelfUserLength }} more are typing": "{{ firstUser }} ו-{{ nonSelfUserLength }} משתמש/ים אחר/ים מקלידים",
62+
"{{ index }} of {{ photoLength }}": "{{ index }} מתוך {{ photoLength }}",
63+
"{{ replyCount }} Replies": "{{ replyCount }} תגובות",
64+
"{{ replyCount }} Thread Replies": "{{ replyCount }} תגובות שרשור",
65+
"{{ user }} is typing": "{{ user }} מקליד/ה",
66+
"🏙 Attachment...": "🏙 קובץ מצורף..."
67+
}

package/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ export { default as itTranslations } from './i18n/it.json';
1818
export { default as nlTranslations } from './i18n/nl.json';
1919
export { default as ruTranslations } from './i18n/ru.json';
2020
export { default as trTranslations } from './i18n/tr.json';
21+
export { default as heTranslations } from './i18n/he.json';
2122

2223
export { version } from './version.json';

package/src/utils/Streami18n.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type moment from 'moment';
1111
import type { TDateTimeParser } from '../contexts/translationContext/TranslationContext';
1212
import enTranslations from '../i18n/en.json';
1313
import frTranslations from '../i18n/fr.json';
14+
import heTranslations from '../i18n/he.json';
1415
import hiTranslations from '../i18n/hi.json';
1516
import itTranslations from '../i18n/it.json';
1617
import jaTranslations from '../i18n/ja.json';
@@ -19,9 +20,6 @@ import nlTranslations from '../i18n/nl.json';
1920
import ruTranslations from '../i18n/ru.json';
2021
import trTranslations from '../i18n/tr.json';
2122

22-
const defaultNS = 'translation';
23-
const defaultLng = 'en';
24-
2523
import 'dayjs/locale/fr';
2624
import 'dayjs/locale/hi';
2725
import 'dayjs/locale/it';
@@ -30,6 +28,7 @@ import 'dayjs/locale/ko';
3028
import 'dayjs/locale/nl';
3129
import 'dayjs/locale/ru';
3230
import 'dayjs/locale/tr';
31+
import 'dayjs/locale/he';
3332

3433
/**
3534
* These locale imports also set these locales globally.
@@ -40,6 +39,9 @@ import 'dayjs/locale/en';
4039

4140
import type { DefaultStreamChatGenerics } from '../types/types';
4241

42+
const defaultNS = 'translation';
43+
const defaultLng = 'en';
44+
4345
Dayjs.extend(updateLocale);
4446

4547
Dayjs.updateLocale('en', {
@@ -357,6 +359,7 @@ export class Streami18n {
357359
} = {
358360
en: { [defaultNS]: enTranslations },
359361
fr: { [defaultNS]: frTranslations },
362+
he: { [defaultNS]: heTranslations },
360363
hi: { [defaultNS]: hiTranslations },
361364
it: { [defaultNS]: itTranslations },
362365
ja: { [defaultNS]: jaTranslations },

0 commit comments

Comments
 (0)