@eeacms/volto-bise-policy 1.2.5 → 1.2.6
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 +4 -3
- package/package.json +1 -1
- package/src/index.js +29 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,12 @@ 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
|
-
### [1.2.
|
|
7
|
+
### [1.2.6](https://github.com/eea/volto-bise-policy/compare/1.2.5...1.2.6) - 17 July 2023
|
|
8
8
|
|
|
9
|
-
#### :
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- fix languages options for N2K section [Claudia Ifrim - [`e9b6090`](https://github.com/eea/volto-bise-policy/commit/e9b609098964755c98c4d2332410ff07bab05a8b)]
|
|
12
|
+
### [1.2.5](https://github.com/eea/volto-bise-policy/compare/1.2.4...1.2.5) - 5 July 2023
|
|
12
13
|
|
|
13
14
|
### [1.2.4](https://github.com/eea/volto-bise-policy/compare/1.2.3...1.2.4) - 4 July 2023
|
|
14
15
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -20,6 +20,34 @@ const customBlocks = [
|
|
|
20
20
|
'navigationBlock',
|
|
21
21
|
];
|
|
22
22
|
|
|
23
|
+
const n2kLanguages = [
|
|
24
|
+
{ name: 'Български', code: 'bg' },
|
|
25
|
+
{ name: 'čeština', code: 'cs' },
|
|
26
|
+
{ name: 'Hrvatski', code: 'hr' },
|
|
27
|
+
{ name: 'dansk', code: 'da' },
|
|
28
|
+
{ name: 'Nederlands', code: 'nl' },
|
|
29
|
+
{ name: 'ελληνικά', code: 'el' },
|
|
30
|
+
{ name: 'English', code: 'en' },
|
|
31
|
+
{ name: 'eesti', code: 'et' },
|
|
32
|
+
{ name: 'Suomi', code: 'fi' },
|
|
33
|
+
{ name: 'Français', code: 'fr' },
|
|
34
|
+
{ name: 'Deutsch', code: 'de' },
|
|
35
|
+
{ name: 'magyar', code: 'hu' },
|
|
36
|
+
{ name: 'Irish', code: 'ga' },
|
|
37
|
+
{ name: 'italiano', code: 'it' },
|
|
38
|
+
{ name: 'Latviešu', code: 'lv' },
|
|
39
|
+
{ name: 'lietuvių', code: 'lt' },
|
|
40
|
+
{ name: 'Malti', code: 'mt' },
|
|
41
|
+
{ name: 'Norsk', code: 'no' },
|
|
42
|
+
{ name: 'polski', code: 'pl' },
|
|
43
|
+
{ name: 'Português', code: 'pt' },
|
|
44
|
+
{ name: 'Română', code: 'ro' },
|
|
45
|
+
{ name: 'slovenčina', code: 'sk' },
|
|
46
|
+
{ name: 'Slovenščina', code: 'sl' },
|
|
47
|
+
{ name: 'Español', code: 'es' },
|
|
48
|
+
{ name: 'Svenska', code: 'sv' },
|
|
49
|
+
];
|
|
50
|
+
|
|
23
51
|
const applyConfig = (config) => {
|
|
24
52
|
// Volto specific settings
|
|
25
53
|
config.settings = {
|
|
@@ -35,6 +63,7 @@ const applyConfig = (config) => {
|
|
|
35
63
|
// EEA customizations
|
|
36
64
|
config.settings.eea = {
|
|
37
65
|
...(config.settings.eea || {}),
|
|
66
|
+
languages: n2kLanguages,
|
|
38
67
|
headerOpts: {
|
|
39
68
|
...(config.settings.eea?.headerOpts || {}),
|
|
40
69
|
logo: biseLogo,
|