Skip to content

Commit

Permalink
Merge pull request #33 from eea/develop
Browse files Browse the repository at this point in the history
Release: Add italian translations
  • Loading branch information
nileshgulia1 authored Oct 6, 2021
2 parents f78b817 + f0428c8 commit 55e1bd5
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 23 deletions.
27 changes: 8 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [3.4.6](https://github.com/eea/volto-accordion-block/compare/3.4.5...3.4.6)

- Italian translations [`#32`](https://github.com/eea/volto-accordion-block/pull/32)
- chore: added italian translations [`54b6f8f`](https://github.com/eea/volto-accordion-block/commit/54b6f8f8d92e5fd02e18c6e2a8cc81b7abef7312)

#### [3.4.5](https://github.com/eea/volto-accordion-block/compare/3.4.4...3.4.5)

> 29 September 2021
- correctly wrap the accordion content into animate-height [`#31`](https://github.com/eea/volto-accordion-block/pull/31)
- cypress: correctly get child [`6154d81`](https://github.com/eea/volto-accordion-block/commit/6154d81341bb0add7b77a13cc79763e0a439462c)
- fix cypress [`b93e174`](https://github.com/eea/volto-accordion-block/commit/b93e17424f0a178d80a10eef6dd86751dda6caef)
- correctly wrap the children into animate-height [`9f1f2eb`](https://github.com/eea/volto-accordion-block/commit/9f1f2eb9f7fc98bf2c6062679343248d830a0189)
Expand Down Expand Up @@ -78,8 +86,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

> 13 May 2021
- [JENKINS] - Auto-release pipeline [`#12`](https://github.com/eea/volto-accordion-block/pull/12)
- [JENKINS] - Update cypress tests [`aedfb80`](https://github.com/eea/volto-accordion-block/commit/aedfb80a8fe8a275fba3617fe96e8c0c09914421)
- Add Makefile in order to easily test this addon [`baa1ea1`](https://github.com/eea/volto-accordion-block/commit/baa1ea1abc0245d688adee69f6dbbb4a7bfbf687)

#### [3.2.1](https://github.com/eea/volto-accordion-block/compare/3.2.0...3.2.1)
Expand All @@ -97,7 +103,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Add support for onInsertBlock with BlockChooser [`0e37fb3`](https://github.com/eea/volto-accordion-block/commit/0e37fb3542be53806017d0611c9239e5cdf94193)
- Revert "Add support for newId returned by onMutateBlock" [`e7d8824`](https://github.com/eea/volto-accordion-block/commit/e7d882455d4478ea8aec952b54b572ae4aca5458)
- commented the use of duplicate useEffect [`f771fb8`](https://github.com/eea/volto-accordion-block/commit/f771fb8701ad58b6fcca785c7e4b042eec5e3b07)
- [JENKINS] - Fix eslint [`426fdc6`](https://github.com/eea/volto-accordion-block/commit/426fdc6f77b21a65650b79e521e815670e080b5c)
- Save data for empty accordion on mount [`f80e728`](https://github.com/eea/volto-accordion-block/commit/f80e728e91ebe16c7ee6966d4b89e8d0fc986fd0)
- Replace group with accordion within class names [`8113731`](https://github.com/eea/volto-accordion-block/commit/8113731fbc770ec8b29346d9d2f97f0d067a6021)
- Add support for newId returned by onMutateBlock [`ffea93a`](https://github.com/eea/volto-accordion-block/commit/ffea93acae2e47c66ffff59d5e4cdc591e1b58b8)
Expand All @@ -117,16 +122,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- use BlocksFrom from volto-core [`#11`](https://github.com/eea/volto-accordion-block/pull/11)
- Release 3.0.0 [`77f096b`](https://github.com/eea/volto-accordion-block/commit/77f096b09660def2fa00ec264c19a93ed4689de5)
- [JENKINS] - Fix cypress for SelectWidget [`2e0a92b`](https://github.com/eea/volto-accordion-block/commit/2e0a92b204f46da4772acc4dbb6cc733bed57d62)
- Cleanup Jenkinsfile DEPENDENCIES [`a3b3ef8`](https://github.com/eea/volto-accordion-block/commit/a3b3ef8c4d4bba72aa0796e1173feec1407d5dae)

#### [2.1.0](https://github.com/eea/volto-accordion-block/compare/2.0.2...2.1.0)

> 28 February 2021
- Release 2.1.0 [`3621835`](https://github.com/eea/volto-accordion-block/commit/362183567df9266604361bc88854e00137d7c5f2)
- Upgrade dependencies to 2.0.0 [`b11eafe`](https://github.com/eea/volto-accordion-block/commit/b11eafe4fe3b9d953a20e19a432d7a633e95f5db)
- Upgrade Jenkins pipeline to use plone/volto-addon-ci [`a3fac68`](https://github.com/eea/volto-accordion-block/commit/a3fac684288100e2a1b3f08a0bac2f45a001bf8b)

#### [2.0.2](https://github.com/eea/volto-accordion-block/compare/2.0.1...2.0.2)

Expand Down Expand Up @@ -157,7 +159,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- accordion settings, non-exclusive, collapse by default [`#9`](https://github.com/eea/volto-accordion-block/pull/9)
- Release 2.0.1 [`207f0ed`](https://github.com/eea/volto-accordion-block/commit/207f0ed6bd6598490b98113bd9b275a8d93e944a)
- [JENKINS] - Upgrade cypress to Volto 10 [`bf1cc7b`](https://github.com/eea/volto-accordion-block/commit/bf1cc7ba721c34248c1c853c7dde55211944c23c)
- adapt to exclusive accordion configs in edit [`61500c0`](https://github.com/eea/volto-accordion-block/commit/61500c08ae7155904ae4d4fcaa6c3b2df3afdc3d)
- option to enable non exclusive panels [`c4cc4a7`](https://github.com/eea/volto-accordion-block/commit/c4cc4a72c1c0d6b8d9d8025137d92062ced87223)
- conventions [`a0f2396`](https://github.com/eea/volto-accordion-block/commit/a0f2396b65e02edaf3ceb4f06d6909df3f32c3b6)
Expand All @@ -172,13 +173,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- edit parent accordion section [`#6`](https://github.com/eea/volto-accordion-block/pull/6)
- Release 2.0.0 [`d3b4143`](https://github.com/eea/volto-accordion-block/commit/d3b414373e0ad0dbfa3f633d6573f13a479e4708)
- Fix heading sizes; Add more cypress tests [`e1430f4`](https://github.com/eea/volto-accordion-block/commit/e1430f4db5d47b0f31ce9ff730494da66d18bc22)
- [JENKINS] - Add cypress integration tests [`8726ab8`](https://github.com/eea/volto-accordion-block/commit/8726ab8c615f709a3cda8820fca5de3d2d9be300)
- remove optional chaining in blockProps [`39741af`](https://github.com/eea/volto-accordion-block/commit/39741aff08a0f551ce10aae68e96dcb22bc61865)
- JENKINS: fix missing deps [`fd18f3a`](https://github.com/eea/volto-accordion-block/commit/fd18f3afc6245cf2f218ec76077cf0814254e67f)
- JENKINS: replace duplicate values with predefined vars [`3630a04`](https://github.com/eea/volto-accordion-block/commit/3630a044de5781161133b60e5165a6b05397a8bb)
- JENKINS: fix useEffect deps [`b7f81f0`](https://github.com/eea/volto-accordion-block/commit/b7f81f060496238a0e018dd7aba40a18aa5478b6)
- JENKINS: fix useEffect deps [`c032943`](https://github.com/eea/volto-accordion-block/commit/c03294383a7e9863c8846f45b20fb51081de119b)
- fix jenkins [`8a7ec73`](https://github.com/eea/volto-accordion-block/commit/8a7ec737be1cec1559bc9dc206147f41c7fb1986)
- Add support DX Layout [`ab50789`](https://github.com/eea/volto-accordion-block/commit/ab50789964e15240061044e0458f269341e58a3f)
- Remove unusied EditBlockWrapper, rename column to panel [`793055b`](https://github.com/eea/volto-accordion-block/commit/793055b5499a7577dea77492a9f512fe7db1da08)
- Cleanup unused icons and panels [`2556218`](https://github.com/eea/volto-accordion-block/commit/25562182acff7b3ced29c9371e5f5adaa10b8504)
Expand All @@ -196,10 +191,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- decorate, stlying edit,View [`dc521e5`](https://github.com/eea/volto-accordion-block/commit/dc521e54cc06c7782c6b1921c7df3a3fc114bcec)
- style: panel title font size [`ba33d9a`](https://github.com/eea/volto-accordion-block/commit/ba33d9ad87271c9aad36ff92945fce58d2e86378)
- styles: background color in panels [`22995fd`](https://github.com/eea/volto-accordion-block/commit/22995fdcb6b8d14aec119baf5f7743349aaaa2a2)
- [JENKINS] - Fix style [`8bc3f4e`](https://github.com/eea/volto-accordion-block/commit/8bc3f4e55fbe833cf926aa65746087c450be460c)
- Restructure add-on [`0fd79ed`](https://github.com/eea/volto-accordion-block/commit/0fd79edfa170a97c50ecfc5bbb3c13538c4c7de7)
- fix z-index of block-toolbar [`5adb193`](https://github.com/eea/volto-accordion-block/commit/5adb193ffa689e85bc958c5c3da6f8baa5a6d700)
- fix console warnings and jenkins [`f0b68f9`](https://github.com/eea/volto-accordion-block/commit/f0b68f96311dad690b5ea461ef00fae74f92e4e3)
- prevent deleting first accordion block child [`f99fd66`](https://github.com/eea/volto-accordion-block/commit/f99fd66fe63bf2f28fe0b8e8ebabee6f9244caa1)
- add new icons for panel chooser [`3ee30e0`](https://github.com/eea/volto-accordion-block/commit/3ee30e0c87b9127584d7d5ffd171d33b9be14a27)

Expand All @@ -211,16 +204,12 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Accordion title using semantic ui Input [`#5`](https://github.com/eea/volto-accordion-block/pull/5)
- Release 1.0.0 [`80d83c1`](https://github.com/eea/volto-accordion-block/commit/80d83c1369cea5cff33c5a51a783b3f0d4a4e96f)
- Update package metadata [`602e871`](https://github.com/eea/volto-accordion-block/commit/602e871ab4b4cc5113fd927aee566722c6e0dddf)
- [JENKINS] - Fix SONAR tags [`9f96a97`](https://github.com/eea/volto-accordion-block/commit/9f96a978298629dcf39ae3d9086a8a9af7ac16c0)
- fix tests: stylelint [`d2ade30`](https://github.com/eea/volto-accordion-block/commit/d2ade3021d298d8dbdf4f087fdf0bc9b5bf72953)
- fix tests: stylelint [`00f503e`](https://github.com/eea/volto-accordion-block/commit/00f503e72429fc6aaa9385fb1a5fea50a0e58573)
- fix tests: remove unsued vars [`5257193`](https://github.com/eea/volto-accordion-block/commit/52571931ab7b7591de22ba9c08efda14b8dd50ff)
- remove unused vars [`5e2c1e9`](https://github.com/eea/volto-accordion-block/commit/5e2c1e990f5ccf9b81f123ff18cacc7769ac696c)
- accordion title, via Input (semantic ui) [`0b2aef7`](https://github.com/eea/volto-accordion-block/commit/0b2aef76dd828ef2e0fc5061023a259d6279c11c)
- [JENKINS] - Fix Sonar Converage [`a70b888`](https://github.com/eea/volto-accordion-block/commit/a70b888fc7fdb31b7d9e9030254861f1de4ccccb)
- [JENKINS] - Add testing pipeline [`f5d443e`](https://github.com/eea/volto-accordion-block/commit/f5d443eb84b767e48bb4ba7fec26cb2acdfca030)
- add accordion title as a slate editor [`38e841d`](https://github.com/eea/volto-accordion-block/commit/38e841d9a1a2d1d6a9d657ed6d611220615cbd40)
- yarn prettier [`afc2d37`](https://github.com/eea/volto-accordion-block/commit/afc2d379490cc4bdd4e2c2296229fac5d549d6a1)
- make title editable [`e3233b0`](https://github.com/eea/volto-accordion-block/commit/e3233b00f3e0e1b0ef240a035d4aca7384a23b3c)

#### 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pipeline {
environment {
GIT_NAME = "volto-accordion-block"
NAMESPACE = "@eeacms"
SONARQUBE_TAGS = "volto.eea.europa.eu,forest.eea.europa.eu,www.eea.europa.eu-ims,climate-energy.eea.europa.eu"
SONARQUBE_TAGS = "volto.eea.europa.eu,forest.eea.europa.eu,www.eea.europa.eu-ims,climate-energy.eea.europa.eu,sustainability.eionet.europa.eu"
DEPENDENCIES = ""
}

Expand Down
4 changes: 4 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ msgstr "Akkordeon"
msgid "Accordion Title size"
msgstr "Akkordeon Schriftgröße Titel"

#: components/manage/Widgets/PanelsWidget
msgid "Add"
msgstr ""

#: components/manage/Blocks/Accordion/Schema
msgid "Allow multiple panels open at a time"
msgstr "Erlaube mehrere Panele zur gleichen Zeit geöffnet zu haben"
Expand Down
69 changes: 69 additions & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-27T19:30:59.079Z\n"
"PO-Revision-Date: 2016-10-22 16:41-0500\n"
"Last-Translator: Italiano <plone-i18n@lists.sf.net>\n"
"Language: it\n"
"Language-Team: Italiano <plone-i18n@lists.sf.net>\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"MIME-Version: 1.0\n"
"Language-Code: de\n"
"Language-Name: Italiano\n"
"Preferred-Encodings: utf-8 latin1\n"
"X-Is-Fallback-For: it it-CH it-IT\n"

#: components/manage/Blocks/Accordion/Schema
msgid "Accordion"
msgstr "Accordion"

#: components/manage/Blocks/Accordion/Schema
msgid "Accordion Title size"
msgstr "Dimensione del titolo"

#: components/manage/Widgets/PanelsWidget
msgid "Add"
msgstr "Aggiungi"

#: components/manage/Blocks/Accordion/Schema
msgid "Allow multiple panels open at a time"
msgstr "Consente di avere più pannelli aperti contemporaneamente"

#: components/manage/Blocks/Accordion/Schema
msgid "Collapsed by default"
msgstr "Collassati di default"

#: components/manage/Blocks/Accordion/Schema
msgid "Friendly name"
msgstr "Titolo dell'elemento"

#: components/manage/Blocks/Accordion/Schema
msgid "Non exclusive"
msgstr "Non esclusivo"

#: components/manage/Blocks/Accordion/Schema
msgid "Style"
msgstr "Stile"

#: components/manage/Blocks/Accordion/Schema
msgid "Title"
msgstr "Titolo"

#: components/manage/Blocks/Accordion/Schema
msgid "Title Icon on the right"
msgstr "Mostra l'icona sulla destra"

#: components/manage/Blocks/Accordion/Schema
msgid "Title size"
msgstr "Dimensione del titolo"

#: components/manage/Blocks/Accordion/EditBlockWrapper
msgid "Unknown Block"
msgstr "Blocco sconosciuto"

#: components/manage/Blocks/Accordion/EditBlockWrapper
msgid "delete"
msgstr "Rimuovi"
7 changes: 6 additions & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2021-09-16T09:40:55.321Z\n"
"POT-Creation-Date: 2021-10-06T09:57:51.150Z\n"
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
"MIME-Version: 1.0\n"
Expand All @@ -23,6 +23,11 @@ msgstr ""
msgid "Accordion Title size"
msgstr ""

#: components/manage/Widgets/PanelsWidget
# defaultMessage: Add
msgid "Add"
msgstr ""

#: components/manage/Blocks/Accordion/Schema
# defaultMessage: Allow multiple panels open at a time
msgid "Allow multiple panels open at a time"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-accordion-block",
"version": "3.4.5",
"version": "3.4.6",
"description": "volto-accordion-block: Volto accordion block",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
11 changes: 10 additions & 1 deletion src/components/manage/Widgets/PanelsWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { v4 as uuid } from 'uuid';
import { omit, without } from 'lodash';
import move from 'lodash-move';
import { useIntl, defineMessages } from 'react-intl';
import { Button } from 'semantic-ui-react';
import { Icon, FormFieldWrapper } from '@plone/volto/components';
import { DragDropList } from '@plone/volto/components';
Expand All @@ -13,6 +14,10 @@ import trashSVG from '@plone/volto/icons/delete.svg';

import './editor.less';

const messages = defineMessages({
add: { id: 'Add', defaultMessage: 'Add' },
});

export function moveItem(formData, source, destination) {
return {
...formData,
Expand All @@ -27,6 +32,7 @@ const empty = () => {
};

const PanelsWidget = (props) => {
const intl = useIntl();
const { fieldSet, value = {}, id, onChange, schema } = props;
const { blocks = {} } = value;
const itemsList = (value.blocks_layout?.items || []).map((id) => [
Expand All @@ -43,7 +49,10 @@ const PanelsWidget = (props) => {
<Button
compact
icon
aria-label={objectSchema.addMessage || `Add ${objectSchema.title}`}
aria-label={
objectSchema.addMessage ||
`${intl.formatMessage(messages.add)} ${objectSchema.title}`
}
onClick={() => {
const [newId, newData] = empty();
onChange(id, {
Expand Down

0 comments on commit 55e1bd5

Please sign in to comment.