@@ -11,6 +11,7 @@ import type moment from 'moment';
1111import type { TDateTimeParser } from '../contexts/translationContext/TranslationContext' ;
1212import enTranslations from '../i18n/en.json' ;
1313import frTranslations from '../i18n/fr.json' ;
14+ import heTranslations from '../i18n/he.json' ;
1415import hiTranslations from '../i18n/hi.json' ;
1516import itTranslations from '../i18n/it.json' ;
1617import jaTranslations from '../i18n/ja.json' ;
@@ -19,9 +20,6 @@ import nlTranslations from '../i18n/nl.json';
1920import ruTranslations from '../i18n/ru.json' ;
2021import trTranslations from '../i18n/tr.json' ;
2122
22- const defaultNS = 'translation' ;
23- const defaultLng = 'en' ;
24-
2523import 'dayjs/locale/fr' ;
2624import 'dayjs/locale/hi' ;
2725import 'dayjs/locale/it' ;
@@ -30,6 +28,7 @@ import 'dayjs/locale/ko';
3028import 'dayjs/locale/nl' ;
3129import 'dayjs/locale/ru' ;
3230import '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
4140import type { DefaultStreamChatGenerics } from '../types/types' ;
4241
42+ const defaultNS = 'translation' ;
43+ const defaultLng = 'en' ;
44+
4345Dayjs . extend ( updateLocale ) ;
4446
4547Dayjs . 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