diff --git a/demo/src/app.js b/demo/src/app.js index da8fd2df..6df84160 100644 --- a/demo/src/app.js +++ b/demo/src/app.js @@ -76,6 +76,7 @@ import { treeview_finder_en, treeview_finder_fr, } from '../../src/index'; +import translations from "./demo_intl"; import PowsyblLogo from '-!@svgr/webpack!../images/powsybl_logo.svg'; import AppPackage from '../../package.json'; @@ -121,6 +122,7 @@ const messages = { ...flat_parameters_en, ...multiple_selection_dialog_en, ...inputs_en, + ...translations.en, }, fr: { ...report_viewer_fr, @@ -134,6 +136,7 @@ const messages = { ...flat_parameters_fr, ...multiple_selection_dialog_fr, ...inputs_fr, + ...translations.fr, }, }; diff --git a/demo/src/demo_intl.js b/demo/src/demo_intl.js new file mode 100644 index 00000000..7e86cc86 --- /dev/null +++ b/demo/src/demo_intl.js @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2023, RTE (http://www.rte-france.com) + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +const translations = { + fr: { + 'close': 'Fermer', + }, + en: { + 'close': 'Close', + }, +}; +export default translations;