diff --git a/lib/Toolbar.js b/lib/Toolbar.js index 61ac864a..257117b8 100644 --- a/lib/Toolbar.js +++ b/lib/Toolbar.js @@ -6,9 +6,10 @@ import '@selectize/selectize'; import '@selectize/selectize/dist/css/selectize.bootstrap4.css'; import { exportFile, exportJsonFile, readFileAsync } from '@/lib/utils/files'; +import { languages } from "@/lib/i18n"; +import i18next, { changeLanguage } from 'i18next'; import template from '@/lib/toolbar.html'; - import '@/lib//toolbar.css'; // TODO: this is odd! package.json is a developer file. why should a UI component care about it? @@ -312,6 +313,24 @@ class Toolbar { }); $('#help_reference').on('click', () => this.dh.renderReference()); + + + // language localization controls + const language_options = Object.values(languages) + .map(el => $("