Skip to content

Commit

Permalink
Add missing translations for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-WorkGH committed Dec 19, 2023
1 parent 1235c48 commit c0ea485
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ import {
treeview_finder_en,
treeview_finder_fr,
} from '../../src/index';
import translations from "./demo_intl";

Check warning on line 79 in demo/src/app.js

View workflow job for this annotation

GitHub Actions / build

Replace `"./demo_intl"` with `'./demo_intl'`

import PowsyblLogo from '-!@svgr/webpack!../images/powsybl_logo.svg';
import AppPackage from '../../package.json';
Expand Down Expand Up @@ -121,6 +122,7 @@ const messages = {
...flat_parameters_en,
...multiple_selection_dialog_en,
...inputs_en,
...translations.en,
},
fr: {
...report_viewer_fr,
Expand All @@ -134,6 +136,7 @@ const messages = {
...flat_parameters_fr,
...multiple_selection_dialog_fr,
...inputs_fr,
...translations.fr,
},
};

Expand Down
16 changes: 16 additions & 0 deletions demo/src/demo_intl.js
Original file line number Diff line number Diff line change
@@ -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',

Check warning on line 10 in demo/src/demo_intl.js

View workflow job for this annotation

GitHub Actions / build

Replace `'close'` with `close`
},
en: {
'close': 'Close',

Check warning on line 13 in demo/src/demo_intl.js

View workflow job for this annotation

GitHub Actions / build

Replace `'close'` with `close`
},
};
export default translations;

0 comments on commit c0ea485

Please sign in to comment.