@sofit/view-locale 1.8.0 → 1.9.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.
- package/coverage/jest/results.xml +11 -11
- package/dist/translations/common/joi.js +12 -0
- package/dist/translations/index.d.ts +2 -2
- package/dist/translations/index.js +2 -2
- package/dist/translations/modules/sub_system.d.ts +30 -0
- package/dist/translations/modules/sub_system.js +20 -0
- package/lib/translations/common/joi.ts +12 -0
- package/lib/translations/index.ts +4 -4
- package/lib/translations/modules/sub_system.ts +26 -0
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="1.
|
|
2
|
-
<testsuite name="
|
|
3
|
-
<testcase classname="
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="1.756">
|
|
2
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-10-19T19:02:07" time="1.073" 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">
|
|
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.001">
|
|
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="2018-10-19T19:02:07" time="1.071" tests="4">
|
|
13
|
+
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.004">
|
|
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">
|
|
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.001">
|
|
20
20
|
</testcase>
|
|
21
21
|
</testsuite>
|
|
22
22
|
</testsuites>
|
|
@@ -48,5 +48,17 @@ exports.joi = {
|
|
|
48
48
|
'any.empty': {
|
|
49
49
|
ptBR: '{{label}} não permite valores vazios.',
|
|
50
50
|
es: '{{label}} no permite valores vacíos.'
|
|
51
|
+
},
|
|
52
|
+
'string.not-cnpj': {
|
|
53
|
+
ptBR: '{{v}} não é um CNPJ válido para o campo {{label}}.',
|
|
54
|
+
es: '{{v}} no es un CNPJ válido para el campo {{label}}.'
|
|
55
|
+
},
|
|
56
|
+
'string.not-cpf': {
|
|
57
|
+
ptBR: '{{v}} não é um CPF válido para o campo {{label}}.',
|
|
58
|
+
es: '{{v}} no es un CPF válido para el campo {{label}}.'
|
|
59
|
+
},
|
|
60
|
+
'array.includesRequiredUnknowns': {
|
|
61
|
+
ptBR: '{{label}} deve conter, no mínimo, um registro.',
|
|
62
|
+
es: '{{label}} debe contener, como mínimo, un registro.'
|
|
51
63
|
}
|
|
52
64
|
};
|
|
@@ -7,11 +7,11 @@ import * as employee_role from './modules/employee_role';
|
|
|
7
7
|
import * as gate from './modules/gate';
|
|
8
8
|
import * as measurement_unit from './modules/measurement_unit';
|
|
9
9
|
import * as route from './modules/route';
|
|
10
|
+
import * as sub_system from './modules/sub_system';
|
|
10
11
|
import * as subsidiary from './modules/subsidiary';
|
|
11
12
|
import * as supplier from './modules/supplier';
|
|
12
13
|
import * as system from './modules/system';
|
|
13
|
-
import * as vehicle_layout from './modules/vehicle_layout';
|
|
14
14
|
import * as warehouse from './modules/warehouse';
|
|
15
15
|
export { joi } from './common/joi';
|
|
16
16
|
export { databaseErrors } from './common/database-errors';
|
|
17
|
-
export { auth, benchmarking, company, cost_center, customer, employee_role, gate, measurement_unit, route, subsidiary, system,
|
|
17
|
+
export { auth, benchmarking, company, cost_center, customer, employee_role, gate, measurement_unit, route, subsidiary, system, warehouse, sub_system, supplier };
|
|
@@ -25,14 +25,14 @@ const measurement_unit = __importStar(require("./modules/measurement_unit"));
|
|
|
25
25
|
exports.measurement_unit = measurement_unit;
|
|
26
26
|
const route = __importStar(require("./modules/route"));
|
|
27
27
|
exports.route = route;
|
|
28
|
+
const sub_system = __importStar(require("./modules/sub_system"));
|
|
29
|
+
exports.sub_system = sub_system;
|
|
28
30
|
const subsidiary = __importStar(require("./modules/subsidiary"));
|
|
29
31
|
exports.subsidiary = subsidiary;
|
|
30
32
|
const supplier = __importStar(require("./modules/supplier"));
|
|
31
33
|
exports.supplier = supplier;
|
|
32
34
|
const system = __importStar(require("./modules/system"));
|
|
33
35
|
exports.system = system;
|
|
34
|
-
const vehicle_layout = __importStar(require("./modules/vehicle_layout"));
|
|
35
|
-
exports.vehicle_layout = vehicle_layout;
|
|
36
36
|
const warehouse = __importStar(require("./modules/warehouse"));
|
|
37
37
|
exports.warehouse = warehouse;
|
|
38
38
|
var joi_1 = require("./common/joi");
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const name: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const fields: {
|
|
6
|
+
created_by_sofit: {
|
|
7
|
+
ptBR: string;
|
|
8
|
+
es: string;
|
|
9
|
+
};
|
|
10
|
+
in_revision: {
|
|
11
|
+
ptBR: string;
|
|
12
|
+
es: string;
|
|
13
|
+
};
|
|
14
|
+
equivalent_record_id: {
|
|
15
|
+
ptBR: string;
|
|
16
|
+
es: string;
|
|
17
|
+
};
|
|
18
|
+
app_id: {
|
|
19
|
+
ptBR: string;
|
|
20
|
+
es: string;
|
|
21
|
+
};
|
|
22
|
+
name: {
|
|
23
|
+
ptBR: string;
|
|
24
|
+
es: string;
|
|
25
|
+
};
|
|
26
|
+
external_id: {
|
|
27
|
+
ptBR: string;
|
|
28
|
+
es: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const entity_1 = require("../common/entity");
|
|
4
|
+
exports.name = {
|
|
5
|
+
ptBR: 'Sub Sistema',
|
|
6
|
+
es: 'Sub Sistema'
|
|
7
|
+
};
|
|
8
|
+
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { created_by_sofit: {
|
|
9
|
+
ptBR: 'Criado pela Sofit',
|
|
10
|
+
es: 'Creado por Sofit'
|
|
11
|
+
}, in_revision: {
|
|
12
|
+
ptBR: 'Em revisão',
|
|
13
|
+
es: 'En revisión'
|
|
14
|
+
}, equivalent_record_id: {
|
|
15
|
+
ptBR: 'Registro equivalente',
|
|
16
|
+
es: 'Registro equivalente'
|
|
17
|
+
}, app_id: {
|
|
18
|
+
ptBR: 'Chave do Aplicativo',
|
|
19
|
+
es: 'Clave del Aplicativo'
|
|
20
|
+
} });
|
|
@@ -48,5 +48,17 @@ export const joi: ITranslation = {
|
|
|
48
48
|
'any.empty': {
|
|
49
49
|
ptBR: '{{label}} não permite valores vazios.',
|
|
50
50
|
es: '{{label}} no permite valores vacíos.'
|
|
51
|
+
},
|
|
52
|
+
'string.not-cnpj': {
|
|
53
|
+
ptBR: '{{v}} não é um CNPJ válido para o campo {{label}}.',
|
|
54
|
+
es: '{{v}} no es un CNPJ válido para el campo {{label}}.'
|
|
55
|
+
},
|
|
56
|
+
'string.not-cpf': {
|
|
57
|
+
ptBR: '{{v}} não é um CPF válido para o campo {{label}}.',
|
|
58
|
+
es: '{{v}} no es un CPF válido para el campo {{label}}.'
|
|
59
|
+
},
|
|
60
|
+
'array.includesRequiredUnknowns': {
|
|
61
|
+
ptBR: '{{label}} deve conter, no mínimo, um registro.',
|
|
62
|
+
es: '{{label}} debe contener, como mínimo, un registro.'
|
|
51
63
|
}
|
|
52
64
|
};
|
|
@@ -7,10 +7,10 @@ import * as employee_role from './modules/employee_role';
|
|
|
7
7
|
import * as gate from './modules/gate';
|
|
8
8
|
import * as measurement_unit from './modules/measurement_unit';
|
|
9
9
|
import * as route from './modules/route';
|
|
10
|
+
import * as sub_system from './modules/sub_system';
|
|
10
11
|
import * as subsidiary from './modules/subsidiary';
|
|
11
12
|
import * as supplier from './modules/supplier';
|
|
12
13
|
import * as system from './modules/system';
|
|
13
|
-
import * as vehicle_layout from './modules/vehicle_layout';
|
|
14
14
|
import * as warehouse from './modules/warehouse';
|
|
15
15
|
|
|
16
16
|
export { joi } from './common/joi';
|
|
@@ -28,7 +28,7 @@ export {
|
|
|
28
28
|
route,
|
|
29
29
|
subsidiary,
|
|
30
30
|
system,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
warehouse,
|
|
32
|
+
sub_system,
|
|
33
|
+
supplier
|
|
34
34
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ENTITY_COMMON } from '../common/entity';
|
|
2
|
+
|
|
3
|
+
export const name = {
|
|
4
|
+
ptBR: 'Sub Sistema',
|
|
5
|
+
es: 'Sub Sistema'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const fields = {
|
|
9
|
+
...ENTITY_COMMON,
|
|
10
|
+
created_by_sofit: {
|
|
11
|
+
ptBR: 'Criado pela Sofit',
|
|
12
|
+
es: 'Creado por Sofit'
|
|
13
|
+
},
|
|
14
|
+
in_revision: {
|
|
15
|
+
ptBR: 'Em revisão',
|
|
16
|
+
es: 'En revisión'
|
|
17
|
+
},
|
|
18
|
+
equivalent_record_id: {
|
|
19
|
+
ptBR: 'Registro equivalente',
|
|
20
|
+
es: 'Registro equivalente'
|
|
21
|
+
},
|
|
22
|
+
app_id: {
|
|
23
|
+
ptBR: 'Chave do Aplicativo',
|
|
24
|
+
es: 'Clave del Aplicativo'
|
|
25
|
+
}
|
|
26
|
+
};
|