@sofit/view-locale 1.36.0 → 1.37.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.
@@ -1,22 +1,22 @@
1
- <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.219">
2
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-05-08T20:00:47" time="1.488" 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">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.188">
2
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-05-13T20:20:43" time="1.471" tests="4">
3
+ <testcase classname="Joi tests should return default message" name="Joi tests should return default message" 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="Joi tests should return non label message" name="Joi tests should return non label message" 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="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0">
8
8
  </testcase>
9
- <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
9
+ <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
10
10
  </testcase>
11
11
  </testsuite>
12
- <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-05-08T20:00:47" time="1.492" tests="4">
13
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.005">
12
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-05-13T20:20:43" time="1.476" tests="4">
13
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
14
14
  </testcase>
15
- <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
15
+ <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
16
16
  </testcase>
17
- <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
17
+ <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
18
18
  </testcase>
19
- <testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
19
+ <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
20
20
  </testcase>
21
21
  </testsuite>
22
22
  </testsuites>
@@ -135,6 +135,10 @@ export declare const fields: {
135
135
  ptBR: string;
136
136
  es: string;
137
137
  };
138
+ status: {
139
+ ptBR: string;
140
+ es: string;
141
+ };
138
142
  name: {
139
143
  ptBR: string;
140
144
  es: string;
@@ -181,11 +185,7 @@ export declare const messages: {
181
185
  ptBR: string;
182
186
  es: string;
183
187
  };
184
- cpf_and_name_must_not_be_equal: {
185
- ptBR: string;
186
- es: string;
187
- };
188
- rg_and_rg_issuer_must_not_be_equal: {
188
+ cpf_must_not_be_equal: {
189
189
  ptBR: string;
190
190
  es: string;
191
191
  };
@@ -104,6 +104,9 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { active: {
104
104
  }, user_id: {
105
105
  ptBR: 'Usuário',
106
106
  es: 'Usuario del Cliente'
107
+ }, status: {
108
+ ptBR: 'Status',
109
+ es: 'Status'
107
110
  } });
108
111
  exports.messages = {
109
112
  associated_at_driver_control_deactivate: {
@@ -138,17 +141,13 @@ exports.messages = {
138
141
  ptBR: 'O colaborador não possui e-mail informado!',
139
142
  es: '¡El colaborador no tiene e-mail informado!'
140
143
  },
141
- cpf_and_name_must_not_be_equal: {
142
- ptBR: 'Já existe um colaborador cadastrado com o CPF informado: {{employee}}',
143
- es: 'Ya existe un colaborador registrado con el CPF informado: {{employee}}'
144
- },
145
- rg_and_rg_issuer_must_not_be_equal: {
146
- ptBR: 'Já existe um colaborador cadastrado com o RG e órgão emissor informados: {{employee}}',
147
- es: 'Ya existe un colaborador registrado con el RG y órgano emisor informados: {{employee}}'
144
+ cpf_must_not_be_equal: {
145
+ ptBR: 'Já existe um colaborador cadastrado com o CPF informado: {{employee}}.',
146
+ es: 'Ya existe un colaborador registrado con el CPF informado: {{employee}}.'
148
147
  },
149
148
  must_has_registration_num_filled: {
150
- ptBR: ' existe um colaborador cadastrado com o nome, RG, órgão emissor e CPF informados: {{employee}}<br>Caso queira readmitir esse colaborador, informe uma matrícula diferente.',
151
- es: 'Ya existe un colaborador registrado con el nombre, RG, órgano emisor y CPF informados: {{employee}} <br> Si desea readmitir a ese colaborador, informe una matrícula diferente.'
149
+ ptBR: 'A matrícula é obrigatória',
150
+ es: 'La matrícula es obligatorio.'
152
151
  },
153
152
  must_has_different_registration_num_and_subsidiary: {
154
153
  ptBR: 'Já existe um colaborador cadastrado com a matrícula e filial informadas: {{employee}}',
@@ -39,4 +39,8 @@ export declare const fields: {
39
39
  ptBR: string;
40
40
  es: string;
41
41
  };
42
+ observation: {
43
+ ptBR: string;
44
+ es: string;
45
+ };
42
46
  };
@@ -40,5 +40,9 @@ exports.fields = {
40
40
  status: {
41
41
  ptBR: 'Status',
42
42
  es: 'Estatus'
43
+ },
44
+ observation: {
45
+ ptBR: 'Observações',
46
+ es: 'Observaciones'
43
47
  }
44
48
  };
@@ -21,8 +21,8 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { category: {
21
21
  ptBR: 'Chave do Aplicativo',
22
22
  es: 'Clave de aplicación'
23
23
  }, steppe_quantity: {
24
- ptBR: 'Cantidad de estepas',
25
- es: ''
24
+ ptBR: 'Quantidade de estepes',
25
+ es: 'Cantidad de repuestos'
26
26
  }, in_revision: {
27
27
  ptBR: 'Em revisão',
28
28
  es: 'En revisión'
@@ -29,4 +29,16 @@ export declare const messages: {
29
29
  ptBR: string;
30
30
  es: string;
31
31
  };
32
+ has_items_in_warehouse: {
33
+ ptBR: string;
34
+ es: string;
35
+ };
36
+ has_gas_pumps_in_warehouse: {
37
+ ptBR: string;
38
+ es: string;
39
+ };
40
+ has_stock_entry_items_in_warehouse: {
41
+ ptBR: string;
42
+ es: string;
43
+ };
32
44
  };
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const entity_1 = require("../common/entity");
4
4
  exports.name = {
5
5
  ptBR: 'Depósito',
6
- es: 'Depósito'
6
+ es: 'Álmacen'
7
7
  };
8
8
  exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { subsidiary_id: {
9
9
  ptBR: 'Filial',
@@ -16,5 +16,17 @@ exports.messages = {
16
16
  cant_be_disabled: {
17
17
  ptBR: 'O depósito ainda contém itens e não pode ser desativado!',
18
18
  es: 'El depósito todavía contiene elementos y no se puede deshabilitar!'
19
+ },
20
+ has_items_in_warehouse: {
21
+ ptBR: 'O depósito ainda contém itens e não pode ser desativado!',
22
+ es: 'El depósito todavía contiene elementos y no se puede deshabilitar!'
23
+ },
24
+ has_gas_pumps_in_warehouse: {
25
+ ptBR: 'Este depósito tem bombas de combustível, não pode ser excluído.',
26
+ es: 'El álmacen tiene surtidores de combustible, no se puede excluir.'
27
+ },
28
+ has_stock_entry_items_in_warehouse: {
29
+ ptBR: 'Este depósito tem lançamentos de controle de estoque, não pode ser excluído.',
30
+ es: 'Este álmacen tiene ingressos de control de stock, no se puede excluir.'
19
31
  }
20
32
  };
@@ -138,6 +138,10 @@ export const fields = {
138
138
  user_id: {
139
139
  ptBR: 'Usuário',
140
140
  es: 'Usuario del Cliente'
141
+ },
142
+ status: {
143
+ ptBR: 'Status',
144
+ es: 'Status'
141
145
  }
142
146
  };
143
147
 
@@ -174,17 +178,13 @@ export const messages = {
174
178
  ptBR: 'O colaborador não possui e-mail informado!',
175
179
  es: '¡El colaborador no tiene e-mail informado!'
176
180
  },
177
- cpf_and_name_must_not_be_equal: {
178
- ptBR: 'Já existe um colaborador cadastrado com o CPF informado: {{employee}}',
179
- es: 'Ya existe un colaborador registrado con el CPF informado: {{employee}}'
180
- },
181
- rg_and_rg_issuer_must_not_be_equal: {
182
- ptBR: 'Já existe um colaborador cadastrado com o RG e órgão emissor informados: {{employee}}',
183
- es: 'Ya existe un colaborador registrado con el RG y órgano emisor informados: {{employee}}'
181
+ cpf_must_not_be_equal: {
182
+ ptBR: 'Já existe um colaborador cadastrado com o CPF informado: {{employee}}.',
183
+ es: 'Ya existe un colaborador registrado con el CPF informado: {{employee}}.'
184
184
  },
185
185
  must_has_registration_num_filled: {
186
- ptBR: ' existe um colaborador cadastrado com o nome, RG, órgão emissor e CPF informados: {{employee}}<br>Caso queira readmitir esse colaborador, informe uma matrícula diferente.',
187
- es: 'Ya existe un colaborador registrado con el nombre, RG, órgano emisor y CPF informados: {{employee}} <br> Si desea readmitir a ese colaborador, informe una matrícula diferente.'
186
+ ptBR: 'A matrícula é obrigatória',
187
+ es: 'La matrícula es obligatorio.'
188
188
  },
189
189
  must_has_different_registration_num_and_subsidiary: {
190
190
  ptBR: 'Já existe um colaborador cadastrado com a matrícula e filial informadas: {{employee}}',
@@ -39,5 +39,9 @@ export const fields = {
39
39
  status: {
40
40
  ptBR: 'Status',
41
41
  es: 'Estatus'
42
+ },
43
+ observation: {
44
+ ptBR: 'Observações',
45
+ es: 'Observaciones'
42
46
  }
43
47
  };
@@ -28,8 +28,8 @@ export const fields = {
28
28
  es: 'Clave de aplicación'
29
29
  },
30
30
  steppe_quantity: {
31
- ptBR: 'Cantidad de estepas',
32
- es: ''
31
+ ptBR: 'Quantidade de estepes',
32
+ es: 'Cantidad de repuestos'
33
33
  },
34
34
  in_revision: {
35
35
  ptBR: 'Em revisão',
@@ -2,7 +2,7 @@ import { ENTITY_COMMON } from '../common/entity';
2
2
 
3
3
  export const name = {
4
4
  ptBR: 'Depósito',
5
- es: 'Depósito'
5
+ es: 'Álmacen'
6
6
  };
7
7
 
8
8
  export const fields = {
@@ -21,5 +21,17 @@ export const messages = {
21
21
  cant_be_disabled: {
22
22
  ptBR: 'O depósito ainda contém itens e não pode ser desativado!',
23
23
  es: 'El depósito todavía contiene elementos y no se puede deshabilitar!'
24
+ },
25
+ has_items_in_warehouse: {
26
+ ptBR: 'O depósito ainda contém itens e não pode ser desativado!',
27
+ es: 'El depósito todavía contiene elementos y no se puede deshabilitar!'
28
+ },
29
+ has_gas_pumps_in_warehouse: {
30
+ ptBR: 'Este depósito tem bombas de combustível, não pode ser excluído.',
31
+ es: 'El álmacen tiene surtidores de combustible, no se puede excluir.'
32
+ },
33
+ has_stock_entry_items_in_warehouse: {
34
+ ptBR: 'Este depósito tem lançamentos de controle de estoque, não pode ser excluído.',
35
+ es: 'Este álmacen tiene ingressos de control de stock, no se puede excluir.'
24
36
  }
25
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.36.0",
3
+ "version": "1.37.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",