@sofit/view-locale 1.35.0 → 1.36.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 +11 -11
- package/dist/translations/common/database-errors.js +2 -2
- package/dist/translations/common/general.d.ts +10 -0
- package/dist/translations/common/general.js +12 -0
- package/dist/translations/index.d.ts +2 -1
- package/dist/translations/index.js +2 -0
- package/dist/translations/modules/employee.d.ts +34 -0
- package/dist/translations/modules/employee.js +34 -0
- package/dist/translations/modules/item.d.ts +56 -0
- package/dist/translations/modules/item.js +56 -0
- package/lib/translations/common/database-errors.ts +2 -2
- package/lib/translations/common/general.ts +10 -0
- package/lib/translations/index.ts +2 -0
- package/lib/translations/modules/employee.ts +35 -0
- package/lib/translations/modules/item.ts +57 -0
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.
|
|
2
|
-
<testsuite name="
|
|
3
|
-
<testcase classname="
|
|
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">
|
|
4
4
|
</testcase>
|
|
5
|
-
<testcase classname="
|
|
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="
|
|
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
|
-
<testcase classname="
|
|
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="
|
|
13
|
-
<testcase classname="
|
|
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">
|
|
14
14
|
</testcase>
|
|
15
|
-
<testcase classname="
|
|
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
|
-
<testcase classname="
|
|
17
|
+
<testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
|
|
18
18
|
</testcase>
|
|
19
|
-
<testcase classname="
|
|
19
|
+
<testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0">
|
|
20
20
|
</testcase>
|
|
21
21
|
</testsuite>
|
|
22
22
|
</testsuites>
|
|
@@ -14,8 +14,8 @@ exports.databaseErrors = {
|
|
|
14
14
|
es: ''
|
|
15
15
|
},
|
|
16
16
|
cant_delete_related: {
|
|
17
|
-
ptBR: '
|
|
18
|
-
es: '
|
|
17
|
+
ptBR: 'Registro de {{table}} não pode ser removido, pois existem registros de {{relationedTable}} relacionados.',
|
|
18
|
+
es: 'El registro de {{table}} no se puede quitar, ya que hay registros de {{relationedTable}}.'
|
|
19
19
|
},
|
|
20
20
|
cant_update_related: {
|
|
21
21
|
ptBR: 'Não foi possível atualizar o registro, pois o {{field}} informado não existe.',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as auth from './common/auth';
|
|
2
2
|
import * as benchmarking from './common/benchmarking';
|
|
3
|
+
import * as general from './common/general';
|
|
3
4
|
import * as pipefy from './integrations/pipefy';
|
|
4
5
|
import * as cash_basis from './modules/cash_basis';
|
|
5
6
|
import * as checklist from './modules/checklist';
|
|
@@ -50,4 +51,4 @@ import * as warehouse from './modules/warehouse';
|
|
|
50
51
|
import * as warehouse_item from './modules/warehouse_item';
|
|
51
52
|
export { joi } from './common/joi';
|
|
52
53
|
export { databaseErrors } from './common/database-errors';
|
|
53
|
-
export { auth, benchmarking, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, cash_basis, company, cost_center, cost_sharing, customer, employee, employee_role, fine_resource, fine_qualification, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, item, maintenance_plan, maintenance_plan_service, measurement_unit, parameter, pipefy, qualification_severity, release_notification, route, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, vehicle_brand, vehicle_layout, vehicle_model, vehicle_model_version, vehicle, vehicle_fuel, vehicle_axes, vehicle_due, vehicle_tag, warehouse, warehouse_item };
|
|
54
|
+
export { auth, benchmarking, general, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, cash_basis, company, cost_center, cost_sharing, customer, employee, employee_role, fine_resource, fine_qualification, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, item, maintenance_plan, maintenance_plan_service, measurement_unit, parameter, pipefy, qualification_severity, release_notification, route, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, vehicle_brand, vehicle_layout, vehicle_model, vehicle_model_version, vehicle, vehicle_fuel, vehicle_axes, vehicle_due, vehicle_tag, warehouse, warehouse_item };
|
|
@@ -11,6 +11,8 @@ const auth = __importStar(require("./common/auth"));
|
|
|
11
11
|
exports.auth = auth;
|
|
12
12
|
const benchmarking = __importStar(require("./common/benchmarking"));
|
|
13
13
|
exports.benchmarking = benchmarking;
|
|
14
|
+
const general = __importStar(require("./common/general"));
|
|
15
|
+
exports.general = general;
|
|
14
16
|
const pipefy = __importStar(require("./integrations/pipefy"));
|
|
15
17
|
exports.pipefy = pipefy;
|
|
16
18
|
const cash_basis = __importStar(require("./modules/cash_basis"));
|
|
@@ -198,3 +198,37 @@ export declare const messages: {
|
|
|
198
198
|
es: string;
|
|
199
199
|
};
|
|
200
200
|
};
|
|
201
|
+
export declare const enums: {
|
|
202
|
+
hiring_regime: {
|
|
203
|
+
'clt': {
|
|
204
|
+
ptBR: string;
|
|
205
|
+
es: string;
|
|
206
|
+
};
|
|
207
|
+
'outsourced': {
|
|
208
|
+
ptBR: string;
|
|
209
|
+
es: string;
|
|
210
|
+
};
|
|
211
|
+
'juridical_person': {
|
|
212
|
+
ptBR: string;
|
|
213
|
+
es: string;
|
|
214
|
+
};
|
|
215
|
+
'service_provider': {
|
|
216
|
+
ptBR: string;
|
|
217
|
+
es: string;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
status: {
|
|
221
|
+
'active': {
|
|
222
|
+
ptBR: string;
|
|
223
|
+
es: string;
|
|
224
|
+
};
|
|
225
|
+
'absent': {
|
|
226
|
+
ptBR: string;
|
|
227
|
+
es: string;
|
|
228
|
+
};
|
|
229
|
+
'inactive': {
|
|
230
|
+
ptBR: string;
|
|
231
|
+
es: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
@@ -155,3 +155,37 @@ exports.messages = {
|
|
|
155
155
|
es: 'Ya existe un colaborador registrado con la matrícula y filial informadas: {{employee}}'
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
+
exports.enums = {
|
|
159
|
+
hiring_regime: {
|
|
160
|
+
'clt': {
|
|
161
|
+
ptBR: 'CLT',
|
|
162
|
+
es: 'CLT'
|
|
163
|
+
},
|
|
164
|
+
'outsourced': {
|
|
165
|
+
ptBR: 'Terceirizado',
|
|
166
|
+
es: 'Externalizado'
|
|
167
|
+
},
|
|
168
|
+
'juridical_person': {
|
|
169
|
+
ptBR: 'Pessoa jurídica',
|
|
170
|
+
es: 'Persona jurídica'
|
|
171
|
+
},
|
|
172
|
+
'service_provider': {
|
|
173
|
+
ptBR: 'Prestador de serviços',
|
|
174
|
+
es: 'Prestador de servicios'
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
status: {
|
|
178
|
+
'active': {
|
|
179
|
+
ptBR: 'Ativo',
|
|
180
|
+
es: 'Activo'
|
|
181
|
+
},
|
|
182
|
+
'absent': {
|
|
183
|
+
ptBR: 'Ausente',
|
|
184
|
+
es: 'Ausente'
|
|
185
|
+
},
|
|
186
|
+
'inactive': {
|
|
187
|
+
ptBR: 'Inativo',
|
|
188
|
+
es: 'Inactivo'
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
@@ -90,3 +90,59 @@ export declare const messages: {
|
|
|
90
90
|
es: string;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
+
export declare const enums: {
|
|
94
|
+
type: {
|
|
95
|
+
'Combustivel': {
|
|
96
|
+
ptBR: string;
|
|
97
|
+
es: string;
|
|
98
|
+
};
|
|
99
|
+
'Despesa Administrativa': {
|
|
100
|
+
ptBR: string;
|
|
101
|
+
es: string;
|
|
102
|
+
};
|
|
103
|
+
'Despesa de Locacao': {
|
|
104
|
+
ptBR: string;
|
|
105
|
+
es: string;
|
|
106
|
+
};
|
|
107
|
+
'Despesa de Viagem': {
|
|
108
|
+
ptBR: string;
|
|
109
|
+
es: string;
|
|
110
|
+
};
|
|
111
|
+
'Imposto e Taxa': {
|
|
112
|
+
ptBR: string;
|
|
113
|
+
es: string;
|
|
114
|
+
};
|
|
115
|
+
'Lubrificante': {
|
|
116
|
+
ptBR: string;
|
|
117
|
+
es: string;
|
|
118
|
+
};
|
|
119
|
+
'Mao de Obra/Servico': {
|
|
120
|
+
ptBR: string;
|
|
121
|
+
es: string;
|
|
122
|
+
};
|
|
123
|
+
'Multa': {
|
|
124
|
+
ptBR: string;
|
|
125
|
+
es: string;
|
|
126
|
+
};
|
|
127
|
+
'Pedagio': {
|
|
128
|
+
ptBR: string;
|
|
129
|
+
es: string;
|
|
130
|
+
};
|
|
131
|
+
'Pneu': {
|
|
132
|
+
ptBR: string;
|
|
133
|
+
es: string;
|
|
134
|
+
};
|
|
135
|
+
'Manutencao': {
|
|
136
|
+
ptBR: string;
|
|
137
|
+
es: string;
|
|
138
|
+
};
|
|
139
|
+
'Seguro': {
|
|
140
|
+
ptBR: string;
|
|
141
|
+
es: string;
|
|
142
|
+
};
|
|
143
|
+
'Outros': {
|
|
144
|
+
ptBR: string;
|
|
145
|
+
es: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
@@ -68,3 +68,59 @@ exports.messages = {
|
|
|
68
68
|
es: 'No se puede deshabilitar un elemento relacionado con el(los) vencimiento(s) del(de los) siguiente(s) vehículo(s) activo(s): {{vehicle}}'
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
+
exports.enums = {
|
|
72
|
+
type: {
|
|
73
|
+
'Combustivel': {
|
|
74
|
+
ptBR: 'Combustível',
|
|
75
|
+
es: 'Combustible'
|
|
76
|
+
},
|
|
77
|
+
'Despesa Administrativa': {
|
|
78
|
+
ptBR: 'Despesa Administrativa',
|
|
79
|
+
es: 'Costos Administrativos'
|
|
80
|
+
},
|
|
81
|
+
'Despesa de Locacao': {
|
|
82
|
+
ptBR: 'Despesa de Locação',
|
|
83
|
+
es: 'Gastos de Alquiler'
|
|
84
|
+
},
|
|
85
|
+
'Despesa de Viagem': {
|
|
86
|
+
ptBR: 'Despesa de Viagem',
|
|
87
|
+
es: 'Gastos de Viaje'
|
|
88
|
+
},
|
|
89
|
+
'Imposto e Taxa': {
|
|
90
|
+
ptBR: 'Imposto e Taxa',
|
|
91
|
+
es: 'Impuesto y Tasa'
|
|
92
|
+
},
|
|
93
|
+
'Lubrificante': {
|
|
94
|
+
ptBR: 'Lubrificante',
|
|
95
|
+
es: 'Lubricante'
|
|
96
|
+
},
|
|
97
|
+
'Mao de Obra/Servico': {
|
|
98
|
+
ptBR: 'Mão de Obra/Servico',
|
|
99
|
+
es: 'Mano de Obra/Servicio mecánico'
|
|
100
|
+
},
|
|
101
|
+
'Multa': {
|
|
102
|
+
ptBR: 'Multa',
|
|
103
|
+
es: 'Multa'
|
|
104
|
+
},
|
|
105
|
+
'Pedagio': {
|
|
106
|
+
ptBR: 'Pedágio',
|
|
107
|
+
es: 'Peaje'
|
|
108
|
+
},
|
|
109
|
+
'Pneu': {
|
|
110
|
+
ptBR: 'Pneu',
|
|
111
|
+
es: 'Neumático'
|
|
112
|
+
},
|
|
113
|
+
'Manutencao': {
|
|
114
|
+
ptBR: 'Manutenção',
|
|
115
|
+
es: 'Pieza/Material'
|
|
116
|
+
},
|
|
117
|
+
'Seguro': {
|
|
118
|
+
ptBR: 'Seguro',
|
|
119
|
+
es: 'Seguro'
|
|
120
|
+
},
|
|
121
|
+
'Outros': {
|
|
122
|
+
ptBR: 'Outros',
|
|
123
|
+
es: 'Otros'
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
@@ -12,8 +12,8 @@ export const databaseErrors = {
|
|
|
12
12
|
es: ''
|
|
13
13
|
},
|
|
14
14
|
cant_delete_related: {
|
|
15
|
-
ptBR: '
|
|
16
|
-
es: '
|
|
15
|
+
ptBR: 'Registro de {{table}} não pode ser removido, pois existem registros de {{relationedTable}} relacionados.',
|
|
16
|
+
es: 'El registro de {{table}} no se puede quitar, ya que hay registros de {{relationedTable}}.'
|
|
17
17
|
},
|
|
18
18
|
cant_update_related: {
|
|
19
19
|
ptBR: 'Não foi possível atualizar o registro, pois o {{field}} informado não existe.',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as auth from './common/auth';
|
|
2
2
|
import * as benchmarking from './common/benchmarking';
|
|
3
|
+
import * as general from './common/general';
|
|
3
4
|
import * as pipefy from './integrations/pipefy';
|
|
4
5
|
import * as cash_basis from './modules/cash_basis';
|
|
5
6
|
import * as checklist from './modules/checklist';
|
|
@@ -55,6 +56,7 @@ export { databaseErrors } from './common/database-errors';
|
|
|
55
56
|
export {
|
|
56
57
|
auth,
|
|
57
58
|
benchmarking,
|
|
59
|
+
general,
|
|
58
60
|
checklist,
|
|
59
61
|
checklist_group,
|
|
60
62
|
checklist_group_item,
|
|
@@ -190,4 +190,39 @@ export const messages = {
|
|
|
190
190
|
ptBR: 'Já existe um colaborador cadastrado com a matrícula e filial informadas: {{employee}}',
|
|
191
191
|
es: 'Ya existe un colaborador registrado con la matrícula y filial informadas: {{employee}}'
|
|
192
192
|
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
export const enums = {
|
|
196
|
+
hiring_regime: {
|
|
197
|
+
'clt': {
|
|
198
|
+
ptBR: 'CLT',
|
|
199
|
+
es: 'CLT'
|
|
200
|
+
},
|
|
201
|
+
'outsourced': {
|
|
202
|
+
ptBR: 'Terceirizado',
|
|
203
|
+
es: 'Externalizado'
|
|
204
|
+
},
|
|
205
|
+
'juridical_person': {
|
|
206
|
+
ptBR: 'Pessoa jurídica',
|
|
207
|
+
es: 'Persona jurídica'
|
|
208
|
+
},
|
|
209
|
+
'service_provider': {
|
|
210
|
+
ptBR: 'Prestador de serviços',
|
|
211
|
+
es: 'Prestador de servicios'
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
status: {
|
|
215
|
+
'active': {
|
|
216
|
+
ptBR: 'Ativo',
|
|
217
|
+
es: 'Activo'
|
|
218
|
+
},
|
|
219
|
+
'absent': {
|
|
220
|
+
ptBR: 'Ausente',
|
|
221
|
+
es: 'Ausente'
|
|
222
|
+
},
|
|
223
|
+
'inactive': {
|
|
224
|
+
ptBR: 'Inativo',
|
|
225
|
+
es: 'Inactivo'
|
|
226
|
+
}
|
|
227
|
+
}
|
|
193
228
|
};
|
|
@@ -82,4 +82,61 @@ export const messages = {
|
|
|
82
82
|
ptBR: 'Não é possível desativar um item relacionado com vencimento(s) do(s) seguinte(s) veículo(s) ativo(s): {{vehicle}}.',
|
|
83
83
|
es: 'No se puede deshabilitar un elemento relacionado con el(los) vencimiento(s) del(de los) siguiente(s) vehículo(s) activo(s): {{vehicle}}'
|
|
84
84
|
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export const enums = {
|
|
88
|
+
type: {
|
|
89
|
+
'Combustivel': {
|
|
90
|
+
ptBR: 'Combustível',
|
|
91
|
+
es: 'Combustible'
|
|
92
|
+
},
|
|
93
|
+
'Despesa Administrativa': {
|
|
94
|
+
ptBR: 'Despesa Administrativa',
|
|
95
|
+
es: 'Costos Administrativos'
|
|
96
|
+
},
|
|
97
|
+
'Despesa de Locacao': {
|
|
98
|
+
ptBR: 'Despesa de Locação',
|
|
99
|
+
es: 'Gastos de Alquiler'
|
|
100
|
+
},
|
|
101
|
+
'Despesa de Viagem': {
|
|
102
|
+
ptBR: 'Despesa de Viagem',
|
|
103
|
+
es: 'Gastos de Viaje'
|
|
104
|
+
},
|
|
105
|
+
'Imposto e Taxa': {
|
|
106
|
+
ptBR: 'Imposto e Taxa',
|
|
107
|
+
es: 'Impuesto y Tasa'
|
|
108
|
+
},
|
|
109
|
+
'Lubrificante': {
|
|
110
|
+
ptBR: 'Lubrificante',
|
|
111
|
+
es: 'Lubricante'
|
|
112
|
+
},
|
|
113
|
+
'Mao de Obra/Servico': {
|
|
114
|
+
ptBR: 'Mão de Obra/Servico',
|
|
115
|
+
es: 'Mano de Obra/Servicio mecánico'
|
|
116
|
+
},
|
|
117
|
+
'Multa': {
|
|
118
|
+
ptBR: 'Multa',
|
|
119
|
+
es: 'Multa'
|
|
120
|
+
},
|
|
121
|
+
'Pedagio': {
|
|
122
|
+
ptBR: 'Pedágio',
|
|
123
|
+
es: 'Peaje'
|
|
124
|
+
},
|
|
125
|
+
'Pneu': {
|
|
126
|
+
ptBR: 'Pneu',
|
|
127
|
+
es: 'Neumático'
|
|
128
|
+
},
|
|
129
|
+
'Manutencao': {
|
|
130
|
+
ptBR: 'Manutenção',
|
|
131
|
+
es: 'Pieza/Material'
|
|
132
|
+
},
|
|
133
|
+
'Seguro': {
|
|
134
|
+
ptBR: 'Seguro',
|
|
135
|
+
es: 'Seguro'
|
|
136
|
+
},
|
|
137
|
+
'Outros': {
|
|
138
|
+
ptBR: 'Outros',
|
|
139
|
+
es: 'Otros'
|
|
140
|
+
}
|
|
141
|
+
}
|
|
85
142
|
};
|