Skip to content

Commit cd86b9f

Browse files
committed
Update en/fr translation
1 parent 488924d commit cd86b9f

File tree

9 files changed

+23
-8
lines changed

9 files changed

+23
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dhis2-downloader",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"description": "DHIS2 Downloader",
55
"main": "./out/main/index.js",
66
"author": "globalfinancingfacility.org",

src/renderer/src/i18n/en/main.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
"organizationUnitsTooltip": "An organisational unit is usually a geographical unit, which exists within a hierarchy.",
99
"dataElementsAndIndicators": "Data Elements and Indicators",
1010
"organizationLevels": "Organization Levels",
11+
"selectLevels": "Select Levels",
1112
"dateRange": "Date Range",
1213
"disaggregation": "Disaggregation",
14+
"selectDisaggregation": "Select Disaggregation",
1315
"disaggregationTooltip": {
1416
"header": "Disaggregation includes:",
1517
"list": [

src/renderer/src/i18n/en/navbar.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
"table": "Table",
99
"dictionary": "Dictionary",
1010
"about": "About",
11-
"signOut": "Sign out"
11+
"signOut": "Sign out",
12+
"terms": "Terms and Conditions",
13+
"privacy": "Privacy Policy"
1214
}

src/renderer/src/i18n/fr/about.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"overviewTitle": "À propos de FASTR DHIS2 Data Downloader",
3-
"welcomeText": "Bienvenue sur le système de téléchargement de données FASTR DHIS2 (FASTR DHIS2 Data Downloader), votre solution idéale pour extraire facilement les données des systèmes DHIS2. Cet outil simplifie le téléchargement de données DHIS2 pour différents utilisateurs, qu'il s'agisse de fonctionnaires du ministère de la Santé, de chercheurs, d'ONG ou de bailleurs de fonds.",
3+
"welcomeText": "Bienvenue au système de téléchargement de données FASTR DHIS2 (FASTR DHIS2 Data Downloader), votre solution idéale pour facilement extraire les données du système DHIS2. Cet outil simplifie le téléchargement de données DHIS2 pour différents utilisateurs, qu'il s'agisse de fonctionnaires du ministère de la Santé, de chercheurs, d'ONG ou de bailleurs de fonds.",
44
"features": {
55
"title": "Fonctionnalités",
66
"downloadingData": {

src/renderer/src/i18n/fr/main.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"organizationUnitsTooltip": "Une unité organisationnelle est généralement une unité géographique qui s’inscrit dans une hiérarchie.",
99
"dataElementsAndIndicators": "Éléments de données et indicateurs",
1010
"organizationLevels": "Niveaux d'organisation",
11+
"selectLevels": "Sélectionner niveaux",
12+
"selectDisaggregation": "Sélectionner désagrégation",
1113
"dateRange": "Plage de dates",
1214
"disaggregation": "Désagrégation",
1315
"disaggregationTooltip": {

src/renderer/src/i18n/fr/navbar.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
"table": "Tableau",
99
"dictionary": "Dictionnaire",
1010
"about": "À propos",
11-
"signOut": "Se déconnecter"
11+
"signOut": "Se déconnecter",
12+
"terms": "Conditions générales",
13+
"privacy": "Politique de confidentialité"
1214
}

src/renderer/src/pages/Footer.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ import WBGLogo from '../assets/WBG-SupportedBy-horizontal-white-web.png'
22
import GFFLogo from '../assets/GFF_Logo_White_En.png'
33
import FASTRLogo from '../assets/FASTR_White_Horiz.png'
44
import { Link } from 'react-router-dom'
5+
import { useTranslation } from 'react-i18next'
56

67
const Footer = () => {
8+
const { t } = useTranslation()
9+
710
return (
811
<footer className="bg-gff-green text-white p-5">
912
<div className="max-w-7xl mx-auto flex justify-between items-center">
@@ -41,10 +44,10 @@ const Footer = () => {
4144
rel="noreferrer"
4245
className="hover:text-gray-300"
4346
>
44-
Terms & Conditions
47+
{t('navbar.terms')}
4548
</a>
4649
<Link to="/privacy" className="hover:text-gray-300">
47-
Privacy Policy
50+
{t('navbar.privacy')}
4851
</Link>
4952
</div>
5053
</div>

src/renderer/src/pages/MainPage/CategoryCombo.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ import React, { useEffect, useRef } from 'react'
22
import { useSelector, useDispatch } from 'react-redux'
33
import { setSelectedCategory } from '../../reducers/categoryReducer'
44
import { mouseClick, mouseToggle } from '../../reducers/mouseReducer'
5+
import { useTranslation } from 'react-i18next'
56

67
const CategoryDropdownMenu = () => {
78
const dispatch = useDispatch()
89
const { categories, orgUnitGroupSets, selectedCategory } = useSelector((state) => state.category)
910
const openDropdowns = useSelector((state) => state.mouse.openDropdowns)
11+
const { t } = useTranslation()
1012
const dropdownId = 'categoryDropdown'
1113
const dropdownRef = useRef(null)
1214

@@ -41,7 +43,7 @@ const CategoryDropdownMenu = () => {
4143
{selectedCategory.length > 0 ? (
4244
<span className="flex-grow">{selectedCategory.length} selected</span>
4345
) : (
44-
<span className="flex-grow">Select Disaggregation</span>
46+
<span className="flex-grow">{t('mainPage.selectDisaggregation')}</span>
4547
)}
4648
<span className="absolute right-4 pointer-events-none"></span>
4749
</div>

src/renderer/src/pages/MainPage/OrgUnitLevelMenu.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import React, { useEffect, useRef } from 'react'
22
import { useSelector, useDispatch } from 'react-redux'
33
import { updateOrgUnitLevels, fetchOrganizationLevels } from '../../reducers/orgUnitReducer'
44
import { mouseClick, mouseToggle } from '../../reducers/mouseReducer'
5+
import { useTranslation } from 'react-i18next'
56

67
const OrgUnitLevelMenu = () => {
78
const dispatch = useDispatch()
89
const { allOrgUnitLevels, selectedOrgUnitLevels } = useSelector((state) => state.orgUnit)
910
const openDropdowns = useSelector((state) => state.mouse.openDropdowns)
1011
const { dhis2Url, username, password } = useSelector((state) => state.auth)
12+
const { t } = useTranslation()
1113
const dropdownId = 'orgUnitLevel'
1214
const dropdownRef = useRef(null)
1315

@@ -49,7 +51,7 @@ const OrgUnitLevelMenu = () => {
4951
{selectedOrgUnitLevels?.length > 0 ? (
5052
<span className="flex-grow">{selectedOrgUnitLevels?.length} selected</span>
5153
) : (
52-
<span className="flex-grow">{'Select Level'}</span>
54+
<span className="flex-grow">{t('mainPage.selectLevels')}</span>
5355
)}
5456
<span className="absolute right-4 pointer-events-none"></span>
5557
</div>

0 commit comments

Comments
 (0)