@bigbinary/neeto-approvals-frontend 0.2.5 → 0.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-approvals-frontend",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "To manage approvals across neeto products.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-approvals-frontend#readme",
@@ -11,7 +11,8 @@
11
11
  "author": "BigBinary",
12
12
  "files": [
13
13
  "dist",
14
- "types.d.ts"
14
+ "types.d.ts",
15
+ "src/translations"
15
16
  ],
16
17
  "main": "dist/index.cjs.js",
17
18
  "module": "dist/index.js",
@@ -40,12 +41,13 @@
40
41
  "@bigbinary/babel-preset-neeto": "^1.0.3",
41
42
  "@bigbinary/eslint-plugin-neeto": "^1.1.14",
42
43
  "@bigbinary/neeto-audit-frontend": "1.0.7",
43
- "@bigbinary/neeto-commons-frontend": "2.0.127",
44
+ "@bigbinary/neeto-cist": "^1.0.2",
45
+ "@bigbinary/neeto-commons-frontend": "^2.1.29",
44
46
  "@bigbinary/neeto-editor": "^1.28.8",
45
47
  "@bigbinary/neeto-filters-frontend": "2.12.9",
46
48
  "@bigbinary/neeto-icons": "1.17.2",
47
49
  "@bigbinary/neeto-molecules": "1.0.87-beta",
48
- "@bigbinary/neetoui": "4.4.0",
50
+ "@bigbinary/neetoui": "5.2.7",
49
51
  "@emotion/is-prop-valid": "^1.2.0",
50
52
  "@faker-js/faker": "7.6.0",
51
53
  "@honeybadger-io/react": "^2.0.1",
@@ -65,6 +67,7 @@
65
67
  "babel-plugin-istanbul": "^6.1.1",
66
68
  "babel-plugin-js-logger": "1.0.17",
67
69
  "babel-plugin-macros": "3.1.0",
70
+ "babel-plugin-preval": "^5.1.0",
68
71
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
69
72
  "babel-preset-react": "6.24.1",
70
73
  "babel-preset-typescript": "^7.0.0-alpha.19",
@@ -126,6 +129,7 @@
126
129
  "url": "^0.11.0",
127
130
  "util": "^0.12.5",
128
131
  "vite": "4.0.5",
132
+ "vite-plugin-babel": "^1.1.3",
129
133
  "webpack": "5.74.0",
130
134
  "webpack-cli": "4.10.0",
131
135
  "webpack-dev-server": "4.11.1",
@@ -143,10 +147,12 @@
143
147
  "classnames": "2.3.1",
144
148
  "dayjs": "1.11.1",
145
149
  "formik": "2.2.9",
150
+ "i18next": "22.5.1",
146
151
  "ramda": "0.29.0",
147
152
  "react": "17.0.2",
148
153
  "react-dom": "17.0.2",
149
154
  "react-helmet": "6.1.0",
155
+ "react-i18next": "11.16.8",
150
156
  "react-query": "3.39.2",
151
157
  "react-router-dom": "5.3.1",
152
158
  "react-toastify": "8.2.0",
@@ -0,0 +1,101 @@
1
+ {
2
+ "neetoApprovals": {
3
+ "alerts": {
4
+ "deleting_": "You are permanently deleting the {{what}} <strong>{{- name}}</strong>. This can't be undone."
5
+ },
6
+ "buttons": {
7
+ "cancel": "Cancel",
8
+ "saveChanges": "Save changes",
9
+ "approve": "Approve",
10
+ "decline": "Decline",
11
+ "delete": "Delete"
12
+ },
13
+ "common": {
14
+ "approval_one": "Approval",
15
+ "approval_other": "Approvals",
16
+ "pending": "Pending",
17
+ "template_one": "Template",
18
+ "template_other": "Templates",
19
+ "approvalTemplate_one": "Approval template",
20
+ "approvalTemplate_other": "Approval templates",
21
+ "history": "History",
22
+ "approvalHistory": "Approval history",
23
+ "approver_one": "Approver",
24
+ "approver_other": "Approvers",
25
+ "email": "Email",
26
+ "edit": "Edit",
27
+ "delete": "Delete",
28
+ "delete_": "Delete {{what}}?",
29
+ "add_": "Add {{what}}",
30
+ "edit_": "Edit {{what}}",
31
+ "name": "Name",
32
+ "notFound_": "There are no {{what}} to show",
33
+ "notFound": "Could not find the approval request.",
34
+ "visibility": "Visibility",
35
+ "variable": "Variable",
36
+ "variable_": "Variable {{number}}",
37
+ "pendingApproval_one": "Pending approval",
38
+ "pendingApproval_other": "Pending approvals",
39
+ "title": "Title",
40
+ "id": "Id",
41
+ "created": "Created",
42
+ "status": "Status",
43
+ "record_one": "Record",
44
+ "record_other": "Records",
45
+ "note": "Note",
46
+ "approvedBy": "Approved by",
47
+ "rejectedBy": "Rejected by",
48
+ "cancelledBy": "Cancelled by",
49
+ "waitingFor": "Waiting for",
50
+ "templateDetails": "Template details",
51
+ "field": "Field",
52
+ "noDataHelpText": "Here is how you can use <a>{{entity}}.</a>"
53
+ },
54
+ "validations": {
55
+ "limitExceeded": "You have exceeded the limit of {{limit}} characters for the {{what}}.",
56
+ "approver": "Please select a approver",
57
+ "required": "{{what}} is required",
58
+ "variableName": "Name must be alphanumeric, may include underscore, must start with a letter and must not end with an underscore.",
59
+ "pleaseEnter_": "Please enter {{what}}"
60
+ },
61
+ "sidebar": {
62
+ "description": "View and manage approvals."
63
+ },
64
+ "inputs": {
65
+ "labels": {
66
+ "firstName": "First name",
67
+ "lastName": "Last name",
68
+ "description": "Description",
69
+ "approver": "Approver",
70
+ "variableMapping": "Variable mapping",
71
+ "message": "Message"
72
+ },
73
+ "placeholders": {
74
+ "firstName": "Enter first name",
75
+ "lastName": "Enter last name",
76
+ "email": "Enter email",
77
+ "name": "Enter name",
78
+ "description": "Enter description",
79
+ "enter_": "Enter {{what}}",
80
+ "search_": "Search {{what}}",
81
+ "select_": "Select {{what}}",
82
+ "add_": "Add {{what}}"
83
+ }
84
+ },
85
+ "typography": {
86
+ "newApprover": "Add new approver",
87
+ "editApprover": "Edit approver",
88
+ "approvalRequest": "Approval request has been <strong>{{status}}</strong>."
89
+ },
90
+ "select": {
91
+ "visibility": {
92
+ "everyone": "Everyone"
93
+ },
94
+ "approval": "Select approval"
95
+ },
96
+ "example": {
97
+ "settings": "Settings",
98
+ "general": "General"
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,89 @@
1
+ {
2
+ "neetoApprovals": {
3
+ "alerts": {
4
+ "activating_": "Vous activez <strong>{{- person}}</strong>. Es-tu sur de vouloir continuer?",
5
+ "deactivating_": "Vous désactivez <strong>{{- person}}</strong>. Es-tu sur de vouloir continuer?",
6
+ "deleting_": "Vous supprimez définitivement le {{what}} <strong>{{- name}}</strong>. Cette action ne peut pas être annulée. Êtes-vous sur de vouloir continuer?"
7
+ },
8
+ "buttons": {
9
+ "cancel": "Annuler",
10
+ "changeRole": "Changer de rôle",
11
+ "proceed": "Procéder",
12
+ "saveChanges": "Sauvegarder les modifications"
13
+ },
14
+ "columns": {
15
+ "search": "Colonnes de recherche",
16
+ "noColumnsFound": "Aucune colonne trouvée."
17
+ },
18
+ "common": {
19
+ "activate": "Activer",
20
+ "activate_": "Activer le {{what}}",
21
+ "active": "Actif",
22
+ "active_": "{{what}} actifs",
23
+ "add_": "Ajouter {{what}}",
24
+ "all": "Tous",
25
+ "all_": "tous les {{what}}",
26
+ "column_one": "Colonne",
27
+ "column_other": "Colonnes",
28
+ "deactivate": "Désactiver",
29
+ "deactivate_": "Désactiver le {{what}}",
30
+ "deactivated": "Désactivé",
31
+ "deactivated_": "{{what}} désactivés",
32
+ "delete": "Effacer",
33
+ "delete_": "Supprimer le {{what}}",
34
+ "description": "La description",
35
+ "edit": "Éditer",
36
+ "edit_": "Modifier le {{what}}",
37
+ "email_one": "E-mail",
38
+ "email_other": "E-mails",
39
+ "manage_": "Gérer {{what}}",
40
+ "name": "Nom",
41
+ "notFound_": "Désolé, aucun {{what}} n'a été trouvé.",
42
+ "permission_one": "Autorisation",
43
+ "permission_other": "Autorisations",
44
+ "role_one": "Rôle",
45
+ "role_other": "Rôles",
46
+ "search_": "Rechercher des {{what}}",
47
+ "update_": "Mettre à jour le {{what}}",
48
+ "takeAction": "Passer à l'action"
49
+ },
50
+ "helpers": {
51
+ "configPermissions": "Configurez les autorisations pour les modules.",
52
+ "enterMultipleEmails": "Veuillez appuyer sur espace, tabulation ou entrée après avoir saisi une adresse e-mail.",
53
+ "moreInfoAboutPermissions": "Plus d'informations sur les autorisations",
54
+ "noRolesFound": "Aucun rôle trouvé.",
55
+ "searchRoles": "Rechercher des rôles",
56
+ "selectedMembersCount_one": "{{count}} {{metaName}} sélectionné sur",
57
+ "selectedMembersCount_other": "{{count}} {{metaName}} sélectionnés sur",
58
+ "visitToKnowMoreAboutPermissions": "Visitez pour en savoir plus sur les autorisations"
59
+ },
60
+ "metaNames": {
61
+ "member_one": "Membre",
62
+ "member_other": "Membres"
63
+ },
64
+ "placeholders": {
65
+ "email": "Veuillez saisir les adresses e-mail",
66
+ "enter_": "Veuillez entrer le {{what}}",
67
+ "enterDescription": "Veuillez entrer une description",
68
+ "enterRoleName": "Veuillez entrer le nom du rôle",
69
+ "role": "Veuillez sélectionner un rôle"
70
+ },
71
+ "tooltips": {
72
+ "activateUserToEdit": "Veuillez activer l'utilisateur pour modifier son rôle.",
73
+ "adminMustHaveAccess": "Les administrateurs doivent avoir accès à cette fonctionnalité.",
74
+ "noPermissionToAddMember": "Veuillez demander à l'administrateur de vous autoriser à ajouter des membres.",
75
+ "noPermissionToAddRole": "Veuillez demander à l'administrateur de vous autoriser à ajouter des rôles.",
76
+ "noPermissionToEditMembers": "Veuillez demander à l'administrateur de vous autoriser à modifier les membres.",
77
+ "noPermissionToEditRoles": "Veuillez demander à l'administrateur de vous autoriser à modifier les rôles.",
78
+ "noPermissionToRemoveRoles": "Veuillez demander à l'administrateur de vous autoriser à supprimer des rôles."
79
+ },
80
+ "validations": {
81
+ "enterRoleName": "Veuillez entrer le nom du rôle",
82
+ "filterInvalidEmails": "Cliquez ici pour supprimer les e-mails invalides.",
83
+ "limitExceeded": "Vous avez dépassé la limite de {{limit}} caractères pour le {{what}}.",
84
+ "minOneEmail": "Veuillez saisir au moins une adresse e-mail.",
85
+ "roleRequired": "Veuillez sélectionner un rôle.",
86
+ "validEmail": "Veuillez vous assurer que toutes les adresses e-mail sont valides."
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,4 @@
1
+ import en from "./en.json";
2
+ import fr from "./fr.json";
3
+
4
+ export { en, fr };