@sofit/view-locale 1.11.0 → 1.12.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.
@@ -1,15 +1,15 @@
1
- <testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.095">
2
- <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-10-30T14:19:55" time="1.265" tests="4">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="1.726">
2
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-10-31T19:23:26" time="1.073" tests="4">
3
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="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
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="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
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
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-10-30T14:19:55" time="1.271" tests="4">
12
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-10-31T19:23:26" time="1.079" tests="4">
13
13
  <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.004">
14
14
  </testcase>
15
15
  <testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0">
@@ -1,2 +1,22 @@
1
- import { ITranslation } from '../translation.interface';
2
- export declare const databaseErrors: ITranslation;
1
+ export declare const databaseErrors: {
2
+ generic: {
3
+ ptBR: string;
4
+ es: string;
5
+ };
6
+ unique_constraint: {
7
+ ptBR: string;
8
+ es: string;
9
+ };
10
+ foreignkey_constraint: {
11
+ ptBR: string;
12
+ es: string;
13
+ };
14
+ cant_delete_related: {
15
+ ptBR: string;
16
+ es: string;
17
+ };
18
+ cant_update_related: {
19
+ ptBR: string;
20
+ es: string;
21
+ };
22
+ };
@@ -12,5 +12,13 @@ exports.databaseErrors = {
12
12
  foreignkey_constraint: {
13
13
  ptBR: 'Houve um erro ao salvar o registro. Um ou mais relacionamentos não foram encontrados.',
14
14
  es: ''
15
+ },
16
+ cant_delete_related: {
17
+ ptBR: 'Não foi possível remover o registro de {{table}}, pois se encontra relacionado a um ou mais registros não removidos.',
18
+ es: 'No se pudo eliminar el registro de {{table}}, ya que está relacionado con uno o más registros no eliminados.'
19
+ },
20
+ cant_update_related: {
21
+ ptBR: 'Não foi possível atualizar o registro, pois o {{field}} informado não existe.',
22
+ es: 'No se pudo actualizar el registro, ya que el {{field}} no existe.'
15
23
  }
16
24
  };
@@ -19,6 +19,10 @@ export declare const fields: {
19
19
  ptBR: string;
20
20
  es: string;
21
21
  };
22
+ system_id: {
23
+ ptBR: string;
24
+ es: string;
25
+ };
22
26
  name: {
23
27
  ptBR: string;
24
28
  es: string;
@@ -17,4 +17,7 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { created_by_sofit: {
17
17
  }, app_id: {
18
18
  ptBR: 'Chave do Aplicativo',
19
19
  es: 'Clave del Aplicativo'
20
+ }, system_id: {
21
+ ptBR: 'Sistema',
22
+ es: 'Sistema'
20
23
  } });
@@ -1,6 +1,4 @@
1
- import { ITranslation } from '../translation.interface';
2
-
3
- export const databaseErrors: ITranslation = {
1
+ export const databaseErrors = {
4
2
  generic: {
5
3
  ptBR: 'Ocorreu um erro ao processar a requisição.',
6
4
  es: 'Se produjo un error al procesar la solicitud.'
@@ -12,5 +10,13 @@ export const databaseErrors: ITranslation = {
12
10
  foreignkey_constraint: {
13
11
  ptBR: 'Houve um erro ao salvar o registro. Um ou mais relacionamentos não foram encontrados.',
14
12
  es: ''
13
+ },
14
+ cant_delete_related: {
15
+ ptBR: 'Não foi possível remover o registro de {{table}}, pois se encontra relacionado a um ou mais registros não removidos.',
16
+ es: 'No se pudo eliminar el registro de {{table}}, ya que está relacionado con uno o más registros no eliminados.'
17
+ },
18
+ cant_update_related: {
19
+ ptBR: 'Não foi possível atualizar o registro, pois o {{field}} informado não existe.',
20
+ es: 'No se pudo actualizar el registro, ya que el {{field}} no existe.'
15
21
  }
16
22
  };
@@ -22,5 +22,9 @@ export const fields = {
22
22
  app_id: {
23
23
  ptBR: 'Chave do Aplicativo',
24
24
  es: 'Clave del Aplicativo'
25
+ },
26
+ system_id: {
27
+ ptBR: 'Sistema',
28
+ es: 'Sistema'
25
29
  }
26
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",