How to use the @ohif/i18n.changeLanguage function in @ohif/i18n

To help you get started, we’ve selected a few @ohif/i18n examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OHIF / Viewers / platform / viewer / src / connectedComponents / ConnectedUserPreferencesForm.js View on Github external
onSave: ({ windowLevelData, hotkeyDefinitions, generalPreferences }) => {
      // TODO improve this strategy on windowLevel implementation
      hotkeysManager.setHotkeys(hotkeyDefinitions);

      const { language } = generalPreferences;

      // set new language
      i18n.changeLanguage(language);

      ownProps.hide();
      dispatch(
        setUserPreferences({
          windowLevelData,
          hotkeyDefinitions,
          generalPreferences,
        })
      );
    },
  };

@ohif/i18n

Internationalization library for The OHIF Viewer

MIT
Latest version published 19 days ago

Package Health Score

90 / 100
Full package analysis

Similar packages