File tree Expand file tree Collapse file tree 7 files changed +24
-8
lines changed Expand file tree Collapse file tree 7 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ msgstr ""
5
5
"Content-Type : text/plain; charset=utf-8\n "
6
6
"Content-Transfer-Encoding : 8bit\n "
7
7
"Plural-Forms : nplurals=2; plural=(n != 1)\n "
8
- "POT-Creation-Date : 2024-01-19T18:27:08.201Z \n "
9
- "PO-Revision-Date : 2024-01-19T18:27:08.201Z \n "
8
+ "POT-Creation-Date : 2024-06-25T17:49:07.727Z \n "
9
+ "PO-Revision-Date : 2024-06-25T17:49:07.727Z \n "
10
10
11
11
msgid "Data values - Create/update"
12
12
msgstr ""
@@ -853,6 +853,9 @@ msgstr ""
853
853
msgid "Access to Themes"
854
854
msgstr ""
855
855
856
+ msgid "Error while updating sharing settings"
857
+ msgstr ""
858
+
856
859
msgid "Error deleting data values"
857
860
msgstr ""
858
861
Original file line number Diff line number Diff line change 1
1
msgid ""
2
2
msgstr ""
3
3
"Project-Id-Version : Bulk Load\n "
4
- "POT-Creation-Date : 2024-01-19T18:27:08.201Z \n "
4
+ "POT-Creation-Date : 2024-06-25T17:49:07.727Z \n "
5
5
"Language : es\n "
6
6
"MIME-Version : 1.0\n "
7
7
"Content-Type : text/plain; charset=UTF-8\n "
@@ -886,6 +886,9 @@ msgstr "Crear tema"
886
886
msgid "Access to Themes"
887
887
msgstr "Acceso a plantillas"
888
888
889
+ msgid "Error while updating sharing settings"
890
+ msgstr ""
891
+
889
892
msgid "Error deleting data values"
890
893
msgstr "Se ha producido un error borrando valores de datos"
891
894
Original file line number Diff line number Diff line change 1
1
msgid ""
2
2
msgstr ""
3
3
"Project-Id-Version : Bulk Load App\n "
4
- "POT-Creation-Date : 2024-01-19T18:27:08.201Z \n "
4
+ "POT-Creation-Date : 2024-06-25T17:49:07.727Z \n "
5
5
"Language : fr\n "
6
6
"MIME-Version : 1.0\n "
7
7
"Content-Type : text/plain; charset=UTF-8\n "
@@ -908,6 +908,9 @@ msgstr "Créer un thème"
908
908
msgid "Access to Themes"
909
909
msgstr "Accès à la génération de modèles"
910
910
911
+ msgid "Error while updating sharing settings"
912
+ msgstr ""
913
+
911
914
msgid "Error deleting data values"
912
915
msgstr "Erreur lors de la suppression des valeurs de données"
913
916
Original file line number Diff line number Diff line change 1
1
msgid ""
2
2
msgstr ""
3
3
"Project-Id-Version : Bulk Load\n "
4
- "POT-Creation-Date : 2024-01-19T18:27:08.201Z \n "
4
+ "POT-Creation-Date : 2024-06-25T17:49:07.727Z \n "
5
5
"Language : pt\n "
6
6
"MIME-Version : 1.0\n "
7
7
"Content-Type : text/plain; charset=UTF-8\n "
@@ -941,6 +941,9 @@ msgstr "Criar tema"
941
941
msgid "Access to Themes"
942
942
msgstr "Acesso à geração de planilhas"
943
943
944
+ msgid "Error while updating sharing settings"
945
+ msgstr ""
946
+
944
947
msgid "Error deleting data values"
945
948
msgstr "Erro ao excluir valores de dados"
946
949
Original file line number Diff line number Diff line change 1
1
msgid ""
2
2
msgstr ""
3
3
"Project-Id-Version : Bulk Load\n "
4
- "POT-Creation-Date : 2024-01-19T18:27:08.201Z \n "
4
+ "POT-Creation-Date : 2024-06-25T17:49:07.727Z \n "
5
5
"Language : ru\n "
6
6
"MIME-Version : 1.0\n "
7
7
"Content-Type : text/plain; charset=UTF-8\n "
@@ -945,6 +945,9 @@ msgstr "Создать тему"
945
945
msgid "Access to Themes"
946
946
msgstr "Доступ к генерации шаблонов"
947
947
948
+ msgid "Error while updating sharing settings"
949
+ msgstr ""
950
+
948
951
msgid "Error deleting data values"
949
952
msgstr "Ошибка при удалении значений данных"
950
953
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import _ from "lodash";
4
4
import { Moment } from "moment" ;
5
5
import { UseCase } from "../../CompositionRoot" ;
6
6
import { getRelationshipMetadata , RelationshipOrgUnitFilter } from "../../data/Dhis2RelationshipTypes" ;
7
- import i18n from "../../locales" ;
8
7
import { D2Api } from "../../types/d2-api" ;
9
8
import { getExtensionFile , XLSX_EXTENSION } from "../../utils/files" ;
10
9
import { promiseMap } from "../../utils/promises" ;
@@ -79,7 +78,7 @@ export class DownloadTemplateUseCase implements UseCase {
79
78
showLanguage,
80
79
orgUnitShortName,
81
80
} = options ;
82
- i18n . setDefaultNamespace ( "bulk-load" ) ;
81
+
83
82
const useShortNameInOrgUnit = orgUnitShortName || false ;
84
83
const templateId =
85
84
templateType === "custom" && customTemplateId ? customTemplateId : getGeneratedTemplateId ( type ) ;
Original file line number Diff line number Diff line change 1
1
import React , { useContext } from "react" ;
2
2
import { CompositionRoot } from "../../CompositionRoot" ;
3
3
import { D2Api } from "../../types/d2-api" ;
4
+ import i18n from "../../locales" ;
4
5
5
6
export interface AppContextI {
6
7
api : D2Api ;
@@ -12,6 +13,7 @@ export const AppContext = React.createContext<AppContextI | null>(null);
12
13
13
14
export function useAppContext ( ) {
14
15
const context = useContext ( AppContext ) ;
16
+ i18n . setDefaultNamespace ( "bulk-load" ) ;
15
17
if ( context ) {
16
18
return context ;
17
19
} else {
You can’t perform that action at this time.
0 commit comments