@@ -950,15 +950,16 @@ export function registerNativeHandlers(handlers: {
950950
951951export interface Streami18nOptions {
952952 language : string ;
953- disableDateTimeTranslations : boolean ;
954- debug : boolean ;
955- logger ( msg : string ) : any ;
956- momentLocaleConfigForLanguage : object ;
953+ disableDateTimeTranslations ?: boolean ;
954+ translationsForLanguage ?: object ;
955+ debug ?: boolean ;
956+ logger ?( msg : string ) : any ;
957+ momentLocaleConfigForLanguage ?: object ;
957958}
958959
959960export interface Streami18nTranslators {
960- t ? : i18next . TFunction ;
961- moment ? ( ) : moment . Moment ;
961+ t : i18next . TFunction ;
962+ moment ( datetime : moment . MomentInput ) : moment . Moment ;
962963}
963964
964965export class Streami18n {
@@ -974,7 +975,7 @@ export class Streami18n {
974975 registerTranslation (
975976 key : String ,
976977 translation : Object ,
977- customMomentLocale : moment . LocaleSpecification ,
978+ customMomentLocale ? : moment . LocaleSpecification ,
978979 ) : void ;
979980 addOrUpdateMomentLocaleConfig (
980981 key : String ,
@@ -983,3 +984,11 @@ export class Streami18n {
983984 setLanguage ( language : String ) : Promise < void > ;
984985 registerSetLanguageCallback ( callback : ( t : i18next . TFunction ) => void ) : void ;
985986}
987+
988+ export const enTranslations : object ;
989+ export const nlTranslations : object ;
990+ export const ruTranslations : object ;
991+ export const trTranslations : object ;
992+ export const frTranslations : object ;
993+ export const hiTranslations : object ;
994+ export const itTranslations : object ;
0 commit comments