@eeacms/volto-eea-website-policy 0.1.1 → 0.2.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/CHANGELOG.md CHANGED
@@ -4,8 +4,21 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [0.2.0](https://github.com/eea/volto-eea-website-policy/compare/0.1.1...0.2.0)
8
+
9
+ - Enable multilingual - refs #146771 [`#4`](https://github.com/eea/volto-eea-website-policy/pull/4)
10
+ - Release 0.2.0 [`4b72206`](https://github.com/eea/volto-eea-website-policy/commit/4b72206675ab13ed81567df590849613581d7f10)
11
+ - Update index.js [`0f5be15`](https://github.com/eea/volto-eea-website-policy/commit/0f5be1553b608f49c9a61bbc69a0f90219260a83)
12
+ - Update index.js [`03dd3b1`](https://github.com/eea/volto-eea-website-policy/commit/03dd3b162d3175df00048339bed4f9a7d097a896)
13
+ - format index.js [`db4481a`](https://github.com/eea/volto-eea-website-policy/commit/db4481aeeba59a769272659f33278c902fc69bec)
14
+ - Update index.js [`dc09886`](https://github.com/eea/volto-eea-website-policy/commit/dc0988640a76a9914381b120f58bb61a9ab1eb39)
15
+ - Added externalRoutes [`b68135b`](https://github.com/eea/volto-eea-website-policy/commit/b68135b013fafa93a41ea602ea2fad30879abe0f)
16
+
7
17
  #### [0.1.1](https://github.com/eea/volto-eea-website-policy/compare/0.1.0...0.1.1)
8
18
 
19
+ > 4 March 2022
20
+
21
+ - Release [`#1`](https://github.com/eea/volto-eea-website-policy/pull/1)
9
22
  - Enable description block by default [`b3d6534`](https://github.com/eea/volto-eea-website-policy/commit/b3d6534a57f7288899c4f59b5cec553370363d8b)
10
23
  - Prepare for first release [`69e36b1`](https://github.com/eea/volto-eea-website-policy/commit/69e36b1c82b75b0917ef3d433581c50cdcf6c341)
11
24
  - Enable working copy support [`7c6269d`](https://github.com/eea/volto-eea-website-policy/commit/7c6269d75df915f39c15e8ed0893cc062601e7a7)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-policy",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "@eeacms/volto-eea-website-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -11,6 +11,7 @@ const applyConfig = (config) => {
11
11
 
12
12
  // Enable Title block
13
13
  config.blocks.blocksConfig.title.restricted = false;
14
+
14
15
  // Enable description block (also for cypress)
15
16
  config.blocks.blocksConfig.description.restricted = false;
16
17
  config.blocks.requiredBlocks = [];
@@ -18,44 +19,18 @@ const applyConfig = (config) => {
18
19
  // Date format for EU
19
20
  config.settings.dateLocale = 'en-gb';
20
21
 
21
- // TODO: Working-copy
22
- // config.settings.hasWorkingCopySupport = true;
23
-
24
- // TODO: Multi-lingual
25
- // config.settings.isMultilingual = true;
26
- // config.settings.defaultLanguage = 'en';
27
- // config.settings.supportedLanguages = [
28
- // 'en', // English
29
- // 'sq', // Albanian
30
- // 'bg', // Bulgarian
31
- // 'bs', // Bosnian
32
- // 'cs', // Czech
33
- // 'hr', // Croatian
34
- // 'da', // Danish
35
- // 'nl', // Dutch
36
- // 'el', // Greek
37
- // 'et', // Estonian
38
- // 'fi', // Finnish
39
- // 'fr', // French
40
- // 'de', // German
41
- // 'hu', // Hungarian
42
- // 'is', // Icelandic
43
- // 'it', // Italian
44
- // 'lv', // Latvian
45
- // 'lt', // Lithuanian
46
- // 'mk', // Macedonian
47
- // 'mt', // Maltese
48
- // 'no', // Norwegian
49
- // 'pl', // Polish
50
- // 'pt', // Portuguese
51
- // 'ro', // Romanian
52
- // 'sh', // Serbian
53
- // 'sk', // Slovak
54
- // 'sl', // Slovenian
55
- // 'es', // Spanish
56
- // 'sv', // Swedish
57
- // 'tr', // Turkish
58
- // ];
22
+ // Working-copy
23
+ config.settings.hasWorkingCopySupport = true;
24
+
25
+ // Multi-lingual
26
+ config.settings.isMultilingual = true;
27
+ config.settings.defaultLanguage =
28
+ config.settings.eea?.defaultLanguage || 'en';
29
+ config.settings.supportedLanguages = config.settings.eea?.languages?.map(
30
+ (item) => item.code,
31
+ ) || ['en'];
32
+
33
+ // Done
59
34
  return config;
60
35
  };
61
36