@sofit/view-locale 1.13.0 → 1.14.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 +7 -7
- package/dist/translations/index.d.ts +2 -1
- package/dist/translations/index.js +2 -0
- package/dist/translations/modules/release_notification.d.ts +36 -0
- package/dist/translations/modules/release_notification.js +27 -0
- package/lib/translations/index.ts +2 -0
- package/lib/translations/modules/release_notification.ts +33 -0
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="1.
|
|
2
|
-
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-11-
|
|
3
|
-
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="1.971">
|
|
2
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-11-14T16:08:23" time="1.241" 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="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
|
-
<testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" 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
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="2018-11-
|
|
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="2018-11-14T16:08:23" time="1.201" tests="4">
|
|
13
|
+
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.005">
|
|
14
14
|
</testcase>
|
|
15
15
|
<testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0">
|
|
16
16
|
</testcase>
|
|
@@ -7,6 +7,7 @@ import * as employee_role from './modules/employee_role';
|
|
|
7
7
|
import * as fine_resource from './modules/fine_resource';
|
|
8
8
|
import * as gate from './modules/gate';
|
|
9
9
|
import * as measurement_unit from './modules/measurement_unit';
|
|
10
|
+
import * as release_notification from './modules/release_notification';
|
|
10
11
|
import * as route from './modules/route';
|
|
11
12
|
import * as sub_system from './modules/sub_system';
|
|
12
13
|
import * as subsidiary from './modules/subsidiary';
|
|
@@ -18,4 +19,4 @@ import * as vehicle_layout from './modules/vehicle_layout';
|
|
|
18
19
|
import * as warehouse from './modules/warehouse';
|
|
19
20
|
export { joi } from './common/joi';
|
|
20
21
|
export { databaseErrors } from './common/database-errors';
|
|
21
|
-
export { auth, benchmarking, company, cost_center, customer, employee_role, fine_resource, gate, measurement_unit, route, subsidiary, system, warehouse, sub_system, supplier, vehicle_layout, vehicle_brand, tire_drawing };
|
|
22
|
+
export { auth, benchmarking, company, cost_center, customer, employee_role, fine_resource, gate, measurement_unit, release_notification, route, subsidiary, system, warehouse, sub_system, supplier, vehicle_layout, vehicle_brand, tire_drawing };
|
|
@@ -25,6 +25,8 @@ const gate = __importStar(require("./modules/gate"));
|
|
|
25
25
|
exports.gate = gate;
|
|
26
26
|
const measurement_unit = __importStar(require("./modules/measurement_unit"));
|
|
27
27
|
exports.measurement_unit = measurement_unit;
|
|
28
|
+
const release_notification = __importStar(require("./modules/release_notification"));
|
|
29
|
+
exports.release_notification = release_notification;
|
|
28
30
|
const route = __importStar(require("./modules/route"));
|
|
29
31
|
exports.route = route;
|
|
30
32
|
const sub_system = __importStar(require("./modules/sub_system"));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const name: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const fields: {
|
|
6
|
+
content: {
|
|
7
|
+
ptBR: string;
|
|
8
|
+
es: string;
|
|
9
|
+
};
|
|
10
|
+
publish_date: {
|
|
11
|
+
ptBR: string;
|
|
12
|
+
es: string;
|
|
13
|
+
};
|
|
14
|
+
publish: {
|
|
15
|
+
ptBR: string;
|
|
16
|
+
es: string;
|
|
17
|
+
};
|
|
18
|
+
name: {
|
|
19
|
+
ptBR: string;
|
|
20
|
+
es: string;
|
|
21
|
+
};
|
|
22
|
+
external_id: {
|
|
23
|
+
ptBR: string;
|
|
24
|
+
es: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export declare const messages: {
|
|
28
|
+
is_publishing_without_publish_date: {
|
|
29
|
+
ptBR: string;
|
|
30
|
+
es: string;
|
|
31
|
+
};
|
|
32
|
+
has_unpublished_release_notification: {
|
|
33
|
+
ptBR: string;
|
|
34
|
+
es: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const entity_1 = require("../common/entity");
|
|
4
|
+
exports.name = {
|
|
5
|
+
ptBR: 'Novidade',
|
|
6
|
+
es: 'Novedad'
|
|
7
|
+
};
|
|
8
|
+
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { content: {
|
|
9
|
+
ptBR: 'Conteúdo',
|
|
10
|
+
es: 'Contenido'
|
|
11
|
+
}, publish_date: {
|
|
12
|
+
ptBR: 'Data de publicação',
|
|
13
|
+
es: 'Fecha de publicación'
|
|
14
|
+
}, publish: {
|
|
15
|
+
ptBR: 'Publicar',
|
|
16
|
+
es: 'Publicar'
|
|
17
|
+
} });
|
|
18
|
+
exports.messages = {
|
|
19
|
+
is_publishing_without_publish_date: {
|
|
20
|
+
ptBR: 'Não é possível publicar uma novidade sem data de publicação.',
|
|
21
|
+
es: 'No es posible publicar una novedad sin fecha de publicación.'
|
|
22
|
+
},
|
|
23
|
+
has_unpublished_release_notification: {
|
|
24
|
+
ptBR: 'Não é possível publicar essa novidade, pois existem uma ou mais novidades ainda não publicadas.',
|
|
25
|
+
es: 'No es posible publicar esa novedad, pues existen una o más novedades aún no publicadas.'
|
|
26
|
+
}
|
|
27
|
+
};
|
|
@@ -7,6 +7,7 @@ import * as employee_role from './modules/employee_role';
|
|
|
7
7
|
import * as fine_resource from './modules/fine_resource';
|
|
8
8
|
import * as gate from './modules/gate';
|
|
9
9
|
import * as measurement_unit from './modules/measurement_unit';
|
|
10
|
+
import * as release_notification from './modules/release_notification';
|
|
10
11
|
import * as route from './modules/route';
|
|
11
12
|
import * as sub_system from './modules/sub_system';
|
|
12
13
|
import * as subsidiary from './modules/subsidiary';
|
|
@@ -30,6 +31,7 @@ export {
|
|
|
30
31
|
fine_resource,
|
|
31
32
|
gate,
|
|
32
33
|
measurement_unit,
|
|
34
|
+
release_notification,
|
|
33
35
|
route,
|
|
34
36
|
subsidiary,
|
|
35
37
|
system,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ENTITY_COMMON } from '../common/entity';
|
|
2
|
+
|
|
3
|
+
export const name = {
|
|
4
|
+
ptBR: 'Novidade',
|
|
5
|
+
es: 'Novedad'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const fields = {
|
|
9
|
+
...ENTITY_COMMON,
|
|
10
|
+
content: {
|
|
11
|
+
ptBR: 'Conteúdo',
|
|
12
|
+
es: 'Contenido'
|
|
13
|
+
},
|
|
14
|
+
publish_date: {
|
|
15
|
+
ptBR: 'Data de publicação',
|
|
16
|
+
es: 'Fecha de publicación'
|
|
17
|
+
},
|
|
18
|
+
publish: {
|
|
19
|
+
ptBR: 'Publicar',
|
|
20
|
+
es: 'Publicar'
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const messages = {
|
|
25
|
+
is_publishing_without_publish_date: {
|
|
26
|
+
ptBR: 'Não é possível publicar uma novidade sem data de publicação.',
|
|
27
|
+
es: 'No es posible publicar una novedad sin fecha de publicación.'
|
|
28
|
+
},
|
|
29
|
+
has_unpublished_release_notification: {
|
|
30
|
+
ptBR: 'Não é possível publicar essa novidade, pois existem uma ou mais novidades ainda não publicadas.',
|
|
31
|
+
es: 'No es posible publicar esa novedad, pues existen una o más novedades aún no publicadas.'
|
|
32
|
+
}
|
|
33
|
+
};
|