@panneau/intl 1.0.0-alpha.97 → 1.0.3-alpha.1

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/locale/fr.json CHANGED
@@ -5,14 +5,22 @@
5
5
  "value": "Erreur 403"
6
6
  }
7
7
  ],
8
- "2/F1Q7": [
8
+ "12Px0g": [
9
9
  {
10
10
  "type": 0,
11
- "value": "#"
12
- },
11
+ "value": "Envoyer le lien de réinitialisation du mot de passe"
12
+ }
13
+ ],
14
+ "22Ld5M": [
13
15
  {
14
- "type": 1,
15
- "value": "index"
16
+ "type": 0,
17
+ "value": "Entrez le code de votre application d'authentification pour continuer"
18
+ }
19
+ ],
20
+ "2vB7U4": [
21
+ {
22
+ "type": 0,
23
+ "value": "Une erreur s’est produite et nous n’avons pas pu enregistrer cet élément avec succès."
16
24
  }
17
25
  ],
18
26
  "3na7F8": [
@@ -67,6 +75,12 @@
67
75
  "value": "Mot de passe"
68
76
  }
69
77
  ],
78
+ "5nHK/H": [
79
+ {
80
+ "type": 0,
81
+ "value": "Voulez-vous vraiment désactiver l'authentification à deux facteurs ?"
82
+ }
83
+ ],
70
84
  "5rMPIj": [
71
85
  {
72
86
  "type": 0,
@@ -85,6 +99,22 @@
85
99
  "value": "Erreur 401"
86
100
  }
87
101
  ],
102
+ "6viUpq": [
103
+ {
104
+ "type": 0,
105
+ "value": "Créer "
106
+ },
107
+ {
108
+ "type": 1,
109
+ "value": "a_singular"
110
+ }
111
+ ],
112
+ "7M0o0q": [
113
+ {
114
+ "type": 0,
115
+ "value": "Élément"
116
+ }
117
+ ],
88
118
  "82P2dS": [
89
119
  {
90
120
  "type": 0,
@@ -97,6 +127,12 @@
97
127
  "value": "L’accès à cette page est interdit"
98
128
  }
99
129
  ],
130
+ "8LSb8C": [
131
+ {
132
+ "type": 0,
133
+ "value": "Mot de passe actuel"
134
+ }
135
+ ],
100
136
  "9XBwF1": [
101
137
  {
102
138
  "type": 0,
@@ -109,12 +145,24 @@
109
145
  "value": "Connexion"
110
146
  }
111
147
  ],
148
+ "B1h3gd": [
149
+ {
150
+ "type": 0,
151
+ "value": "Entrez votre mot de passe pour continuer"
152
+ }
153
+ ],
112
154
  "Bhu3B2": [
113
155
  {
114
156
  "type": 0,
115
157
  "value": "Supprimer"
116
158
  }
117
159
  ],
160
+ "DUbv+u": [
161
+ {
162
+ "type": 0,
163
+ "value": "Confirmez votre mot de passe"
164
+ }
165
+ ],
118
166
  "ESkxLX": [
119
167
  {
120
168
  "type": 0,
@@ -127,16 +175,20 @@
127
175
  "value": "Précédent"
128
176
  }
129
177
  ],
130
- "HOobY2": [
178
+ "FntHPK": [
131
179
  {
132
180
  "type": 0,
133
- "value": "Erreur 401"
181
+ "value": "Voir "
182
+ },
183
+ {
184
+ "type": 1,
185
+ "value": "the_plural"
134
186
  }
135
187
  ],
136
- "IbZVf0": [
188
+ "HOobY2": [
137
189
  {
138
190
  "type": 0,
139
- "value": "Sauvegarder"
191
+ "value": "Erreur 401"
140
192
  }
141
193
  ],
142
194
  "IuqEHB": [
@@ -175,10 +227,10 @@
175
227
  "value": "Ajouter un fichier"
176
228
  }
177
229
  ],
178
- "PKCv5M": [
230
+ "PQX/ph": [
179
231
  {
180
232
  "type": 0,
181
- "value": "Aucun item..."
233
+ "value": "Créer mon compte"
182
234
  }
183
235
  ],
184
236
  "Pih2UO": [
@@ -193,22 +245,58 @@
193
245
  "value": "Annuler"
194
246
  }
195
247
  ],
248
+ "QUAHwy": [
249
+ {
250
+ "type": 0,
251
+ "value": "Continuer"
252
+ }
253
+ ],
254
+ "R1HYj0": [
255
+ {
256
+ "type": 0,
257
+ "value": "Sauvegarder"
258
+ }
259
+ ],
196
260
  "REIcPg": [
197
261
  {
198
262
  "type": 0,
199
263
  "value": "Déconnexion"
200
264
  }
201
265
  ],
266
+ "U/ye2x": [
267
+ {
268
+ "type": 0,
269
+ "value": "Annuler"
270
+ }
271
+ ],
202
272
  "US/AMe": [
203
273
  {
204
274
  "type": 0,
205
275
  "value": "Erreur 404"
206
276
  }
207
277
  ],
278
+ "UUv8FR": [
279
+ {
280
+ "type": 0,
281
+ "value": "Nom"
282
+ }
283
+ ],
284
+ "UbmsLL": [
285
+ {
286
+ "type": 0,
287
+ "value": "Aucun élément trouvé."
288
+ }
289
+ ],
208
290
  "UpStcP": [
209
291
  {
210
292
  "type": 0,
211
- "value": "Nous n'avons pas pu trouver ce type"
293
+ "value": "Nous n'avons pas pu trouver ce type d'élément"
294
+ }
295
+ ],
296
+ "VhJUeW": [
297
+ {
298
+ "type": 0,
299
+ "value": "Confirmez votre mot de passe"
212
300
  }
213
301
  ],
214
302
  "X5RJlB": [
@@ -217,6 +305,24 @@
217
305
  "value": "Suivant"
218
306
  }
219
307
  ],
308
+ "XJ1dc3": [
309
+ {
310
+ "type": 0,
311
+ "value": "Nouveau mot de passe"
312
+ }
313
+ ],
314
+ "XW9IKQ": [
315
+ {
316
+ "type": 0,
317
+ "value": "Mettre à jour votre mot de passe"
318
+ }
319
+ ],
320
+ "ZBNqY2": [
321
+ {
322
+ "type": 0,
323
+ "value": "Mot de passe oublié ?"
324
+ }
325
+ ],
220
326
  "ZxgNge": [
221
327
  {
222
328
  "type": 0,
@@ -229,12 +335,32 @@
229
335
  "value": "Afficher"
230
336
  }
231
337
  ],
338
+ "bfP/d8": [
339
+ {
340
+ "type": 1,
341
+ "value": "The_singular"
342
+ },
343
+ {
344
+ "type": 0,
345
+ "value": " a été créé."
346
+ }
347
+ ],
232
348
  "d0g58T": [
233
349
  {
234
350
  "type": 0,
235
351
  "value": "Connexion"
236
352
  }
237
353
  ],
354
+ "dkRdks": [
355
+ {
356
+ "type": 1,
357
+ "value": "The_singular"
358
+ },
359
+ {
360
+ "type": 0,
361
+ "value": " a été supprimé."
362
+ }
363
+ ],
238
364
  "ejwBSw": [
239
365
  {
240
366
  "type": 0,
@@ -247,10 +373,10 @@
247
373
  "value": "Connexion"
248
374
  }
249
375
  ],
250
- "gjBiyj": [
376
+ "gWmL5V": [
251
377
  {
252
378
  "type": 0,
253
- "value": "Chargement..."
379
+ "value": "Désactiver l'authentification à deux facteurs"
254
380
  }
255
381
  ],
256
382
  "hezcGl": [
@@ -259,138 +385,140 @@
259
385
  "value": "Aller à la page d’accueil"
260
386
  }
261
387
  ],
262
- "owrRHV": [
388
+ "iFsDVR": [
263
389
  {
264
390
  "type": 0,
265
- "value": "Erreur 500"
391
+ "value": "Chargement"
266
392
  }
267
393
  ],
268
- "q6bmY1": [
394
+ "l+ddDH": [
269
395
  {
270
396
  "type": 0,
271
- "value": "Réinitialiser"
397
+ "value": "Créer "
398
+ },
399
+ {
400
+ "type": 1,
401
+ "value": "a_singular"
272
402
  }
273
403
  ],
274
- "rSt+KL": [
404
+ "li2Qqu": [
275
405
  {
276
406
  "type": 0,
277
- "value": "Non"
407
+ "value": "Passer l'étape"
278
408
  }
279
409
  ],
280
- "resources.confirm_delete": [
410
+ "mCfzkJ": [
281
411
  {
282
412
  "type": 0,
283
- "value": "Êtes-vous certain de vouloir supprimer "
413
+ "value": "Modifier "
284
414
  },
285
415
  {
286
416
  "type": 1,
287
- "value": "the_singular"
288
- },
417
+ "value": "a_singular"
418
+ }
419
+ ],
420
+ "owrRHV": [
289
421
  {
290
422
  "type": 0,
291
- "value": " #"
292
- },
293
- {
294
- "type": 1,
295
- "value": "id"
296
- },
423
+ "value": "Erreur 500"
424
+ }
425
+ ],
426
+ "pVHYDd": [
297
427
  {
298
428
  "type": 0,
299
- "value": "?"
429
+ "value": "Activer l'authentification à deux facteurs"
300
430
  }
301
431
  ],
302
- "resources.create": [
432
+ "rSt+KL": [
303
433
  {
304
434
  "type": 0,
305
- "value": "Créer "
306
- },
307
- {
308
- "type": 1,
309
- "value": "a_singular"
435
+ "value": "Non"
310
436
  }
311
437
  ],
312
- "resources.create_btn": [
438
+ "s4Xrs9": [
313
439
  {
314
440
  "type": 0,
315
- "value": "Créer "
316
- },
317
- {
318
- "type": 1,
319
- "value": "a_singular"
441
+ "value": "Heure"
320
442
  }
321
443
  ],
322
- "resources.created": [
444
+ "tPeIKO": [
323
445
  {
324
- "type": 1,
325
- "value": "the_singular"
326
- },
446
+ "type": 0,
447
+ "value": "Retour à la connexion"
448
+ }
449
+ ],
450
+ "v4Qtl9": [
327
451
  {
328
452
  "type": 0,
329
- "value": " a été créé."
453
+ "value": "Aujourd'hui"
330
454
  }
331
455
  ],
332
- "resources.delete": [
456
+ "wKPI1y": [
333
457
  {
334
458
  "type": 0,
335
- "value": "Supprimer "
336
- },
459
+ "value": "Cette page n’existe pas"
460
+ }
461
+ ],
462
+ "wa783M": [
337
463
  {
338
- "type": 1,
339
- "value": "a_singular"
464
+ "type": 0,
465
+ "value": "Vous avez un compte? Connectez-vous ici"
340
466
  }
341
467
  ],
342
- "resources.deleted": [
468
+ "y9zauY": [
343
469
  {
344
- "type": 1,
345
- "value": "the_singular"
346
- },
470
+ "type": 0,
471
+ "value": "Une erreur s’est produite et nous n’avons pas pu supprimer cet élément avec succès."
472
+ }
473
+ ],
474
+ "yALN2p": [
347
475
  {
348
476
  "type": 0,
349
- "value": " a été supprimé."
477
+ "value": "Il y a eu une erreur"
350
478
  }
351
479
  ],
352
- "resources.edit": [
480
+ "yzfiXJ": [
353
481
  {
354
482
  "type": 0,
355
- "value": "Modifier "
483
+ "value": "Êtes-vous certain de vouloir supprimer "
356
484
  },
357
485
  {
358
486
  "type": 1,
359
- "value": "a_singular"
360
- }
361
- ],
362
- "resources.view": [
487
+ "value": "the_singular"
488
+ },
363
489
  {
364
490
  "type": 0,
365
- "value": "Afficher "
491
+ "value": " #"
366
492
  },
367
493
  {
368
494
  "type": 1,
369
- "value": "the_plural"
370
- }
371
- ],
372
- "s4Xrs9": [
495
+ "value": "id"
496
+ },
373
497
  {
374
498
  "type": 0,
375
- "value": "Heure"
499
+ "value": "?"
376
500
  }
377
501
  ],
378
- "v4Qtl9": [
502
+ "zN5N/Q": [
379
503
  {
380
504
  "type": 0,
381
- "value": "Autjourd'hui"
505
+ "value": "Supprimer "
506
+ },
507
+ {
508
+ "type": 1,
509
+ "value": "a_singular"
382
510
  }
383
511
  ],
384
- "wKPI1y": [
512
+ "zTiC4D": [
385
513
  {
386
514
  "type": 0,
387
- "value": "Cette page n’existe pas"
515
+ "value": "Voulez-vous activer l'authentification à deux facteurs ? Vous devrez utiliser une application de connexion telle que Google Authenticator ou Microsoft Authenticator en plus de votre mot de passe pour vous connecter."
388
516
  }
389
517
  ],
390
- "yALN2p": [
518
+ "zwks3g": [
391
519
  {
392
520
  "type": 0,
393
- "value": "Il y a eu une erreur"
521
+ "value": "Sauvegarder le nouveau mot de passe"
394
522
  }
395
523
  ]
396
524
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/intl",
3
- "version": "1.0.0-alpha.97",
3
+ "version": "1.0.3-alpha.1",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -37,6 +37,7 @@
37
37
  "module": "es/index.js",
38
38
  "exports": {
39
39
  ".": "./lib/index.js",
40
+ "./locale": "./locale",
40
41
  "./locale/*": "./locale/*.cjs.js"
41
42
  },
42
43
  "files": [
@@ -48,27 +49,27 @@
48
49
  ],
49
50
  "scripts": {
50
51
  "intl": "./scripts/build-intl.sh",
51
- "prepare": "npm run intl && ../../scripts/prepare-package.sh"
52
+ "prepare": "rm -rf ./locale && npm run intl && ../../scripts/prepare-package.sh"
52
53
  },
53
54
  "devDependencies": {
54
- "react": "^16.8.0",
55
- "react-dom": "^16.8.0"
55
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
56
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
56
57
  },
57
58
  "peerDependencies": {
58
- "react": "^16.8.0",
59
- "react-dom": "^16.8.0"
59
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
60
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
60
61
  },
61
62
  "dependencies": {
62
63
  "@babel/runtime": "^7.12.5",
63
- "@formatjs/cli": "^4.2.19",
64
- "@panneau/core": "^1.0.0-alpha.97",
65
- "commander": "^6.2.1",
66
- "fs-extra": "^9.1.0",
64
+ "@formatjs/cli": "^4.4.0",
65
+ "@panneau/core": "^1.0.3-alpha.1",
66
+ "commander": "^9.3.0",
67
+ "fs-extra": "^10.0.0",
67
68
  "gettext-parser": "^4.0.4",
68
69
  "glob": "^7.1.6",
69
70
  "lodash": "^4.17.21",
70
71
  "prop-types": "^15.7.2",
71
- "react-intl": "^5.15.8"
72
+ "react-intl": "^5.15.8||^6.0.0"
72
73
  },
73
74
  "lang": "locale",
74
75
  "supportedLocales": [
@@ -78,5 +79,5 @@
78
79
  "publishConfig": {
79
80
  "access": "public"
80
81
  },
81
- "gitHead": "ae027f5d52166649ba60c89f91b0ea5e6df29e64"
82
+ "gitHead": "e04e663c7f1eb692f89a0136f2e8f45024fbe355"
82
83
  }
@@ -10,6 +10,7 @@ echo "Building intl..."
10
10
 
11
11
  for lang in $languages
12
12
  do
13
+ echo $lang
13
14
  if [ "$lang" = "en" ]; then
14
15
  ./scripts/json2po.js --default ./lang/messages.json ./lang/$lang.po
15
16
  else
@@ -21,8 +21,9 @@ globSync(srcPath, {
21
21
  nodir: true,
22
22
  cwd: process.cwd(),
23
23
  }).forEach((file) => {
24
+ const options = program.opts();
24
25
  compileAndWrite([path.join(process.cwd(), file)], {
25
- ast: program.ast,
26
+ ast: options.ast,
26
27
  throws: true,
27
28
  // format: 'crowdin',
28
29
  idInterpolationPattern,
@@ -15,11 +15,12 @@ program
15
15
  });
16
16
 
17
17
  program.parse(process.argv);
18
+ const options = program.opts();
18
19
 
19
20
  const messages = fsExtra.readJsonSync(srcPath);
20
21
 
21
22
  const poFile = new POFile(destPath, {
22
- useDefaultMessage: program.default || false,
23
+ useDefaultMessage: options.default || false,
23
24
  });
24
25
  poFile.update(messages);
25
26
  poFile.save();