diff --git a/Makefile b/Makefile index 0eb144d3d70..d2ac608a9df 100755 --- a/Makefile +++ b/Makefile @@ -105,6 +105,8 @@ locales: msgfmt -o modules/dictionary/locale/hi/LC_MESSAGES/dictionary.mo modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po npx i18next-conv -l hi -s modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po -t modules/dictionary/locale/hi/LC_MESSAGES/dictionary.json msgfmt -o modules/document_repository/locale/ja/LC_MESSAGES/document_repository.mo modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po + msgfmt -o modules/document_repository/locale/hi/LC_MESSAGES/document_repository.mo modules/document_repository/locale/hi/LC_MESSAGES/document_repository.po + npx i18next-conv -l hi -s modules/document_repository/locale/hi/LC_MESSAGES/document_repository.po -t modules/document_repository/locale/hi/LC_MESSAGES/document_repository.json msgfmt -o modules/dqt/locale/ja/LC_MESSAGES/dqt.mo modules/dqt/locale/ja/LC_MESSAGES/dqt.po msgfmt -o modules/electrophysiology_browser/locale/ja/LC_MESSAGES/electrophysiology_browser.mo modules/electrophysiology_browser/locale/ja/LC_MESSAGES/electrophysiology_browser.po msgfmt -o modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.mo modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po diff --git a/modules/document_repository/jsx/categoryForm.js b/modules/document_repository/jsx/categoryForm.js index f3c7199b483..b5df6a9e347 100644 --- a/modules/document_repository/jsx/categoryForm.js +++ b/modules/document_repository/jsx/categoryForm.js @@ -8,6 +8,9 @@ import { SelectElement, ButtonElement, } from 'jsx/Form'; +import i18n from 'I18nSetup'; +import {withTranslation} from 'react-i18next'; +import hiStrings from '../locale/hi/LC_MESSAGES/document_repository.json'; /** * Category Creation Form @@ -68,9 +71,11 @@ class DocCategoryForm extends React.Component { * @return {JSX} - React markup for the component */ render() { + const {t} = this.props; // Data loading error if (this.state.error) { - return