Skip to content

Commit 0571000

Browse files
committed
feat: hebrew addition to imports and config file
1 parent 20d869a commit 0571000

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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)