@sofit/view-locale 1.93.0 → 1.95.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/coverage/jest/results.xml +5 -5
- package/dist/translations/common/joi.js +4 -0
- package/dist/translations/modules/employee.d.ts +4 -0
- package/dist/translations/modules/employee.js +4 -0
- package/lib/translations/common/joi.ts +4 -0
- package/lib/translations/modules/employee.ts +4 -0
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="
|
|
2
|
-
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-05-
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="3.402">
|
|
2
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-05-18T20:56:53" time="2.55" tests="4">
|
|
3
3
|
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.004">
|
|
4
4
|
</testcase>
|
|
5
|
-
<testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
|
|
5
|
+
<testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
|
|
6
6
|
</testcase>
|
|
7
|
-
<testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0
|
|
7
|
+
<testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
|
|
8
8
|
</testcase>
|
|
9
9
|
<testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
|
|
10
10
|
</testcase>
|
|
11
11
|
</testsuite>
|
|
12
|
-
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-05-
|
|
12
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-05-18T20:56:53" time="2.612" tests="4">
|
|
13
13
|
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.003">
|
|
14
14
|
</testcase>
|
|
15
15
|
<testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
|
|
@@ -25,6 +25,10 @@ exports.joi = {
|
|
|
25
25
|
ptBR: '{{label}} precisa ter no mínimo {{limit}}.',
|
|
26
26
|
es: '{{label}} debe tener al menos {{limit}}.'
|
|
27
27
|
},
|
|
28
|
+
'number.max': {
|
|
29
|
+
ptBR: '{{label}} precisa ter no máximo {{limit}}.',
|
|
30
|
+
es: '{{label}} debe tener al máximo {{limit}}.'
|
|
31
|
+
},
|
|
28
32
|
'number.integer': {
|
|
29
33
|
ptBR: '{{label}} precisa ser um número inteiro.',
|
|
30
34
|
es: '{{label}} debe ser un entero.'
|
|
@@ -202,6 +202,10 @@ exports.messages = {
|
|
|
202
202
|
ptBR: 'O usuário informado deve estar ativo.',
|
|
203
203
|
es: 'El usuario informado debe estar activo.'
|
|
204
204
|
},
|
|
205
|
+
user_must_be_unique: {
|
|
206
|
+
ptBR: 'Já existe um colaborador cadastrado com o usuário informado: {{name}}.',
|
|
207
|
+
es: 'Ya existe un colaborador registrado con el usuario informado: {{name}}.'
|
|
208
|
+
},
|
|
205
209
|
subsidiary_change_date: {
|
|
206
210
|
ptBR: 'Data de alteração da Filial',
|
|
207
211
|
es: 'Fecha de cambio de la sucursal'
|
|
@@ -25,6 +25,10 @@ export const joi: ITranslation = {
|
|
|
25
25
|
ptBR: '{{label}} precisa ter no mínimo {{limit}}.',
|
|
26
26
|
es: '{{label}} debe tener al menos {{limit}}.'
|
|
27
27
|
},
|
|
28
|
+
'number.max': {
|
|
29
|
+
ptBR: '{{label}} precisa ter no máximo {{limit}}.',
|
|
30
|
+
es: '{{label}} debe tener al máximo {{limit}}.'
|
|
31
|
+
},
|
|
28
32
|
'number.integer': {
|
|
29
33
|
ptBR: '{{label}} precisa ser um número inteiro.',
|
|
30
34
|
es: '{{label}} debe ser un entero.'
|
|
@@ -242,6 +242,10 @@ export const messages = {
|
|
|
242
242
|
ptBR: 'O usuário informado deve estar ativo.',
|
|
243
243
|
es: 'El usuario informado debe estar activo.'
|
|
244
244
|
},
|
|
245
|
+
user_must_be_unique: {
|
|
246
|
+
ptBR: 'Já existe um colaborador cadastrado com o usuário informado: {{name}}.',
|
|
247
|
+
es: 'Ya existe un colaborador registrado con el usuario informado: {{name}}.'
|
|
248
|
+
},
|
|
245
249
|
subsidiary_change_date: {
|
|
246
250
|
ptBR: 'Data de alteração da Filial',
|
|
247
251
|
es: 'Fecha de cambio de la sucursal'
|