Configures hif-vtk-extention to use ohif-i18n for translation and include load more locations
This commit is contained in:
1 parent
56b595980e
commit
42cb8e32c7
10 files changed
+113
-63
No files matched your search
@@ -1,3 +1,7 @@
|
||||
import loadLocales from './loadLocales';
|
||||
|
||||
import OHIFVTKExtension from './OHIFVTKExtension.js';
|
||||
|
||||
loadLocales();
|
||||
|
||||
export default OHIFVTKExtension;
|
||||
@@ -0,0 +1,8 @@
|
||||
import { addLocales } from 'ohif-i18n';
|
||||
|
||||
function loadLocales() {
|
||||
const context = require.context(`./locales`, true, /\.json$/);
|
||||
addLocales(context);
|
||||
}
|
||||
|
||||
export default loadLocales;
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"Rotate": "Rotate VTK"
|
||||
}
|
||||
Reference in new issue
Block a user