File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -413,3 +413,25 @@ Default language is English. Simplest way to start using chat components in one
413413 }
414414 );
415415 ```
416+
417+ Momentjs provides locale config for plenty of languages, you can check the whole list of locale configs at following url
418+
419+ https://github.com/moment/moment/tree/develop/locale
420+
421+ Stream uses locale configs provided by momentjs for built-in languages. You can also use one of these locale configs whiles registering
422+ a new language. If you would liek to use the locale provided by momentjs as it is, simply import the file in your project.
423+
424+ e.g.,
425+
426+ ``` js static
427+
428+ // Registering locale config for Danish language
429+ import ' moment/locale/da' ;
430+
431+ const i18n = new Streami18n ({
432+ language: ' da' ,
433+ translationsForLanguage: {
434+ ...
435+ },
436+ });
437+ ```
You can’t perform that action at this time.
0 commit comments