@sofit/view-locale 1.74.0 → 1.75.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.
@@ -1,18 +1,18 @@
1
- <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.598">
2
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-01-06T17:48:21" time="1.804" tests="4">
3
- <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.007">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.811">
2
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-01-21T12:21:29" time="1.991" tests="4">
3
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
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.001">
5
+ <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
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.001">
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-01-06T17:48:21" time="1.846" tests="4">
13
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.004">
12
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-01-21T12:21:29" time="2.006" tests="4">
13
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.005">
14
14
  </testcase>
15
- <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
15
+ <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
16
16
  </testcase>
17
17
  <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
18
18
  </testcase>
@@ -31,4 +31,8 @@ export declare const databaseErrors: {
31
31
  ptBR: string;
32
32
  es: string;
33
33
  };
34
+ duplicate_registers_relation: {
35
+ ptBR: string;
36
+ es: string;
37
+ };
34
38
  };
@@ -32,5 +32,9 @@ exports.databaseErrors = {
32
32
  duplicate_registers: {
33
33
  ptBR: 'Há mais de um registro com o valor {{value}} no campo {{column}} em {{table}}',
34
34
  es: 'Hay más de un registro con el valor {{value}} en el campo {{column}} en {{table}}'
35
+ },
36
+ duplicate_registers_relation: {
37
+ ptBR: 'Há mais de um registro para o campo {{column}}.',
38
+ es: 'Hay más de un registro para el campo {{column}}.'
35
39
  }
36
40
  };
@@ -8,3 +8,9 @@ export declare const boolean: {
8
8
  es: string;
9
9
  };
10
10
  };
11
+ export declare const messages: {
12
+ date_range: {
13
+ ptBR: string;
14
+ es: string;
15
+ };
16
+ };
@@ -10,3 +10,9 @@ exports.boolean = {
10
10
  es: 'No'
11
11
  }
12
12
  };
13
+ exports.messages = {
14
+ date_range: {
15
+ ptBR: 'De {{start_date}} até {{end_date}}',
16
+ es: 'De {{start_date}} hasta {{end_date}}'
17
+ }
18
+ };
@@ -2,6 +2,10 @@ export declare const name: {
2
2
  ptBR: string;
3
3
  es: string;
4
4
  };
5
+ export declare const status: {
6
+ ptBR: string;
7
+ es: string;
8
+ };
5
9
  export declare const fields: {
6
10
  cost_center_id: {
7
11
  ptBR: string;
@@ -5,6 +5,10 @@ exports.name = {
5
5
  ptBR: 'Histórico de Alterações do Veículo',
6
6
  es: 'Historial de Cambios del Vehículo'
7
7
  };
8
+ exports.status = {
9
+ ptBR: '(Vigente)',
10
+ es: '(En vigor)'
11
+ };
8
12
  exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { cost_center_id: {
9
13
  ptBR: 'Centro de custo',
10
14
  es: 'Centro de costo'
@@ -41,16 +45,16 @@ exports.messages = {
41
45
  es: 'Para registros de tipo {{type}} se debe ingresar el campo {{field}}.'
42
46
  },
43
47
  must_have_date_lower_than_now: {
44
- ptBR: 'Não é possível lançar historicos futuros.',
45
- es: 'Incapaz de lanzar historias futuras.'
48
+ ptBR: 'A data/hora de {{date}} deve ser menor ou igual à data/hora atual.',
49
+ es: 'La fecha/hora de {{date}} debe ser menor o igual que la fecha/hora actual.'
46
50
  },
47
51
  must_not_have_newerchange_history: {
48
- ptBR: 'Existem históricos mais recentes que o informado.',
49
- es: 'Hay historias más recientes que las reportadas.'
52
+ ptBR: 'Não é possível criar o histórico sem uma data/hora de término, pois o veículo possui históricos de alteração de {{type}} posteriores.',
53
+ es: 'No puede crear un historial sin una fecha/hora de finalización porque el vehículo tiene historiales de cambios de {{type}} posteriores.'
50
54
  },
51
55
  must_not_have_overlaping_change_history: {
52
- ptBR: 'Existem históricos sobrepostos no periodo.',
53
- es: 'Hay historias superpuestas en el período.'
56
+ ptBR: 'Não é possível criar o histórico, pois o período informado conflita com um histórico de alteração de {{type}} do veículo já existente: <br> {{histories}}',
57
+ es: 'No se puede crear el historial porque el período ingresado entra en conflicto con un historial de cambio de {{type}} del vehículo existente: <br> {{histories}}'
54
58
  },
55
59
  must_have_end_date_after_start_date: {
56
60
  ptBR: 'A data de fim deve ser maior que a data de início.',
@@ -30,5 +30,9 @@ export const databaseErrors = {
30
30
  duplicate_registers: {
31
31
  ptBR: 'Há mais de um registro com o valor {{value}} no campo {{column}} em {{table}}',
32
32
  es: 'Hay más de un registro con el valor {{value}} en el campo {{column}} en {{table}}'
33
+ },
34
+ duplicate_registers_relation: {
35
+ ptBR: 'Há mais de um registro para o campo {{column}}.',
36
+ es: 'Hay más de un registro para el campo {{column}}.'
33
37
  }
34
38
  };
@@ -7,4 +7,11 @@ export const boolean = {
7
7
  ptBR: 'Não',
8
8
  es: 'No'
9
9
  }
10
+ };
11
+
12
+ export const messages = {
13
+ date_range: {
14
+ ptBR: 'De {{start_date}} até {{end_date}}',
15
+ es: 'De {{start_date}} hasta {{end_date}}'
16
+ }
10
17
  };
@@ -5,6 +5,11 @@ export const name = {
5
5
  es: 'Historial de Cambios del Vehículo'
6
6
  };
7
7
 
8
+ export const status = {
9
+ ptBR: '(Vigente)',
10
+ es: '(En vigor)'
11
+ };
12
+
8
13
  export const fields = {
9
14
  ...ENTITY_COMMON,
10
15
  cost_center_id: {
@@ -51,16 +56,16 @@ export const messages = {
51
56
  es: 'Para registros de tipo {{type}} se debe ingresar el campo {{field}}.'
52
57
  },
53
58
  must_have_date_lower_than_now: {
54
- ptBR: 'Não é possível lançar historicos futuros.',
55
- es: 'Incapaz de lanzar historias futuras.'
59
+ ptBR: 'A data/hora de {{date}} deve ser menor ou igual à data/hora atual.',
60
+ es: 'La fecha/hora de {{date}} debe ser menor o igual que la fecha/hora actual.'
56
61
  },
57
62
  must_not_have_newerchange_history: {
58
- ptBR: 'Existem históricos mais recentes que o informado.',
59
- es: 'Hay historias más recientes que las reportadas.'
63
+ ptBR: 'Não é possível criar o histórico sem uma data/hora de término, pois o veículo possui históricos de alteração de {{type}} posteriores.',
64
+ es: 'No puede crear un historial sin una fecha/hora de finalización porque el vehículo tiene historiales de cambios de {{type}} posteriores.'
60
65
  },
61
66
  must_not_have_overlaping_change_history: {
62
- ptBR: 'Existem históricos sobrepostos no periodo.',
63
- es: 'Hay historias superpuestas en el período.'
67
+ ptBR: 'Não é possível criar o histórico, pois o período informado conflita com um histórico de alteração de {{type}} do veículo já existente: <br> {{histories}}',
68
+ es: 'No se puede crear el historial porque el período ingresado entra en conflicto con un historial de cambio de {{type}} del vehículo existente: <br> {{histories}}'
64
69
  },
65
70
  must_have_end_date_after_start_date: {
66
71
  ptBR: 'A data de fim deve ser maior que a data de início.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.74.0",
3
+ "version": "1.75.1",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",