@sofit/view-locale 1.0.0 → 1.0.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.
@@ -1,20 +1,20 @@
1
- <testsuites name="Sofit view locale tests" tests="8" failures="0" time="3.482">
2
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-08-21T11:21:30" time="1.962" tests="4">
3
- <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.011">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.783">
2
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-08-23T21:20:48" time="1.61" tests="4">
3
+ <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.006">
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>
7
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="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
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-08-21T11:21:30" time="1.998" tests="4">
13
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.01">
12
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-08-23T21:20:48" time="1.593" tests="4">
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.002">
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="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0.001">
17
+ <testcase classname="Joi tests should return translated label message" name="Joi tests should return translated label message" time="0">
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,6 @@
1
+ export declare const messages: {
2
+ forbidden: {
3
+ ptBR: string;
4
+ es: string;
5
+ };
6
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.messages = {
4
+ forbidden: {
5
+ ptBR: 'Você não tem permissão para acessar essa página.',
6
+ es: 'Usted quiso decir Finally Usted no tiene permiso para acceder a esa página. ¿De-Para?'
7
+ }
8
+ };
@@ -1,6 +1,7 @@
1
+ import * as auth from './common/auth';
1
2
  import * as company from './modules/company';
2
3
  import * as gate from './modules/gate';
3
4
  import * as warehouse from './modules/warehouse';
4
5
  export { joi } from './common/joi';
5
6
  export { databaseErrors } from './common/database-errors';
6
- export { gate, company, warehouse };
7
+ export { auth, gate, company, warehouse };
@@ -7,6 +7,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
7
7
  return result;
8
8
  };
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
+ const auth = __importStar(require("./common/auth"));
11
+ exports.auth = auth;
10
12
  const company = __importStar(require("./modules/company"));
11
13
  exports.company = company;
12
14
  const gate = __importStar(require("./modules/gate"));
@@ -0,0 +1,6 @@
1
+ export const messages = {
2
+ forbidden: {
3
+ ptBR: 'Você não tem permissão para acessar essa página.',
4
+ es: 'Usted quiso decir Finally Usted no tiene permiso para acceder a esa página. ¿De-Para?'
5
+ }
6
+ };
@@ -1,3 +1,4 @@
1
+ import * as auth from './common/auth';
1
2
  import * as company from './modules/company';
2
3
  import * as gate from './modules/gate';
3
4
  import * as warehouse from './modules/warehouse';
@@ -6,6 +7,7 @@ export { joi } from './common/joi';
6
7
  export { databaseErrors } from './common/database-errors';
7
8
 
8
9
  export {
10
+ auth,
9
11
  gate,
10
12
  company,
11
13
  warehouse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",