diff --git a/i18n/en.pot b/i18n/en.pot new file mode 100644 index 0000000..25d6bff --- /dev/null +++ b/i18n/en.pot @@ -0,0 +1,18 @@ +msgid "" +msgstr "" +"Project-Id-Version: i18next-conv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"POT-Creation-Date: 2024-04-17T11:48:54.313Z\n" +"PO-Revision-Date: 2024-04-17T11:48:54.313Z\n" + +msgid "Home" +msgstr "Home" + +msgid "DHIS2 Web App Academy 2024" +msgstr "DHIS2 Web App Academy 2024" + +msgid "Made by Edson" +msgstr "Made by Edson" diff --git a/i18n/fr.po b/i18n/fr.po new file mode 100644 index 0000000..bb08a43 --- /dev/null +++ b/i18n/fr.po @@ -0,0 +1,21 @@ +msgid "" +msgstr "" +"Project-Id-Version: i18next-conv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"POT-Creation-Date: 2024-04-16T16:25:40.484Z\n" +"PO-Revision-Date: 2024-04-16T16:25:40.484Z\n" + +msgid "Form" +msgstr "Formulario" + +msgid "Home" +msgstr "Casa" + +msgid "DHIS2 Web App Academy 2024" +msgstr "DHIS2 Web App Academy 2024" + +msgid "Made by Edson" +msgstr "Made by Edson" diff --git a/package.json b/package.json index 0c33cfc..e25a4b5 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,8 @@ }, "dependencies": { "@dhis2/app-runtime": "^3.10.3", + "@dhis2/d2-i18n": "^1.1.3", + "@dhis2/ui": "9.4.3", "react-router-dom": "^6.22.3" } } diff --git a/src/App.js b/src/App.js index be72803..e402bb1 100644 --- a/src/App.js +++ b/src/App.js @@ -3,6 +3,7 @@ import { HashRouter, Navigate, Route, Routes } from 'react-router-dom' import styles from './App.module.css' import { Navigation } from './navigation/index.js' import { Form, Home, Attributes } from './views/index.js' +import i18n from './locales/index.js' const MyApp = () => ( + + case "select": + return