@ohif/i18n: Fix issues with exports and update docs (#598)

* update i18n version -- already published

* update ohif/i18n version and add modules

* update ohif/i18n version

* update translating documentation

* replace addLocales method and exported modules

* lock files

* Update index.js

* fix(@ohif/i18n): export custom methods in the main i18n object

`initI18n`, `addLocales` and `T` are now being exported inside the main `i18n` object.

* remove unecessary dependencies

* update vtk-extension lock file
This commit is contained in:
Rodrigo Antinarelli authored and Erik Ziegler committed 2019-06-29 09:33:38 +02:00
1 parent cb565427b3
commit 16cea8681e
8 files changed
+278 -351

No files matched your search

+3 -3
View File
@@ -115,9 +115,9 @@ When needed, you can also use available translations _without React_.
E.g.
```js
import { t } from '@ohif/i18n';
console.log(t('my translated text'));
console.log(t('$t(Common:Play) my translated text'));
import { T } from '@ohif/i18n';
console.log(T('my translated text'));
console.log(T('$t(Common:Play) my translated text'));
```
---