Skip to content

Commit 7137706

Browse files
Updating readme
1 parent 6acfd59 commit 7137706

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
```

0 commit comments

Comments
 (0)