data-primals-engine 1.0.11 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/README.md +8 -0
- package/client/index.html +31 -0
- package/client/index.js +25 -0
- package/client/package-lock.json +11664 -0
- package/client/package.json +70 -0
- package/client/public/demo/26899917-d1ba-4df4-bb33-48d09a8778da.jpg +0 -0
- package/client/public/demo/4b9894c7-12cd-466d-8fd3-a2757b09ec96.jpg +0 -0
- package/client/public/demo/7ed369ac-a1a2-4b45-b0cd-4fd5bcf5a75a.jpg +0 -0
- package/client/public/doc/API.postman_collection.json +214 -0
- package/client/public/github.svg +1 -0
- package/client/public/profilCompany.jpg +0 -0
- package/client/public/profilDeveloper.jpg +0 -0
- package/client/public/profilEngineer.jpg +0 -0
- package/client/public/profilPersonal.jpg +0 -0
- package/client/public/profils .psd +0 -0
- package/client/public/react.svg +9 -0
- package/client/src/APIInfo.jsx +328 -0
- package/client/src/AddWidgetTypeModal.jsx +44 -0
- package/client/src/AddWidgetTypeModal.scss +87 -0
- package/client/src/App.css +42 -0
- package/client/src/App.jsx +586 -0
- package/client/src/App.scss +1466 -0
- package/client/src/AssistantChat.jsx +280 -0
- package/client/src/AssistantChat.scss +229 -0
- package/client/src/Button.jsx +12 -0
- package/client/src/Button.scss +197 -0
- package/client/src/CalculationBuilder.jsx +338 -0
- package/client/src/CalculationStepRow.jsx +199 -0
- package/client/src/CalendarConfigModal.jsx +49 -0
- package/client/src/ChartConfigModal.jsx +402 -0
- package/client/src/ConditionBuilder.jsx +622 -0
- package/client/src/ConditionBuilder.scss +672 -0
- package/client/src/ConditionBuilder2.jsx +757 -0
- package/client/src/ContentView.jsx +274 -0
- package/client/src/CronBuilder.jsx +126 -0
- package/client/src/CronBuilder.scss +128 -0
- package/client/src/CronPartBuilder.jsx +150 -0
- package/client/src/Dashboard.jsx +210 -0
- package/client/src/Dashboard.scss +445 -0
- package/client/src/DashboardChart.jsx +362 -0
- package/client/src/DashboardFlexViewItem.jsx +129 -0
- package/client/src/DashboardView.jsx +554 -0
- package/client/src/DataChart.jsx +349 -0
- package/client/src/DataEditor.jsx +556 -0
- package/client/src/DataLayout.jsx +709 -0
- package/client/src/DataTable.jsx +996 -0
- package/client/src/DataTable.scss +73 -0
- package/client/src/Dialog.jsx +90 -0
- package/client/src/Dialog.scss +117 -0
- package/client/src/DisplayFlexNodeRenderer.jsx +115 -0
- package/client/src/DocumentationPageLayout.jsx +93 -0
- package/client/src/DocumentationPageLayout.scss +262 -0
- package/client/src/Draggable.jsx +222 -0
- package/client/src/Draggable.scss +49 -0
- package/client/src/ExportDialog.jsx +172 -0
- package/client/src/Field.jsx +1558 -0
- package/client/src/FlexBuilder.jsx +269 -0
- package/client/src/FlexBuilder.scss +226 -0
- package/client/src/FlexBuilderControls.jsx +170 -0
- package/client/src/FlexBuilderModal.jsx +75 -0
- package/client/src/FlexBuilderModal.scss +109 -0
- package/client/src/FlexBuilderPreview.jsx +48 -0
- package/client/src/FlexBuilderUtils.js +84 -0
- package/client/src/FlexDataRenderer.jsx +170 -0
- package/client/src/FlexDataRenderer.scss +80 -0
- package/client/src/FlexNode.jsx +290 -0
- package/client/src/FlexTreeUtils.js +129 -0
- package/client/src/HiddenableCell.jsx +46 -0
- package/client/src/HiddenableCell.scss +36 -0
- package/client/src/KPIDialog.jsx +39 -0
- package/client/src/KPIWidget.jsx +139 -0
- package/client/src/KanbanCard.jsx +92 -0
- package/client/src/KanbanColumn.jsx +29 -0
- package/client/src/KanbanConfigModal.jsx +115 -0
- package/client/src/KanbanView.jsx +113 -0
- package/client/src/KanbanView.scss +107 -0
- package/client/src/MessageRotator.jsx +77 -0
- package/client/src/MessageRotator.scss +14 -0
- package/client/src/ModelCreator.jsx +640 -0
- package/client/src/ModelCreator.scss +154 -0
- package/client/src/ModelCreatorField.jsx +810 -0
- package/client/src/ModelImporter.jsx +120 -0
- package/client/src/ModelList.jsx +205 -0
- package/client/src/Notification.jsx +137 -0
- package/client/src/Notification.scss +126 -0
- package/client/src/NotificationProvider.jsx +73 -0
- package/client/src/PackGallery.jsx +211 -0
- package/client/src/PackGallery.scss +156 -0
- package/client/src/Pagination.jsx +141 -0
- package/client/src/RTE.jsx +415 -0
- package/client/src/RTETrans.jsx +103 -0
- package/client/src/RelationField.jsx +247 -0
- package/client/src/RelationValue.jsx +230 -0
- package/client/src/RestoreConfirmationModal.jsx +183 -0
- package/client/src/RestoreDialog.jsx +134 -0
- package/client/src/RestoreDialog.scss +67 -0
- package/client/src/RichTextEditorModal.jsx +34 -0
- package/client/src/RichTextEditorModal.scss +54 -0
- package/client/src/TourSpotlight.jsx +234 -0
- package/client/src/TourSpotlight.scss +100 -0
- package/client/src/TutorialsMenu.jsx +83 -0
- package/client/src/TutorialsMenu.scss +217 -0
- package/client/src/TutorialsRewardModal.jsx +65 -0
- package/client/src/Utils.jsx +78 -0
- package/client/src/ViewSwitcher.jsx +54 -0
- package/client/src/ViewSwitcher.scss +74 -0
- package/client/src/Webpage.jsx +69 -0
- package/client/src/_variables.scss +21 -0
- package/client/src/assets/react.svg +1 -0
- package/client/src/constants.js +68 -0
- package/client/src/contexts/AuthContext.jsx +28 -0
- package/client/src/contexts/ModelContext.jsx +328 -0
- package/client/src/contexts/UIContext.jsx +52 -0
- package/client/src/core/data.js +35 -0
- package/client/src/entry-client.jsx +15 -0
- package/client/src/entry-server.jsx +13 -0
- package/client/src/filter.js +222 -0
- package/client/src/hooks/data.js +101 -0
- package/client/src/hooks/useDebounce.js +20 -0
- package/client/src/hooks/useDragAndDrop.js +59 -0
- package/client/src/hooks/useLocalStorage.js +100 -0
- package/client/src/hooks/useMount.js +42 -0
- package/client/src/hooks/useTutorials.jsx +227 -0
- package/client/src/hooks/useWindowSize.js +24 -0
- package/client/src/i18n.js +47 -0
- package/client/src/index.css +90 -0
- package/client/src/index.js +10 -0
- package/client/src/main.jsx +11 -0
- package/client/src/translations.js +15940 -0
- package/client/src/tutorials.js +112 -0
- package/client/vite.config.js +30 -0
- package/eslint.config.js +50 -0
- package/package.json +48 -27
- package/server.js +9 -0
- package/src/constants.js +12 -23
- package/src/core.js +9 -8
- package/src/data.js +81 -80
- package/src/defaultModels.js +114 -115
- package/src/email.js +8 -9
- package/src/engine.js +5 -5
- package/src/events.js +1 -2
- package/src/i18n.js +212 -211
- package/src/middlewares/middleware-mongodb.js +94 -93
- package/src/migrate.js +24 -24
- package/src/modules/assistant.js +55 -55
- package/src/modules/bucket.js +10 -9
- package/src/modules/data.js +387 -357
- package/src/modules/file.js +3 -6
- package/src/modules/mongodb.js +6 -7
- package/src/modules/user.js +24 -47
- package/src/modules/workflow.js +68 -67
- package/src/openai.jobs.js +2 -2
- package/src/packs.js +30 -31
- package/src/providers.js +101 -3
- package/src/setenv.js +1 -1
- package/src/user.js +0 -17
- package/src/workers/crypto-worker.js +21 -20
- package/src/workers/import-export-worker.js +18 -18
- package/test/data.backup.integration.test.js +7 -12
- package/test/data.integration.test.js +27 -25
- package/test/globalSetup.js +2 -2
- package/test/import_export.integration.test.js +6 -6
- package/test/model.integration.test.js +21 -22
- package/test/workflow.integration.test.js +2 -5
- package/test/workflow.robustness.test.js +6 -13
- package/vitest.config.js +2 -2
package/src/i18n.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i18n from "i18next";
|
|
2
|
-
import {initReactI18next
|
|
2
|
+
import {initReactI18next} from "react-i18next";
|
|
3
3
|
import LanguageDetector from "i18next-browser-languagedetector";
|
|
4
4
|
|
|
5
5
|
export const translations = {
|
|
@@ -194,7 +194,7 @@ export const translations = {
|
|
|
194
194
|
"field_accountingEntry_attachments_hint": "Pièces jointes",
|
|
195
195
|
"field_employee_notes_hint": "Notes additionnelles sur l'employé",
|
|
196
196
|
|
|
197
|
-
// workflow
|
|
197
|
+
// workflow
|
|
198
198
|
"field_workflow_startStep_hint": "La première étape à exécuter lorsque le workflow démarre.",
|
|
199
199
|
|
|
200
200
|
|
|
@@ -455,18 +455,18 @@ export const translations = {
|
|
|
455
455
|
field_stockAlert_user: 'Utilisateur',
|
|
456
456
|
field_stockAlert_stock: 'Stock',
|
|
457
457
|
field_stockAlert_threshold: 'Seuil',
|
|
458
|
-
// warehouse
|
|
458
|
+
// warehouse
|
|
459
459
|
field_warehouse_name: 'Nom',
|
|
460
460
|
field_warehouse_location: 'Lieu',
|
|
461
461
|
field_warehouse_capacity: 'Capacité',
|
|
462
|
-
// shipment
|
|
462
|
+
// shipment
|
|
463
463
|
field_shipment_order: 'Commande',
|
|
464
464
|
field_shipment_trackingNumber: 'Numéro de suivi',
|
|
465
465
|
field_shipment_carrier: 'Transporteur',
|
|
466
466
|
field_shipment_status: 'Statut',
|
|
467
467
|
field_shipment_estimatedDeliveryDate: 'Date de livraison estimée',
|
|
468
468
|
field_shipment_actualDeliveryDate: 'Date de livraison réelle',
|
|
469
|
-
// userSubscription
|
|
469
|
+
// userSubscription
|
|
470
470
|
field_userSubscription_user: 'Utilisateur',
|
|
471
471
|
field_userSubscription_product: 'Produit',
|
|
472
472
|
field_userSubscription_startDate: 'Date de début',
|
|
@@ -480,7 +480,7 @@ export const translations = {
|
|
|
480
480
|
field_userSubscription_lastBillingDate: 'Dernière date de facturation',
|
|
481
481
|
field_userSubscription_cancelReason: 'Raison de l\'annulation',
|
|
482
482
|
field_userSubscription_autoRenew: 'Renouvellement automatique',
|
|
483
|
-
// ticket
|
|
483
|
+
// ticket
|
|
484
484
|
field_ticket_user: 'Utilisateur',
|
|
485
485
|
field_ticket_order: 'Commande',
|
|
486
486
|
field_ticket_channel: 'Canal',
|
|
@@ -490,7 +490,7 @@ export const translations = {
|
|
|
490
490
|
field_ticket_priority: 'Priorité',
|
|
491
491
|
field_ticket_assignedTo: 'Assigné à',
|
|
492
492
|
field_ticket_createdAt: 'Date de création',
|
|
493
|
-
// campaign
|
|
493
|
+
// campaign
|
|
494
494
|
field_campaign_name: 'Nom',
|
|
495
495
|
field_campaign_description: 'Description',
|
|
496
496
|
field_campaign_startDate: 'Date de début',
|
|
@@ -498,28 +498,28 @@ export const translations = {
|
|
|
498
498
|
field_campaign_type: 'Type',
|
|
499
499
|
field_campaign_status: 'Statut',
|
|
500
500
|
field_campaign_budget: 'Budget',
|
|
501
|
-
// device
|
|
501
|
+
// device
|
|
502
502
|
field_device_location: 'Lieu',
|
|
503
503
|
field_device_lastLocationUpdate: 'Dernière mise à jour de la position',
|
|
504
|
-
// review
|
|
504
|
+
// review
|
|
505
505
|
field_review_user: 'Utilisateur',
|
|
506
506
|
field_review_comment: 'Commentaire',
|
|
507
507
|
field_review_score: 'Note',
|
|
508
508
|
field_review_publishedAt: 'Date de publication',
|
|
509
|
-
// return
|
|
509
|
+
// return
|
|
510
510
|
field_return_user: 'Utilisateur',
|
|
511
511
|
field_return_reason: 'Raison',
|
|
512
512
|
field_return_status: 'Statut',
|
|
513
513
|
field_return_amount: 'Montant',
|
|
514
514
|
field_return_currency: 'Monnaie',
|
|
515
515
|
field_return_refundDate: 'Date de remboursement',
|
|
516
|
-
//returnItem
|
|
516
|
+
//returnItem
|
|
517
517
|
field_returnItem_return: 'Retour',
|
|
518
518
|
field_returnItem_product: 'Produit',
|
|
519
519
|
field_returnItem_variant: 'Variante',
|
|
520
520
|
field_returnItem_quantity: 'Quantité',
|
|
521
521
|
field_returnItem_condition: 'État',
|
|
522
|
-
//message
|
|
522
|
+
//message
|
|
523
523
|
field_message_sender: 'Expéditeur',
|
|
524
524
|
field_message_recipient: 'Destinataire',
|
|
525
525
|
field_message_subject: 'Sujet',
|
|
@@ -530,7 +530,7 @@ export const translations = {
|
|
|
530
530
|
field_message_readAt: 'Date de lecture',
|
|
531
531
|
field_message_type: 'Type',
|
|
532
532
|
field_message_priority: 'Priorité',
|
|
533
|
-
//channel
|
|
533
|
+
//channel
|
|
534
534
|
field_channel_name: 'Nom',
|
|
535
535
|
field_channel_description: 'Description',
|
|
536
536
|
field_channel_type: 'Type',
|
|
@@ -907,120 +907,120 @@ export const translations = {
|
|
|
907
907
|
|
|
908
908
|
"field_token_name_hint": "Un nom descriptif pour le jeton afin de l'identifier (ex: Clé API pour App Mobile).",
|
|
909
909
|
"field_token_value_hint": "La valeur unique du jeton d'accès, utilisée pour l'authentification.",
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
910
|
+
"field_token_lastRefresh_hint": "La date de la dernière utilisation ou du dernier rafraîchissement du jeton.",
|
|
911
|
+
|
|
912
|
+
"field_translation_key_hint": "La clé unique de traduction, utilisée dans le code (ex: btns.save, model_product).",
|
|
913
|
+
"field_translation_value_hint": "Le texte traduit correspondant à la clé pour une langue donnée.",
|
|
914
|
+
"field_translation_html_hint": "Le texte traduit au format HTML, si la traduction contient des balises.",
|
|
915
|
+
"field_translation_lang_hint": "La langue (code ISO) à laquelle cette traduction s'applique.",
|
|
916
|
+
|
|
917
|
+
"field_user_username_hint": "Le nom d'utilisateur unique utilisé pour la connexion.",
|
|
918
|
+
"field_user_password_hint": "Le mot de passe de l'utilisateur (sera stocké de manière sécurisée et hachée).",
|
|
919
|
+
"field_user_contact_hint": "La fiche contact associée à cet utilisateur, contenant les informations personnelles.",
|
|
920
|
+
"field_user_roles_hint": "Les rôles assignés à l'utilisateur, qui définissent l'ensemble de ses permissions.",
|
|
921
|
+
"field_user_tokens_hint": "Les jetons d'API personnels de l'utilisateur pour un accès programatique.",
|
|
922
|
+
|
|
923
|
+
"field_userSubscription_user_hint": "L'utilisateur qui a souscrit à l'abonnement.",
|
|
924
|
+
"field_userSubscription_product_hint": "Le produit ou service auquel l'utilisateur est abonné.",
|
|
925
|
+
"field_userSubscription_startDate_hint": "La date à laquelle l'abonnement a commencé.",
|
|
926
|
+
"field_userSubscription_endDate_hint": "La date de fin prévue de l'abonnement (si non renouvelé).",
|
|
927
|
+
"field_userSubscription_status_hint": "Le statut actuel de l'abonnement (ex: Actif, Annulé, Expiré).",
|
|
928
|
+
"field_userSubscription_autoRenew_hint": "Indique si l'abonnement se renouvellera automatiquement à la fin de la période.",
|
|
929
|
+
|
|
930
|
+
"field_warehouse_name_hint": "Le nom de l'entrepôt pour l'identifier (ex: Entrepôt Principal, Dépôt Sud).",
|
|
931
|
+
"field_warehouse_location_hint": "L'adresse physique complète de l'entrepôt.",
|
|
932
|
+
"field_warehouse_capacity_hint": "La capacité de stockage maximale de l'entrepôt (en volume, unités, etc.).",
|
|
933
|
+
|
|
934
|
+
"field_webpage_title_hint": "Le titre de la page, affiché dans l'onglet du navigateur et important pour le SEO.",
|
|
935
|
+
"field_webpage_path_hint": "Le chemin de l'URL de la page après le nom de domaine (ex: /a-propos).",
|
|
936
|
+
"field_webpage_published_hint": "Indique si la page est visible par le public.",
|
|
937
|
+
"field_webpage_inSitemap_hint": "Indique si la page doit être incluse dans le sitemap pour les moteurs de recherche.",
|
|
938
|
+
|
|
939
|
+
"field_workflow_name_hint": "Le nom du workflow pour l'identifier facilement dans la liste.",
|
|
940
|
+
"field_workflow_description_hint": "Une brève explication de l'objectif et du fonctionnement de ce workflow.",
|
|
941
|
+
"field_workflow_trigger_hint": "L'événement qui va démarrer l'exécution de ce workflow.",
|
|
942
|
+
"field_workflow_steps_hint": "La séquence d'étapes et d'actions à exécuter lorsque le workflow est déclenché.",
|
|
943
|
+
"field_workflow_active_hint": "Indique si le workflow est actuellement activé et peut être déclenché.",
|
|
944
|
+
|
|
945
|
+
"field_workflowRun_workflow_hint": "Le workflow parent qui a été exécuté pour cette instance.",
|
|
946
|
+
"field_workflowRun_status_hint": "Le statut de cette exécution spécifique (ex: En cours, Terminé, Échoué).",
|
|
947
|
+
"field_workflowRun_startDate_hint": "La date et l'heure exactes du début de l'exécution.",
|
|
948
|
+
"field_workflowRun_endDate_hint": "La date et l'heure de fin de l'exécution (si terminée ou échouée).",
|
|
949
|
+
"field_workflowRun_logs_hint": "Les journaux détaillés de chaque étape de l'exécution du workflow.",
|
|
950
|
+
|
|
951
|
+
"field_workflowTrigger_name_hint": "Un nom descriptif pour le déclencheur (ex: À la création d'une nouvelle commande).",
|
|
952
|
+
"field_workflowTrigger_type_hint": "Le type d'événement qui déclenche le workflow (ex: Création de donnée, Mise à jour, Tâche planifiée...)",
|
|
953
|
+
"field_workflowTrigger_modelName_hint": "Le nom du modèle de données qui est surveillé par le déclencheur.",
|
|
954
|
+
"field_workflowTrigger_condition_hint": "Une condition supplémentaire sur les données pour que le déclenchement ait lieu.",
|
|
955
|
+
|
|
956
|
+
field_accountingExercise_companyContact_hint: 'Désignation de l\'entreprise',
|
|
957
|
+
field_accountingExercise_companyIdentifier_hint: 'SIRET de l\'entreprise',
|
|
958
|
+
field_accountingExercise_startDate: 'Date de début de l\'exercice',
|
|
959
|
+
field_accountingExercise_endDate: 'Date de clôture de l\'exercice',
|
|
960
|
+
field_accountingLineItem_code_hint: 'Code unique de la ligne (ex: AA, FB, HA)',
|
|
961
|
+
field_accountingLineItem_label_hint: 'Libellé de la ligne (ex: Frais d\'établissement)',
|
|
962
|
+
field_accountingLineItem_section_hint: 'Section principale (ex: ACTIF IMMOBILISÉ)',
|
|
963
|
+
field_accountingLineItem_subSection_hint: 'Sous-section (ex: IMMOBILISATIONS INCORPORELLES)',
|
|
964
|
+
field_accountingLineItem_order_hint: 'Ordre d\'affichage dans la section/sous-section',
|
|
965
|
+
field_accountingLineItem_calculationFormula_hint: 'Formule de calcul (si applicable)',
|
|
966
|
+
field_accountingLineItem_notes_hint: 'Notes ou renvois',
|
|
967
|
+
model_accountingEntry: 'Opération comptable',
|
|
968
|
+
model_description_accountingEntry: 'Entrée d\'une opération comptable au sein d\'un exercice particulier',
|
|
969
|
+
model_employee: 'Employé(e)s',
|
|
970
|
+
model_description_employee: 'Gère les aspects de ressources humaines relativement aux employé(e)s de l\'entreprise.',
|
|
971
|
+
model_accountingLineItem: 'Ligne d\'exercice comptable',
|
|
972
|
+
model_accountingExercise: 'Exercice comptable',
|
|
973
|
+
model_description_accountingLineItem: 'Définit une ligne/catégorie dans un document comptable.',
|
|
974
|
+
model_description_accountingExercise: 'Représente un exercice comptable pour une entreprise donnée.',
|
|
975
|
+
'bilan_actif': 'Bilan actif',
|
|
976
|
+
'bilan_passif': 'Bilan passif',
|
|
977
|
+
'compte_resultat': 'Compte de résultat',
|
|
978
|
+
'immobilisations': 'Immobilisations',
|
|
979
|
+
'amortissements': 'Amortissements',
|
|
980
|
+
'provisions': 'Provisions',
|
|
981
|
+
'creances_dettes': 'Créances et dettes',
|
|
982
|
+
'deficits': 'Déficits',
|
|
983
|
+
'plus_moins_values': 'Plus et moins values',
|
|
984
|
+
'effectifs_valeur_ajoutee': 'Effectifs et valeur ajoutée',
|
|
985
|
+
'capital_social': 'Capital social',
|
|
986
|
+
'filiales_participations': 'Filiales et participations',
|
|
987
|
+
'resultat_fiscal': 'Résultat fiscal',
|
|
988
|
+
|
|
989
|
+
"model_description_translation": "Gérer les traductions des différentes chaînes de caractères. Les champs traduisibles sont indiqués dans l'interface. Indiquez simplement une langue et la clé qui est utilisée pour indexer le contenu traduit. Vous pouvez renommer les le modèle et les champs avec respectivement les clés 'model_$modelName' et 'field_$modelName_$fieldName', ou traduire les descriptions des modèles avec 'model_description_$modelName'.",
|
|
990
|
+
"model_description_permission": "Gérer les permissions des différents utilisateurs. Chaque permission représente une action spécifique (ou un ensemble d'actions) qu'un utilisateur ou un rôle peut effectuer au sein de l'API. Par exemple, 'API_ADMIN' donne tous les droits sur l'API, mais il existe également 'API_ADD_DATA', 'API_ADD_DATA_$modelName', 'API_SEARCH_DATA', 'API_SEARCH_DATA_$modelName', 'API_EDIT_DATA', 'API_EDIT_DATA_$modelName', 'API_DELETE_DATA', et 'API_DELETE_DATA_$modelName' pour gérer finement les droits d'accès à l'API.",
|
|
991
|
+
"model_description_user": "Gérer les utilisateurs. Assignez des rôles et des tokens d'accès à l'API aux utilisateurs de votre application.",
|
|
992
|
+
"model_description_role": "Gérer les différents rôles. Assignez des permissions pour configurer le rôle. Celui-ci pourra ensuite être attribué aux utilisateurs.",
|
|
993
|
+
"model_description_lang": "Gérer les langues du site. Utilisé par les traductions notamment.",
|
|
994
|
+
"model_description_order": "Gérer les commandes.",
|
|
995
|
+
"model_description_webpage": "Gérer les différentes pages web.",
|
|
996
|
+
"model_description_content": "Gérer les différents contenus et actualités.",
|
|
997
|
+
"model_description_token": "Gérer les différents jetons d'accès.",
|
|
998
|
+
"model_description_contact": "Gérer les différents contacts.",
|
|
999
|
+
"model_description_currency": "Gérer les devises utilisables.",
|
|
1000
|
+
"model_description_resource": "Gérer les différents ressources web.",
|
|
1001
|
+
"model_description_product": "Gérer les produits.",
|
|
1002
|
+
"model_description_discount": "Gérer les promotions.",
|
|
1003
|
+
"model_description_productVariant": "Gérer les déclinaisons des produits.",
|
|
1004
|
+
"model_description_cart": "Gérer les paniers des utilisateurs.",
|
|
1005
|
+
"model_description_cartItem": "Gérer le contenu des paniers.",
|
|
1006
|
+
"model_description_brand": "Gérer les marques.",
|
|
1007
|
+
"model_description_taxonomy": "Gérer les catégories (taxonomie).",
|
|
1008
|
+
"model_description_location": "Gérer les différents lieux.",
|
|
1009
|
+
"model_description_device": "Gérer les terminaux d'accès.",
|
|
1010
|
+
"model_description_return": "Gérer les retours produits.",
|
|
1011
|
+
"model_description_review": "Gérer les retours utilisateurs.",
|
|
1012
|
+
"model_description_stock": "Gérer les stocks des produits.",
|
|
1013
|
+
"model_description_warehouse": "Gérer les entrepôts.",
|
|
1014
|
+
"model_description_shipment": "Gérer les expéditions.",
|
|
1015
|
+
"model_description_ticket": "Gérer les tickets de support.",
|
|
1016
|
+
"model_description_ticketMessage": "Gérer les messages des tickets de support.",
|
|
1017
|
+
"model_description_campaign": "Gérer les campagnes marketing.",
|
|
1018
|
+
"model_description_userSubscription": "Gérer les abonnements utilisateurs.",
|
|
1019
|
+
"model_description_invoice": "Gérer les factures.",
|
|
1020
|
+
"model_description_stockAlert": "Gérer les alertes de stocks.",
|
|
1021
|
+
"model_description_returnItem": "Gérer les produits retournés.",
|
|
1022
|
+
"model_description_channel": "Gérer les canaux de notification.",
|
|
1023
|
+
"model_description_message": "Gérer les messages.",
|
|
1024
1024
|
|
|
1025
1025
|
"pending": "En attente",
|
|
1026
1026
|
"approved": "Approuvé",
|
|
@@ -1062,21 +1062,21 @@ export const translations = {
|
|
|
1062
1062
|
"monthly": "Au mois",
|
|
1063
1063
|
"yearly": "A l'année",
|
|
1064
1064
|
|
|
1065
|
-
// user.gender
|
|
1065
|
+
// user.gender
|
|
1066
1066
|
"male": "Homme",
|
|
1067
1067
|
"female": "Femme",
|
|
1068
1068
|
"prefer_not_to_say": "Préfère ne pas répondre",
|
|
1069
1069
|
|
|
1070
|
-
// channel.type
|
|
1070
|
+
// channel.type
|
|
1071
1071
|
"web": "Web",
|
|
1072
1072
|
"mobile": "Mobile",
|
|
1073
1073
|
"sms": "SMS",
|
|
1074
1074
|
"push": "Notification Push",
|
|
1075
1075
|
|
|
1076
|
-
// alert.notificationChannel
|
|
1076
|
+
// alert.notificationChannel
|
|
1077
1077
|
"in_app": "Dans l'application",
|
|
1078
1078
|
|
|
1079
|
-
// taxonomy.type
|
|
1079
|
+
// taxonomy.type
|
|
1080
1080
|
"keyword": "Mot-clé",
|
|
1081
1081
|
"category": "Catégorie",
|
|
1082
1082
|
|
|
@@ -1150,13 +1150,13 @@ export const translations = {
|
|
|
1150
1150
|
"intern": "Stagiaire",
|
|
1151
1151
|
"temporary": "Temporaire",
|
|
1152
1152
|
|
|
1153
|
-
// employee.payFrequency
|
|
1153
|
+
// employee.payFrequency
|
|
1154
1154
|
"bi_weekly": "Bi-hebdomadaire",
|
|
1155
1155
|
|
|
1156
|
-
// workflowTrigger.type
|
|
1156
|
+
// workflowTrigger.type
|
|
1157
1157
|
"manual": "Manuel",
|
|
1158
1158
|
|
|
1159
|
-
// workflowTrigger.onEvent
|
|
1159
|
+
// workflowTrigger.onEvent
|
|
1160
1160
|
"DataAdded": "Donnée ajoutée",
|
|
1161
1161
|
"DataEdited": "Donnée modifiée",
|
|
1162
1162
|
"DataDeleted": "Donnée supprimée",
|
|
@@ -1229,8 +1229,8 @@ export const translations = {
|
|
|
1229
1229
|
"api.permission.importModel": "Impossible d'importer des modèles depuis l'API",
|
|
1230
1230
|
"api.permission.deleteModel": "Impossible de supprimer des modèles depuis l'API",
|
|
1231
1231
|
"api.permission.getModels": "Impossible d'obtenir des modèles depuis l'API",
|
|
1232
|
-
"api.permission.getModel": "Impossible d'obtenir un modèle depuis l'API"
|
|
1233
|
-
}
|
|
1232
|
+
"api.permission.getModel": "Impossible d'obtenir un modèle depuis l'API"
|
|
1233
|
+
}
|
|
1234
1234
|
},
|
|
1235
1235
|
en: {
|
|
1236
1236
|
translation: {
|
|
@@ -1515,7 +1515,7 @@ export const translations = {
|
|
|
1515
1515
|
"model_kpi": 'KPI indicators',
|
|
1516
1516
|
"field_permission_name": 'Name',
|
|
1517
1517
|
"field_permission_description": 'Description',
|
|
1518
|
-
// budget
|
|
1518
|
+
// budget
|
|
1519
1519
|
"field_budget_name": "Title",
|
|
1520
1520
|
"field_budget_amount": "Transaction amount",
|
|
1521
1521
|
"field_budget_currency": "Currency",
|
|
@@ -1538,24 +1538,24 @@ export const translations = {
|
|
|
1538
1538
|
"field_budget_recurringFrequency_hint": "Operation frequency for recurring transactions",
|
|
1539
1539
|
"field_budget_recurringEndDate_hint": "End date of the recurring operation",
|
|
1540
1540
|
"field_budget_attachments_hint": "Attachments (receipts, invoices).",
|
|
1541
|
-
// role
|
|
1541
|
+
// role
|
|
1542
1542
|
"field_role_name": 'Name',
|
|
1543
1543
|
"field_role_permissions": 'Permissions',
|
|
1544
|
-
// translation
|
|
1544
|
+
// translation
|
|
1545
1545
|
"field_translation_key": 'Key',
|
|
1546
1546
|
"field_translation_value": 'Translation',
|
|
1547
1547
|
"field_translation_html": 'HTML Translation',
|
|
1548
1548
|
"field_translation_lang": 'Language',
|
|
1549
|
-
// locale
|
|
1549
|
+
// locale
|
|
1550
1550
|
"field_lang_name": 'Name',
|
|
1551
1551
|
"field_lang_code": 'Code',
|
|
1552
|
-
// currency
|
|
1552
|
+
// currency
|
|
1553
1553
|
"field_currency_symbol": 'Symbol',
|
|
1554
1554
|
"field_currency_code": 'Code',
|
|
1555
1555
|
"field_currency_name": 'Name',
|
|
1556
1556
|
"field_currency_exchangeRate": 'Exchange rate',
|
|
1557
1557
|
"field_currency_default": 'Default',
|
|
1558
|
-
// webpage
|
|
1558
|
+
// webpage
|
|
1559
1559
|
"field_webpage_title": 'Title',
|
|
1560
1560
|
"field_webpage_path": 'Path',
|
|
1561
1561
|
"field_webpage_published": 'Published',
|
|
@@ -1565,7 +1565,7 @@ export const translations = {
|
|
|
1565
1565
|
"field_webpage_keywords": 'Keywords',
|
|
1566
1566
|
"field_webpage_image": 'Image',
|
|
1567
1567
|
"field_webpage_category": 'Category',
|
|
1568
|
-
// content
|
|
1568
|
+
// content
|
|
1569
1569
|
"field_content_webpage": 'Web page',
|
|
1570
1570
|
"field_content_title": 'Title',
|
|
1571
1571
|
"field_content_slug": 'Slug',
|
|
@@ -1576,18 +1576,18 @@ export const translations = {
|
|
|
1576
1576
|
"field_content_keywords": 'Keywords',
|
|
1577
1577
|
"field_content_image": 'Image',
|
|
1578
1578
|
"field_content_author": 'Author',
|
|
1579
|
-
// taxonomy
|
|
1579
|
+
// taxonomy
|
|
1580
1580
|
"field_taxonomy_name": 'Name',
|
|
1581
1581
|
"field_taxonomy_parent": 'Parent',
|
|
1582
1582
|
"field_taxonomy_type": 'Type',
|
|
1583
|
-
// contact
|
|
1583
|
+
// contact
|
|
1584
1584
|
"field_contact_legalName": 'Legal name',
|
|
1585
1585
|
"field_contact_firstName": 'First name',
|
|
1586
1586
|
"field_contact_lastName": 'Last name',
|
|
1587
1587
|
"field_contact_email": 'Email',
|
|
1588
1588
|
"field_contact_phone": 'Phone',
|
|
1589
1589
|
"field_contact_location": 'Location',
|
|
1590
|
-
// location
|
|
1590
|
+
// location
|
|
1591
1591
|
"field_location_address_1": 'Address 1',
|
|
1592
1592
|
"field_location_address_2": 'Address 2',
|
|
1593
1593
|
"field_location_address_3": 'Address 3',
|
|
@@ -1598,31 +1598,31 @@ export const translations = {
|
|
|
1598
1598
|
"field_location_country": 'Country',
|
|
1599
1599
|
"field_location_latitude": 'Latitude',
|
|
1600
1600
|
"field_location_longitude": 'Longitude',
|
|
1601
|
-
// user
|
|
1601
|
+
// user
|
|
1602
1602
|
"field_user_username": 'Username',
|
|
1603
1603
|
"field_user_password": 'Password',
|
|
1604
1604
|
"field_user_contact": 'Contact',
|
|
1605
1605
|
"field_user_roles": 'Roles',
|
|
1606
1606
|
"field_user_tokens": 'Tokens',
|
|
1607
|
-
// token
|
|
1607
|
+
// token
|
|
1608
1608
|
"field_token_name": 'Name',
|
|
1609
1609
|
"field_token_value": 'Value',
|
|
1610
1610
|
"field_token_lastRefresh": 'Last refresh',
|
|
1611
|
-
// brand
|
|
1611
|
+
// brand
|
|
1612
1612
|
"field_brand_name": 'Name',
|
|
1613
1613
|
"field_brand_logo": 'Logo',
|
|
1614
1614
|
"field_brand_company": 'Company',
|
|
1615
|
-
// cart
|
|
1615
|
+
// cart
|
|
1616
1616
|
"field_cart_user": 'User',
|
|
1617
1617
|
"field_cart_items": 'Items',
|
|
1618
1618
|
"field_cart_creationDate": 'Creation date',
|
|
1619
1619
|
"field_cart_lastUpdate": 'Last update',
|
|
1620
1620
|
"field_cart_active": 'Active',
|
|
1621
|
-
// cartItem
|
|
1621
|
+
// cartItem
|
|
1622
1622
|
"field_cartItem_product": 'Product',
|
|
1623
1623
|
"field_cartItem_quantity": 'Quantity',
|
|
1624
1624
|
"field_cartItem_variant": 'Variant',
|
|
1625
|
-
// discount
|
|
1625
|
+
// discount
|
|
1626
1626
|
"field_discount_code": 'Code',
|
|
1627
1627
|
"field_discount_productSelection": 'Product selection',
|
|
1628
1628
|
"field_discount_description": 'Description',
|
|
@@ -1633,7 +1633,7 @@ export const translations = {
|
|
|
1633
1633
|
"field_discount_freeProductQuantity": 'Free product quantity',
|
|
1634
1634
|
"field_discount_startDate": 'Start date',
|
|
1635
1635
|
"field_discount_endDate": 'End date',
|
|
1636
|
-
// order
|
|
1636
|
+
// order
|
|
1637
1637
|
"field_order_orderId": 'Order ID',
|
|
1638
1638
|
"field_order_orderDate": 'Order date',
|
|
1639
1639
|
"field_order_status": 'Status',
|
|
@@ -1647,15 +1647,15 @@ export const translations = {
|
|
|
1647
1647
|
"field_order_shippedDate": 'Shipping date',
|
|
1648
1648
|
"field_order_deliveryDate": 'Delivery date',
|
|
1649
1649
|
"field_order_discount": 'Discount',
|
|
1650
|
-
// invoice
|
|
1650
|
+
// invoice
|
|
1651
1651
|
"field_invoice_order": 'Order',
|
|
1652
1652
|
"field_invoice_invoiceId": 'Invoice ID',
|
|
1653
1653
|
"field_invoice_invoiceDate": 'Invoice date',
|
|
1654
1654
|
"field_invoice_dueDate": 'Due date',
|
|
1655
1655
|
"field_invoice_status": 'Status',
|
|
1656
|
-
// resource
|
|
1656
|
+
// resource
|
|
1657
1657
|
"field_resource_source": 'Source',
|
|
1658
|
-
// product
|
|
1658
|
+
// product
|
|
1659
1659
|
"field_product_name": 'Name',
|
|
1660
1660
|
"field_product_description": 'Description',
|
|
1661
1661
|
"field_product_image": 'Image',
|
|
@@ -1664,7 +1664,7 @@ export const translations = {
|
|
|
1664
1664
|
"field_product_billingFrequency": 'Billing frequency',
|
|
1665
1665
|
"field_product_brand": 'Brand',
|
|
1666
1666
|
"field_product_category": 'Category',
|
|
1667
|
-
// productVariant
|
|
1667
|
+
// productVariant
|
|
1668
1668
|
"field_productVariant_product": 'Product',
|
|
1669
1669
|
"field_productVariant_size": 'Size',
|
|
1670
1670
|
"field_productVariant_color": 'Color',
|
|
@@ -1673,28 +1673,28 @@ export const translations = {
|
|
|
1673
1673
|
"field_productVariant_currency": 'Currency',
|
|
1674
1674
|
"field_productVariant_stock": 'Stock',
|
|
1675
1675
|
"field_productVariant_image": 'Image',
|
|
1676
|
-
// stock
|
|
1676
|
+
// stock
|
|
1677
1677
|
"field_stock_product": 'Product',
|
|
1678
1678
|
"field_stock_variant": 'Variant',
|
|
1679
1679
|
"field_stock_warehouse": 'Warehouse',
|
|
1680
1680
|
"field_stock_available": 'Available',
|
|
1681
1681
|
"field_stock_reserved": 'Reserved',
|
|
1682
|
-
// stockAlert
|
|
1682
|
+
// stockAlert
|
|
1683
1683
|
"field_stockAlert_user": 'User',
|
|
1684
1684
|
"field_stockAlert_stock": 'Stock',
|
|
1685
1685
|
"field_stockAlert_threshold": 'Threshold',
|
|
1686
|
-
// warehouse
|
|
1686
|
+
// warehouse
|
|
1687
1687
|
"field_warehouse_name": 'Name',
|
|
1688
1688
|
"field_warehouse_location": 'Location',
|
|
1689
1689
|
"field_warehouse_capacity": 'Capacity',
|
|
1690
|
-
// shipment
|
|
1690
|
+
// shipment
|
|
1691
1691
|
"field_shipment_order": 'Order',
|
|
1692
1692
|
"field_shipment_trackingNumber": 'Tracking number',
|
|
1693
1693
|
"field_shipment_carrier": 'Carrier',
|
|
1694
1694
|
"field_shipment_status": 'Status',
|
|
1695
1695
|
"field_shipment_estimatedDeliveryDate": 'Estimated delivery date',
|
|
1696
1696
|
"field_shipment_actualDeliveryDate": 'Actual delivery date',
|
|
1697
|
-
// userSubscription
|
|
1697
|
+
// userSubscription
|
|
1698
1698
|
"field_userSubscription_user": 'User',
|
|
1699
1699
|
"field_userSubscription_product": 'Product',
|
|
1700
1700
|
"field_userSubscription_startDate": 'Start date',
|
|
@@ -1708,7 +1708,7 @@ export const translations = {
|
|
|
1708
1708
|
"field_userSubscription_lastBillingDate": 'Last billing date',
|
|
1709
1709
|
"field_userSubscription_cancelReason": 'Cancellation reason',
|
|
1710
1710
|
"field_userSubscription_autoRenew": 'Auto renew',
|
|
1711
|
-
// ticket
|
|
1711
|
+
// ticket
|
|
1712
1712
|
"field_ticket_user": 'User',
|
|
1713
1713
|
"field_ticket_order": 'Order',
|
|
1714
1714
|
"field_ticket_channel": 'Channel',
|
|
@@ -1718,7 +1718,7 @@ export const translations = {
|
|
|
1718
1718
|
"field_ticket_priority": 'Priority',
|
|
1719
1719
|
"field_ticket_assignedTo": 'Assigned to',
|
|
1720
1720
|
"field_ticket_createdAt": 'Creation date',
|
|
1721
|
-
// campaign
|
|
1721
|
+
// campaign
|
|
1722
1722
|
"field_campaign_name": 'Name',
|
|
1723
1723
|
"field_campaign_description": 'Description',
|
|
1724
1724
|
"field_campaign_startDate": 'Start date',
|
|
@@ -1726,28 +1726,28 @@ export const translations = {
|
|
|
1726
1726
|
"field_campaign_type": 'Type',
|
|
1727
1727
|
"field_campaign_status": 'Status',
|
|
1728
1728
|
"field_campaign_budget": 'Budget',
|
|
1729
|
-
// device
|
|
1729
|
+
// device
|
|
1730
1730
|
"field_device_location": 'Location',
|
|
1731
1731
|
"field_device_lastLocationUpdate": 'Last location update',
|
|
1732
|
-
// review
|
|
1732
|
+
// review
|
|
1733
1733
|
"field_review_user": 'User',
|
|
1734
1734
|
"field_review_comment": 'Comment',
|
|
1735
1735
|
"field_review_score": 'Score',
|
|
1736
1736
|
"field_review_publishedAt": 'Publication date',
|
|
1737
|
-
// return
|
|
1737
|
+
// return
|
|
1738
1738
|
"field_return_user": 'User',
|
|
1739
1739
|
"field_return_reason": 'Reason',
|
|
1740
1740
|
"field_return_status": 'Status',
|
|
1741
1741
|
"field_return_amount": 'Amount',
|
|
1742
1742
|
"field_return_currency": 'Currency',
|
|
1743
1743
|
"field_return_refundDate": 'Refund date',
|
|
1744
|
-
//returnItem
|
|
1744
|
+
//returnItem
|
|
1745
1745
|
"field_returnItem_return": 'Return',
|
|
1746
1746
|
"field_returnItem_product": 'Product',
|
|
1747
1747
|
"field_returnItem_variant": 'Variant',
|
|
1748
1748
|
"field_returnItem_quantity": 'Quantity',
|
|
1749
1749
|
"field_returnItem_condition": 'Condition',
|
|
1750
|
-
//message
|
|
1750
|
+
//message
|
|
1751
1751
|
"field_message_sender": 'Sender',
|
|
1752
1752
|
"field_message_recipient": 'Recipient',
|
|
1753
1753
|
"field_message_subject": 'Subject',
|
|
@@ -1758,7 +1758,7 @@ export const translations = {
|
|
|
1758
1758
|
"field_message_readAt": 'Read at',
|
|
1759
1759
|
"field_message_type": 'Type',
|
|
1760
1760
|
"field_message_priority": 'Priority',
|
|
1761
|
-
//channel
|
|
1761
|
+
//channel
|
|
1762
1762
|
"field_channel_name": 'Name',
|
|
1763
1763
|
"field_channel_description": 'Description',
|
|
1764
1764
|
"field_channel_type": 'Type',
|
|
@@ -2457,8 +2457,8 @@ export const translations = {
|
|
|
2457
2457
|
"api.permission.importModel": "Cannot import models from the API",
|
|
2458
2458
|
"api.permission.deleteModel": "Cannot delete models from the API",
|
|
2459
2459
|
"api.permission.getModels": "Cannot get models from the API",
|
|
2460
|
-
"api.permission.getModel": "Cannot get a model from the API"
|
|
2461
|
-
}
|
|
2460
|
+
"api.permission.getModel": "Cannot get a model from the API"
|
|
2461
|
+
}
|
|
2462
2462
|
},
|
|
2463
2463
|
es: {
|
|
2464
2464
|
translation: {
|
|
@@ -3640,13 +3640,13 @@ export const translations = {
|
|
|
3640
3640
|
"contractor": "Contratista",
|
|
3641
3641
|
"intern": "Becario",
|
|
3642
3642
|
"temporary": "Temporal",
|
|
3643
|
-
// employee.payFrequency
|
|
3643
|
+
// employee.payFrequency
|
|
3644
3644
|
"bi_weekly": "Quincenal",
|
|
3645
3645
|
|
|
3646
|
-
// workflowTrigger.type
|
|
3646
|
+
// workflowTrigger.type
|
|
3647
3647
|
"manual": "Manual",
|
|
3648
3648
|
|
|
3649
|
-
// workflowTrigger.onEvent
|
|
3649
|
+
// workflowTrigger.onEvent
|
|
3650
3650
|
"DataAdded": "Dato añadido",
|
|
3651
3651
|
"DataEdited": "Dato modificado",
|
|
3652
3652
|
"DataDeleted": "Dato eliminado",
|
|
@@ -12327,44 +12327,45 @@ export const translations = {
|
|
|
12327
12327
|
}
|
|
12328
12328
|
};
|
|
12329
12329
|
const options = {
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12335
|
-
|
|
12336
|
-
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12330
|
+
// order and from where user language should be detected
|
|
12331
|
+
order: [
|
|
12332
|
+
"querystring",
|
|
12333
|
+
"cookie",
|
|
12334
|
+
"localStorage",
|
|
12335
|
+
"sessionStorage",
|
|
12336
|
+
"navigator",
|
|
12337
|
+
"htmlTag",
|
|
12338
|
+
"path",
|
|
12339
|
+
"subdomain"
|
|
12340
|
+
],
|
|
12341
|
+
|
|
12342
|
+
// keys or params to lookup language from
|
|
12343
|
+
lookupQuerystring: "lang"
|
|
12344
12344
|
};
|
|
12345
12345
|
|
|
12346
12346
|
i18n
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
|
|
12347
|
+
// detect user language
|
|
12348
|
+
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
|
12349
|
+
.use(LanguageDetector)
|
|
12350
|
+
// pass the i18n instance to react-i18next.
|
|
12351
|
+
.use(initReactI18next)
|
|
12352
|
+
// init i18next
|
|
12353
|
+
// for all options read: https://www.i18next.com/overview/configuration-options
|
|
12354
|
+
.init({
|
|
12355
|
+
debug: false,
|
|
12356
|
+
detection: options,
|
|
12357
|
+
|
|
12358
|
+
fallbackLng: "fr",
|
|
12359
|
+
keySeparator: false,
|
|
12360
|
+
interpolation: {
|
|
12361
|
+
escapeValue: false // not needed for react as it escapes by default
|
|
12362
|
+
},
|
|
12363
|
+
resources: translations,
|
|
12364
|
+
react: {
|
|
12365
|
+
bindI18n: 'loaded languageChanged',
|
|
12366
|
+
bindI18nStore: 'added',
|
|
12367
|
+
useSuspense: true
|
|
12368
|
+
}
|
|
12369
|
+
});
|
|
12369
12370
|
|
|
12370
12371
|
export default i18n;
|