@sofit/view-locale 1.0.1 → 1.1.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 +6 -6
- package/dist/translations/common/benchmarking.d.ts +14 -0
- package/dist/translations/common/benchmarking.js +16 -0
- package/dist/translations/index.d.ts +2 -1
- package/dist/translations/index.js +2 -0
- package/dist/translations/modules/company.d.ts +4 -0
- package/dist/translations/modules/company.js +4 -0
- package/dist/translations/modules/gate.d.ts +4 -0
- package/dist/translations/modules/gate.js +4 -0
- package/dist/translations/modules/warehouse.d.ts +4 -0
- package/dist/translations/modules/warehouse.js +4 -0
- package/lib/translations/common/benchmarking.ts +14 -0
- package/lib/translations/index.ts +3 -1
- package/lib/translations/modules/company.ts +5 -0
- package/lib/translations/modules/gate.ts +5 -0
- package/lib/translations/modules/warehouse.ts +5 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="
|
|
2
|
-
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-
|
|
3
|
-
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="3.074">
|
|
2
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-09-06T19:48:26" time="1.735" tests="4">
|
|
3
|
+
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.007">
|
|
4
4
|
</testcase>
|
|
5
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>
|
|
@@ -9,12 +9,12 @@
|
|
|
9
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="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-
|
|
12
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-09-06T19:48:26" time="1.835" tests="4">
|
|
13
13
|
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.006">
|
|
14
14
|
</testcase>
|
|
15
|
-
<testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0
|
|
15
|
+
<testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
|
|
16
16
|
</testcase>
|
|
17
|
-
<testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0">
|
|
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
19
|
<testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0.001">
|
|
20
20
|
</testcase>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validations = {
|
|
4
|
+
equivalent_record_in_revision: {
|
|
5
|
+
ptBR: 'O registro equivalente selecionado não pode estar em revisão!',
|
|
6
|
+
es: 'El registro equivalente seleccionado no puede estar en revisión!'
|
|
7
|
+
},
|
|
8
|
+
relation_in_revision: {
|
|
9
|
+
ptBR: 'Não é possível salvar o registro com a opção \"Em Revisão\" desmarcada, pois o registro de {{table}}: {{name}} associado a ele ainda está em revisão.',
|
|
10
|
+
es: 'No se puede guardar el registro con la opción \"En Revisión\" desactivada, ya que el registro de {{table}}: {{nombre}} asociado a él todavía está en revisión.'
|
|
11
|
+
},
|
|
12
|
+
cant_set_equivalent_record: {
|
|
13
|
+
ptBR: 'Não é possível atribuir um registro equivalente a esse registro, pois o mesmo está associado a um ou mais registros de {{table}}: {{names}}.',
|
|
14
|
+
es: 'No se puede asignar un registro equivalente a ese registro, ya que está asociado a uno o más registros de {{table}}: {{names}}.'
|
|
15
|
+
}
|
|
16
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as auth from './common/auth';
|
|
2
|
+
import * as benchmarking from './common/benchmarking';
|
|
2
3
|
import * as company from './modules/company';
|
|
3
4
|
import * as gate from './modules/gate';
|
|
4
5
|
import * as warehouse from './modules/warehouse';
|
|
5
6
|
export { joi } from './common/joi';
|
|
6
7
|
export { databaseErrors } from './common/database-errors';
|
|
7
|
-
export { auth,
|
|
8
|
+
export { auth, benchmarking, company, gate, warehouse };
|
|
@@ -9,6 +9,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
const auth = __importStar(require("./common/auth"));
|
|
11
11
|
exports.auth = auth;
|
|
12
|
+
const benchmarking = __importStar(require("./common/benchmarking"));
|
|
13
|
+
exports.benchmarking = benchmarking;
|
|
12
14
|
const company = __importStar(require("./modules/company"));
|
|
13
15
|
exports.company = company;
|
|
14
16
|
const gate = __importStar(require("./modules/gate"));
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const entity_1 = require("../common/entity");
|
|
4
|
+
exports.name = {
|
|
5
|
+
ptBR: 'Empresa',
|
|
6
|
+
es: 'Empresa'
|
|
7
|
+
};
|
|
4
8
|
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { cnpj: {
|
|
5
9
|
ptBR: 'CNPJ/CPF',
|
|
6
10
|
es: 'CNPJ/CPF'
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const entity_1 = require("../common/entity");
|
|
4
|
+
exports.name = {
|
|
5
|
+
ptBR: 'Depósito',
|
|
6
|
+
es: 'Depósito'
|
|
7
|
+
};
|
|
4
8
|
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { subsidiary_id: {
|
|
5
9
|
ptBR: 'Filial',
|
|
6
10
|
es: 'Filial'
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const validations = {
|
|
2
|
+
equivalent_record_in_revision: {
|
|
3
|
+
ptBR: 'O registro equivalente selecionado não pode estar em revisão!',
|
|
4
|
+
es: 'El registro equivalente seleccionado no puede estar en revisión!'
|
|
5
|
+
},
|
|
6
|
+
relation_in_revision: {
|
|
7
|
+
ptBR: 'Não é possível salvar o registro com a opção \"Em Revisão\" desmarcada, pois o registro de {{table}}: {{name}} associado a ele ainda está em revisão.',
|
|
8
|
+
es: 'No se puede guardar el registro con la opción \"En Revisión\" desactivada, ya que el registro de {{table}}: {{nombre}} asociado a él todavía está en revisión.'
|
|
9
|
+
},
|
|
10
|
+
cant_set_equivalent_record: {
|
|
11
|
+
ptBR: 'Não é possível atribuir um registro equivalente a esse registro, pois o mesmo está associado a um ou mais registros de {{table}}: {{names}}.',
|
|
12
|
+
es: 'No se puede asignar un registro equivalente a ese registro, ya que está asociado a uno o más registros de {{table}}: {{names}}.'
|
|
13
|
+
}
|
|
14
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as auth from './common/auth';
|
|
2
|
+
import * as benchmarking from './common/benchmarking';
|
|
2
3
|
import * as company from './modules/company';
|
|
3
4
|
import * as gate from './modules/gate';
|
|
4
5
|
import * as warehouse from './modules/warehouse';
|
|
@@ -8,7 +9,8 @@ export { databaseErrors } from './common/database-errors';
|
|
|
8
9
|
|
|
9
10
|
export {
|
|
10
11
|
auth,
|
|
11
|
-
|
|
12
|
+
benchmarking,
|
|
12
13
|
company,
|
|
14
|
+
gate,
|
|
13
15
|
warehouse
|
|
14
16
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sofit/view-locale",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Traduções do Sofit View",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "jest --config ./jest.config.json",
|
|
9
|
-
"
|
|
9
|
+
"start": "tsc --p ./ --watch",
|
|
10
10
|
"lint": "tslint --project ./",
|
|
11
11
|
"build": "tsc --p ./",
|
|
12
12
|
"postinstall": "[ -f .vscode/commit-msg.js ] && node .vscode/commit-msg.js"
|