@sofit/view-locale 1.17.1 → 1.17.2

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="2.093">
2
- <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-11-30T17:29:20" time="1.318" tests="4">
3
- <testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.004">
1
+ <testsuites name="Sofit view locale tests" tests="8" failures="0" time="1.749">
2
+ <testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2018-12-10T13:46:36" time="1.109" 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.001">
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-30T17:29:20" time="1.292" tests="4">
12
+ <testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2018-12-10T13:46:36" time="1.114" tests="4">
13
13
  <testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.003">
14
14
  </testcase>
15
- <testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
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>
17
- <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
17
+ <testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0.001">
18
18
  </testcase>
19
19
  <testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0">
20
20
  </testcase>
@@ -6,8 +6,8 @@ exports.databaseErrors = {
6
6
  es: 'Se produjo un error al procesar la solicitud.'
7
7
  },
8
8
  unique_constraint: {
9
- ptBR: 'Já existe um {{label}} com valor "{{value}}".',
10
- es: 'Ya existe un {{label}} con valor "{{value}}".'
9
+ ptBR: 'Já existe {{label}} com {{columnName}} de valor: "{{value}}".',
10
+ es: 'Ya existe {{label}} com {{columnName}} de valor: "{{value}}".'
11
11
  },
12
12
  foreignkey_constraint: {
13
13
  ptBR: 'Houve um erro ao salvar o registro. Um ou mais relacionamentos não foram encontrados.',
@@ -33,4 +33,8 @@ export declare const messages: {
33
33
  ptBR: string;
34
34
  es: string;
35
35
  };
36
+ has_postponed_release_notification: {
37
+ ptBR: string;
38
+ es: string;
39
+ };
36
40
  };
@@ -17,11 +17,15 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { content: {
17
17
  } });
18
18
  exports.messages = {
19
19
  has_unpublished_release_notification: {
20
- ptBR: 'Não é possível publicar essa novidade, pois existem uma ou mais novidades ainda não publicadas:<br>{{notifications}}',
21
- es: 'No es posible publicar esa novedad, pues existen una o más novedades aún no publicadas::<br>{{notifications}}'
20
+ ptBR: 'Não é possível publicar essa novidade, pois existem uma ou mais novidades ainda não publicadas: <br>{{notifications}}',
21
+ es: 'No es posible publicar esa novedad, pues existen una o más novedades aún no publicadas: <br>{{notifications}}'
22
22
  },
23
23
  published_release_notification_cannot_be_removed: {
24
24
  ptBR: 'Não é possível remover uma novidade que já foi publicada.',
25
25
  es: 'No se puede quitar una novedad que ya se ha publicado.'
26
+ },
27
+ has_postponed_release_notification: {
28
+ ptBR: 'Não é possível publicar essa novidade, pois existem uma ou mais novidades com data posterior à data informada:<br>{{notifications}}',
29
+ es: 'No hay posibilidad de publicar una nueva publicación, sino que hay más noticias recientes sobre la información de datos: <br>{{notifications}}'
26
30
  }
27
31
  };
@@ -17,13 +17,15 @@ describe('Vehicle locale test', () => {
17
17
 
18
18
  expect(localeptBR.reach(i18n.databaseErrors.unique_constraint, {
19
19
  label: 'label',
20
- value: 'value'
21
- })).toEqual('Já existe um label com valor "value".');
20
+ value: 'value',
21
+ columnName: 'columnName'
22
+ })).toEqual('Já existe label com columnName de valor: "value".');
22
23
 
23
24
  expect(localeES.reach(i18n.databaseErrors.unique_constraint, {
24
25
  label: 'label2',
25
- value: 'value2'
26
- })).toEqual('Ya existe un label2 con valor "value2".');
26
+ value: 'value2',
27
+ columnName: 'columnName2'
28
+ })).toEqual('Ya existe label2 com columnName2 de valor: "value2".');
27
29
  });
28
30
 
29
31
  it('Should get translations with raw', () => {
@@ -38,12 +40,14 @@ describe('Vehicle locale test', () => {
38
40
 
39
41
  expect(localeptBR.raw('databaseErrors.unique_constraint', {
40
42
  label: 'label',
41
- value: 'value'
42
- })).toEqual('Já existe um label com valor "value".');
43
+ value: 'value',
44
+ columnName: 'columnName'
45
+ })).toEqual('Já existe label com columnName de valor: "value".');
43
46
 
44
47
  expect(localeES.raw('databaseErrors.unique_constraint', {
45
48
  label: 'label2',
46
- value: 'value2'
47
- })).toEqual('Ya existe un label2 con valor "value2".');
49
+ value: 'value2',
50
+ columnName: 'columnName2'
51
+ })).toEqual('Ya existe label2 com columnName2 de valor: "value2".');
48
52
  });
49
53
  });
@@ -4,8 +4,8 @@ export const databaseErrors = {
4
4
  es: 'Se produjo un error al procesar la solicitud.'
5
5
  },
6
6
  unique_constraint: {
7
- ptBR: 'Já existe um {{label}} com valor "{{value}}".',
8
- es: 'Ya existe un {{label}} con valor "{{value}}".'
7
+ ptBR: 'Já existe {{label}} com {{columnName}} de valor: "{{value}}".',
8
+ es: 'Ya existe {{label}} com {{columnName}} de valor: "{{value}}".'
9
9
  },
10
10
  foreignkey_constraint: {
11
11
  ptBR: 'Houve um erro ao salvar o registro. Um ou mais relacionamentos não foram encontrados.',
@@ -23,11 +23,15 @@ export const fields = {
23
23
 
24
24
  export const messages = {
25
25
  has_unpublished_release_notification: {
26
- ptBR: 'Não é possível publicar essa novidade, pois existem uma ou mais novidades ainda não publicadas:<br>{{notifications}}',
27
- es: 'No es posible publicar esa novedad, pues existen una o más novedades aún no publicadas::<br>{{notifications}}'
26
+ ptBR: 'Não é possível publicar essa novidade, pois existem uma ou mais novidades ainda não publicadas: <br>{{notifications}}',
27
+ es: 'No es posible publicar esa novedad, pues existen una o más novedades aún no publicadas: <br>{{notifications}}'
28
28
  },
29
29
  published_release_notification_cannot_be_removed: {
30
30
  ptBR: 'Não é possível remover uma novidade que já foi publicada.',
31
31
  es: 'No se puede quitar una novedad que ya se ha publicado.'
32
+ },
33
+ has_postponed_release_notification: {
34
+ ptBR: 'Não é possível publicar essa novidade, pois existem uma ou mais novidades com data posterior à data informada:<br>{{notifications}}',
35
+ es: 'No hay posibilidad de publicar una nueva publicación, sino que hay más noticias recientes sobre la información de datos: <br>{{notifications}}'
32
36
  }
33
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofit/view-locale",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
4
4
  "description": "Traduções do Sofit View",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",