@sofit/view-locale 1.33.0 → 1.35.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 +8 -8
- package/dist/translations/common/joi.js +5 -1
- package/dist/translations/index.d.ts +3 -1
- package/dist/translations/index.js +4 -0
- package/dist/translations/modules/checklist.d.ts +50 -0
- package/dist/translations/modules/checklist.js +32 -0
- package/dist/translations/modules/checklist_model.d.ts +6 -0
- package/dist/translations/modules/checklist_model.js +6 -0
- package/dist/translations/modules/checklist_reply.d.ts +38 -0
- package/dist/translations/modules/checklist_reply.js +23 -0
- package/lib/translations/common/joi.ts +5 -1
- package/lib/translations/index.ts +4 -0
- package/lib/translations/modules/checklist.ts +42 -0
- package/lib/translations/modules/checklist_model.ts +7 -0
- package/lib/translations/modules/checklist_reply.ts +30 -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="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-05-
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.42">
|
|
2
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2019-05-07T13:15:45" time="1.753" tests="4">
|
|
3
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="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
|
|
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
7
|
<testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0">
|
|
8
8
|
</testcase>
|
|
9
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="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-05-
|
|
13
|
-
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.
|
|
12
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2019-05-07T13:15:45" time="1.73" 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="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
|
|
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="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0
|
|
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="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
|
|
19
|
+
<testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
|
|
20
20
|
</testcase>
|
|
21
21
|
</testsuite>
|
|
22
22
|
</testsuites>
|
|
@@ -11,7 +11,11 @@ exports.joi = {
|
|
|
11
11
|
},
|
|
12
12
|
'string.email': {
|
|
13
13
|
ptBR: '{{label}} precisa ser um email válido.',
|
|
14
|
-
es: '{{label}}'
|
|
14
|
+
es: '{{label}} debe ser un correo electrónico válido.'
|
|
15
|
+
},
|
|
16
|
+
'string.regex.base': {
|
|
17
|
+
ptBR: '{{label}} precisa estar em um formato válido.',
|
|
18
|
+
es: '{{label}} precisa estar en un formato válido.'
|
|
15
19
|
},
|
|
16
20
|
'number.base': {
|
|
17
21
|
ptBR: '{{label}} precisa ser do tipo numérico.',
|
|
@@ -2,10 +2,12 @@ import * as auth from './common/auth';
|
|
|
2
2
|
import * as benchmarking from './common/benchmarking';
|
|
3
3
|
import * as pipefy from './integrations/pipefy';
|
|
4
4
|
import * as cash_basis from './modules/cash_basis';
|
|
5
|
+
import * as checklist from './modules/checklist';
|
|
5
6
|
import * as checklist_group from './modules/checklist_group';
|
|
6
7
|
import * as checklist_group_item from './modules/checklist_group_item';
|
|
7
8
|
import * as checklist_group_option from './modules/checklist_group_option';
|
|
8
9
|
import * as checklist_model from './modules/checklist_model';
|
|
10
|
+
import * as checklist_reply from './modules/checklist_reply';
|
|
9
11
|
import * as company from './modules/company';
|
|
10
12
|
import * as cost_center from './modules/cost_center';
|
|
11
13
|
import * as cost_sharing from './modules/cost_sharing';
|
|
@@ -48,4 +50,4 @@ import * as warehouse from './modules/warehouse';
|
|
|
48
50
|
import * as warehouse_item from './modules/warehouse_item';
|
|
49
51
|
export { joi } from './common/joi';
|
|
50
52
|
export { databaseErrors } from './common/database-errors';
|
|
51
|
-
export { auth, benchmarking, checklist_group, checklist_group_item, checklist_group_option, checklist_model, 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 };
|
|
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 };
|
|
@@ -15,6 +15,8 @@ const pipefy = __importStar(require("./integrations/pipefy"));
|
|
|
15
15
|
exports.pipefy = pipefy;
|
|
16
16
|
const cash_basis = __importStar(require("./modules/cash_basis"));
|
|
17
17
|
exports.cash_basis = cash_basis;
|
|
18
|
+
const checklist = __importStar(require("./modules/checklist"));
|
|
19
|
+
exports.checklist = checklist;
|
|
18
20
|
const checklist_group = __importStar(require("./modules/checklist_group"));
|
|
19
21
|
exports.checklist_group = checklist_group;
|
|
20
22
|
const checklist_group_item = __importStar(require("./modules/checklist_group_item"));
|
|
@@ -23,6 +25,8 @@ const checklist_group_option = __importStar(require("./modules/checklist_group_o
|
|
|
23
25
|
exports.checklist_group_option = checklist_group_option;
|
|
24
26
|
const checklist_model = __importStar(require("./modules/checklist_model"));
|
|
25
27
|
exports.checklist_model = checklist_model;
|
|
28
|
+
const checklist_reply = __importStar(require("./modules/checklist_reply"));
|
|
29
|
+
exports.checklist_reply = checklist_reply;
|
|
26
30
|
const company = __importStar(require("./modules/company"));
|
|
27
31
|
exports.company = company;
|
|
28
32
|
const cost_center = __importStar(require("./modules/cost_center"));
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const name: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const fields: {
|
|
6
|
+
odometer: {
|
|
7
|
+
ptBR: string;
|
|
8
|
+
es: string;
|
|
9
|
+
};
|
|
10
|
+
date: {
|
|
11
|
+
ptBR: string;
|
|
12
|
+
es: string;
|
|
13
|
+
};
|
|
14
|
+
fuel_leve: {
|
|
15
|
+
ptBR: string;
|
|
16
|
+
es: string;
|
|
17
|
+
};
|
|
18
|
+
vehicle_id: {
|
|
19
|
+
ptBR: string;
|
|
20
|
+
es: string;
|
|
21
|
+
};
|
|
22
|
+
employee_id: {
|
|
23
|
+
ptBR: string;
|
|
24
|
+
es: string;
|
|
25
|
+
};
|
|
26
|
+
checklist_model_id: {
|
|
27
|
+
ptBR: string;
|
|
28
|
+
es: string;
|
|
29
|
+
};
|
|
30
|
+
service_order_id: {
|
|
31
|
+
ptBR: string;
|
|
32
|
+
es: string;
|
|
33
|
+
};
|
|
34
|
+
checklist_reply: {
|
|
35
|
+
ptBR: string;
|
|
36
|
+
es: string;
|
|
37
|
+
};
|
|
38
|
+
name: {
|
|
39
|
+
ptBR: string;
|
|
40
|
+
es: string;
|
|
41
|
+
};
|
|
42
|
+
external_id: {
|
|
43
|
+
ptBR: string;
|
|
44
|
+
es: string;
|
|
45
|
+
};
|
|
46
|
+
id: {
|
|
47
|
+
ptBR: string;
|
|
48
|
+
es: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const entity_1 = require("../common/entity");
|
|
4
|
+
exports.name = {
|
|
5
|
+
ptBR: 'Checklist',
|
|
6
|
+
es: 'Checklist'
|
|
7
|
+
};
|
|
8
|
+
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { odometer: {
|
|
9
|
+
ptBR: 'Hodometro',
|
|
10
|
+
es: 'Odometer'
|
|
11
|
+
}, date: {
|
|
12
|
+
ptBR: 'Data',
|
|
13
|
+
es: 'Fecha'
|
|
14
|
+
}, fuel_leve: {
|
|
15
|
+
ptBR: 'Nível de Combustível',
|
|
16
|
+
es: 'Nivel de combustible'
|
|
17
|
+
}, vehicle_id: {
|
|
18
|
+
ptBR: 'Veículo',
|
|
19
|
+
es: 'Vehículo'
|
|
20
|
+
}, employee_id: {
|
|
21
|
+
ptBR: 'Colaborador',
|
|
22
|
+
es: 'Colaborador'
|
|
23
|
+
}, checklist_model_id: {
|
|
24
|
+
ptBR: 'Modelo do Checklist',
|
|
25
|
+
es: 'Modelo del Checklist'
|
|
26
|
+
}, service_order_id: {
|
|
27
|
+
ptBR: 'Ordem de Serviço',
|
|
28
|
+
es: 'Orden de servicio'
|
|
29
|
+
}, checklist_reply: {
|
|
30
|
+
ptBR: 'Resposta Checklist',
|
|
31
|
+
es: 'Respuesta Checklist'
|
|
32
|
+
} });
|
|
@@ -12,3 +12,9 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { description: {
|
|
|
12
12
|
ptBR: 'Grupos',
|
|
13
13
|
es: 'Grupos'
|
|
14
14
|
} });
|
|
15
|
+
exports.messages = {
|
|
16
|
+
is_not_allowed_to_exclude: {
|
|
17
|
+
ptBR: 'Não é possível excluir um modelo vinculado ao checklist.',
|
|
18
|
+
es: 'No se puede eliminar una plantilla vinculada al checklist.'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const name: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const fields: {
|
|
6
|
+
defective: {
|
|
7
|
+
ptBR: string;
|
|
8
|
+
es: string;
|
|
9
|
+
};
|
|
10
|
+
observation: {
|
|
11
|
+
ptBR: string;
|
|
12
|
+
es: string;
|
|
13
|
+
};
|
|
14
|
+
checklist_id: {
|
|
15
|
+
ptBR: string;
|
|
16
|
+
es: string;
|
|
17
|
+
};
|
|
18
|
+
checklist_group_item_id: {
|
|
19
|
+
ptBR: string;
|
|
20
|
+
es: string;
|
|
21
|
+
};
|
|
22
|
+
checklist_group_option_id: {
|
|
23
|
+
ptBR: string;
|
|
24
|
+
es: string;
|
|
25
|
+
};
|
|
26
|
+
name: {
|
|
27
|
+
ptBR: string;
|
|
28
|
+
es: string;
|
|
29
|
+
};
|
|
30
|
+
external_id: {
|
|
31
|
+
ptBR: string;
|
|
32
|
+
es: string;
|
|
33
|
+
};
|
|
34
|
+
id: {
|
|
35
|
+
ptBR: string;
|
|
36
|
+
es: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const entity_1 = require("../common/entity");
|
|
4
|
+
exports.name = {
|
|
5
|
+
ptBR: 'Resposta',
|
|
6
|
+
es: 'Respuesta'
|
|
7
|
+
};
|
|
8
|
+
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { defective: {
|
|
9
|
+
ptBR: 'Defeituoso',
|
|
10
|
+
es: 'Defectuoso'
|
|
11
|
+
}, observation: {
|
|
12
|
+
ptBR: 'Observação',
|
|
13
|
+
es: 'Observación'
|
|
14
|
+
}, checklist_id: {
|
|
15
|
+
ptBR: 'Checklist',
|
|
16
|
+
es: 'Checklist'
|
|
17
|
+
}, checklist_group_item_id: {
|
|
18
|
+
ptBR: 'Item',
|
|
19
|
+
es: 'Item'
|
|
20
|
+
}, checklist_group_option_id: {
|
|
21
|
+
ptBR: 'Motivo reprovação',
|
|
22
|
+
es: 'Motivo reprobación'
|
|
23
|
+
} });
|
|
@@ -11,7 +11,11 @@ export const joi: ITranslation = {
|
|
|
11
11
|
},
|
|
12
12
|
'string.email': {
|
|
13
13
|
ptBR: '{{label}} precisa ser um email válido.',
|
|
14
|
-
es: '{{label}}'
|
|
14
|
+
es: '{{label}} debe ser un correo electrónico válido.'
|
|
15
|
+
},
|
|
16
|
+
'string.regex.base': {
|
|
17
|
+
ptBR: '{{label}} precisa estar em um formato válido.',
|
|
18
|
+
es: '{{label}} precisa estar en un formato válido.'
|
|
15
19
|
},
|
|
16
20
|
'number.base': {
|
|
17
21
|
ptBR: '{{label}} precisa ser do tipo numérico.',
|
|
@@ -2,10 +2,12 @@ import * as auth from './common/auth';
|
|
|
2
2
|
import * as benchmarking from './common/benchmarking';
|
|
3
3
|
import * as pipefy from './integrations/pipefy';
|
|
4
4
|
import * as cash_basis from './modules/cash_basis';
|
|
5
|
+
import * as checklist from './modules/checklist';
|
|
5
6
|
import * as checklist_group from './modules/checklist_group';
|
|
6
7
|
import * as checklist_group_item from './modules/checklist_group_item';
|
|
7
8
|
import * as checklist_group_option from './modules/checklist_group_option';
|
|
8
9
|
import * as checklist_model from './modules/checklist_model';
|
|
10
|
+
import * as checklist_reply from './modules/checklist_reply';
|
|
9
11
|
import * as company from './modules/company';
|
|
10
12
|
import * as cost_center from './modules/cost_center';
|
|
11
13
|
import * as cost_sharing from './modules/cost_sharing';
|
|
@@ -53,10 +55,12 @@ export { databaseErrors } from './common/database-errors';
|
|
|
53
55
|
export {
|
|
54
56
|
auth,
|
|
55
57
|
benchmarking,
|
|
58
|
+
checklist,
|
|
56
59
|
checklist_group,
|
|
57
60
|
checklist_group_item,
|
|
58
61
|
checklist_group_option,
|
|
59
62
|
checklist_model,
|
|
63
|
+
checklist_reply,
|
|
60
64
|
cash_basis,
|
|
61
65
|
company,
|
|
62
66
|
cost_center,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ENTITY_COMMON } from '../common/entity';
|
|
2
|
+
|
|
3
|
+
export const name = {
|
|
4
|
+
ptBR: 'Checklist',
|
|
5
|
+
es: 'Checklist'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const fields = {
|
|
9
|
+
...ENTITY_COMMON,
|
|
10
|
+
odometer: {
|
|
11
|
+
ptBR: 'Hodometro',
|
|
12
|
+
es: 'Odometer'
|
|
13
|
+
},
|
|
14
|
+
date: {
|
|
15
|
+
ptBR: 'Data',
|
|
16
|
+
es: 'Fecha'
|
|
17
|
+
},
|
|
18
|
+
fuel_leve: {
|
|
19
|
+
ptBR: 'Nível de Combustível',
|
|
20
|
+
es: 'Nivel de combustible'
|
|
21
|
+
},
|
|
22
|
+
vehicle_id: {
|
|
23
|
+
ptBR: 'Veículo',
|
|
24
|
+
es: 'Vehículo'
|
|
25
|
+
},
|
|
26
|
+
employee_id: {
|
|
27
|
+
ptBR: 'Colaborador',
|
|
28
|
+
es: 'Colaborador'
|
|
29
|
+
},
|
|
30
|
+
checklist_model_id: {
|
|
31
|
+
ptBR: 'Modelo do Checklist',
|
|
32
|
+
es: 'Modelo del Checklist'
|
|
33
|
+
},
|
|
34
|
+
service_order_id: {
|
|
35
|
+
ptBR: 'Ordem de Serviço',
|
|
36
|
+
es: 'Orden de servicio'
|
|
37
|
+
},
|
|
38
|
+
checklist_reply: {
|
|
39
|
+
ptBR: 'Resposta Checklist',
|
|
40
|
+
es: 'Respuesta Checklist'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
@@ -15,4 +15,11 @@ export const fields = {
|
|
|
15
15
|
ptBR: 'Grupos',
|
|
16
16
|
es: 'Grupos'
|
|
17
17
|
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const messages = {
|
|
21
|
+
is_not_allowed_to_exclude: {
|
|
22
|
+
ptBR: 'Não é possível excluir um modelo vinculado ao checklist.',
|
|
23
|
+
es: 'No se puede eliminar una plantilla vinculada al checklist.'
|
|
24
|
+
}
|
|
18
25
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ENTITY_COMMON } from '../common/entity';
|
|
2
|
+
|
|
3
|
+
export const name = {
|
|
4
|
+
ptBR: 'Resposta',
|
|
5
|
+
es: 'Respuesta'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const fields = {
|
|
9
|
+
...ENTITY_COMMON,
|
|
10
|
+
defective: {
|
|
11
|
+
ptBR: 'Defeituoso',
|
|
12
|
+
es: 'Defectuoso'
|
|
13
|
+
},
|
|
14
|
+
observation: {
|
|
15
|
+
ptBR: 'Observação',
|
|
16
|
+
es: 'Observación'
|
|
17
|
+
},
|
|
18
|
+
checklist_id: {
|
|
19
|
+
ptBR: 'Checklist',
|
|
20
|
+
es: 'Checklist'
|
|
21
|
+
},
|
|
22
|
+
checklist_group_item_id: {
|
|
23
|
+
ptBR: 'Item',
|
|
24
|
+
es: 'Item'
|
|
25
|
+
},
|
|
26
|
+
checklist_group_option_id: {
|
|
27
|
+
ptBR: 'Motivo reprovação',
|
|
28
|
+
es: 'Motivo reprobación'
|
|
29
|
+
}
|
|
30
|
+
};
|