From 870a9cc43d0ebc3b69e9a09cd0499d5cb4516238 Mon Sep 17 00:00:00 2001 From: Natanael Fernandes Date: Tue, 23 May 2023 17:11:09 -0300 Subject: [PATCH 1/7] feat: set up enumNames on schema and add pt/en translations --- messages/en.json | 6 +++++- messages/pt.json | 6 +++++- react/SliderLayout.tsx | 16 ++++++++++++++++ store/contentSchemas.json | 12 ++++++++++++ 4 files changed, 38 insertions(+), 2 deletions(-) diff --git a/messages/en.json b/messages/en.json index 727ecc5..bde7b85 100644 --- a/messages/en.json +++ b/messages/en.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "Show pagination dots", "admin/editor.slider-layout.usePagination": "Use pagination", "admin/editor.slider-layout.sliderFullWidth": "Full width", - "admin/editor.slider-layout.sliderFullWidthDescription": "Controls whether the slides should fill the full available width, making the arrows appear on top of them." + "admin/editor.slider-layout.sliderFullWidthDescription": "Controls whether the slides should fill the full available width, making the arrows appear on top of them.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Mobile Only", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Desktop Only", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Always", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Never" } diff --git a/messages/pt.json b/messages/pt.json index c065f98..7c0c4ce 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "Mostrar indicadores de paginação", "admin/editor.slider-layout.usePagination": "Usar paginação", "admin/editor.slider-layout.sliderFullWidth": "Largura completa", - "admin/editor.slider-layout.sliderFullWidthDescription": "Controla se os slides devem ou não ocupar toda a largura disponível, fazendo as setas aparecerem sobre eles." + "admin/editor.slider-layout.sliderFullWidthDescription": "Controla se os slides devem ou não ocupar toda a largura disponível, fazendo as setas aparecerem sobre eles.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Apenas Mobile", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Apenas Desktop", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Sempre", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Nunca" } diff --git a/react/SliderLayout.tsx b/react/SliderLayout.tsx index 2d750e0..dcbc8df 100644 --- a/react/SliderLayout.tsx +++ b/react/SliderLayout.tsx @@ -106,6 +106,22 @@ const messages = defineMessages({ id: 'admin/editor.slider-layout.sliderFullWidthDescription', defaultMessage: '', }, + sliderNavigationAndPaginationPropertyMobileOnly: { + id: 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly', + defaultMessage: '', + }, + sliderNavigationAndPaginationPropertyDesktopOnly: { + id: 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly', + defaultMessage: '', + }, + sliderNavigationAndPaginationPropertyAlways: { + id: 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways', + defaultMessage: '', + }, + sliderNavigationAndPaginationPropertyNever: { + id: 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever', + defaultMessage: '', + }, }) SliderLayout.schema = { diff --git a/store/contentSchemas.json b/store/contentSchemas.json index 1f3b3ab..57dcbdf 100644 --- a/store/contentSchemas.json +++ b/store/contentSchemas.json @@ -11,12 +11,24 @@ "showNavigationArrows": { "default": "always", "enum": ["mobileOnly", "desktopOnly", "always", "never"], + "enumNames": [ + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever" + ], "title": "admin/editor.slider-layout.showNavigation", "type": "string" }, "showPaginationDots": { "default": "always", "enum": ["mobileOnly", "desktopOnly", "always", "never"], + "enumNames": [ + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever" + ], "title": "admin/editor.slider-layout.showPaginationDots", "type": "string" }, From 620054a14ba60fce11536775f51a85fe0ba44bef Mon Sep 17 00:00:00 2001 From: Natanael Fernandes Date: Tue, 23 May 2023 17:21:12 -0300 Subject: [PATCH 2/7] add changelog entry --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 161a20c..a92c7b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Addedd +- Added translation for the Dropdown options on props `showNavigationArrows` and `showPaginationDots` + ## [0.24.3] - 2023-05-08 ### Fixed From 0ee3fe13e24bc25a979d638a1494ee5535ed2f2e Mon Sep 17 00:00:00 2001 From: Natanael Fernandes Date: Tue, 23 May 2023 17:28:23 -0300 Subject: [PATCH 3/7] lint fixes --- react/SliderLayout.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/react/SliderLayout.tsx b/react/SliderLayout.tsx index dcbc8df..d241a3f 100644 --- a/react/SliderLayout.tsx +++ b/react/SliderLayout.tsx @@ -107,15 +107,18 @@ const messages = defineMessages({ defaultMessage: '', }, sliderNavigationAndPaginationPropertyMobileOnly: { - id: 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly', + id: + 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly', defaultMessage: '', }, sliderNavigationAndPaginationPropertyDesktopOnly: { - id: 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly', + id: + 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly', defaultMessage: '', }, sliderNavigationAndPaginationPropertyAlways: { - id: 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways', + id: + 'admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways', defaultMessage: '', }, sliderNavigationAndPaginationPropertyNever: { From e1b10d75ee42eac545536001ed9d94099fffb0a2 Mon Sep 17 00:00:00 2001 From: Natanael Fernandes Toscano Araujo <36740164+natanfernandes@users.noreply.github.com> Date: Wed, 24 May 2023 15:46:03 -0300 Subject: [PATCH 4/7] Update CHANGELOG.md Co-authored-by: Filipe W. Lima <381395+filipewl@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a92c7b4..12eceae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -### Addedd +### Added - Added translation for the Dropdown options on props `showNavigationArrows` and `showPaginationDots` ## [0.24.3] - 2023-05-08 From 6b1e6da41da429a686c31235f9a6c6034b196326 Mon Sep 17 00:00:00 2001 From: georgelimadev Date: Fri, 9 Jun 2023 08:54:29 -0300 Subject: [PATCH 5/7] Adding l18n for several languages --- CHANGELOG.md | 4 ++++ messages/bg-BG.json | 6 +++++- messages/de-DE.json | 6 +++++- messages/es.json | 6 +++++- messages/fr-FR.json | 6 +++++- messages/it-IT.json | 6 +++++- messages/ko-KR.json | 6 +++++- messages/nl-NL.json | 6 +++++- messages/pt.json | 4 ++-- messages/ro-RO.json | 6 +++++- messages/th-TH.json | 6 +++++- 11 files changed, 51 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12eceae..47bf9e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added + +- Added translations for Bulgarian, German, Spanish, French, Italian, Korean, Dutch, Portuguese, Romanian and Thai. + ### Added - Added translation for the Dropdown options on props `showNavigationArrows` and `showPaginationDots` diff --git a/messages/bg-BG.json b/messages/bg-BG.json index 84dac24..5d9793f 100644 --- a/messages/bg-BG.json +++ b/messages/bg-BG.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "Показване на точки за страниране", "admin/editor.slider-layout.usePagination": "Използване на страниране", "admin/editor.slider-layout.sliderFullWidth": "Пълна ширина", - "admin/editor.slider-layout.sliderFullWidthDescription": "Контролира дали слайдовете да изпълват цялата налична ширина, а стрелките да се виждат върху тях." + "admin/editor.slider-layout.sliderFullWidthDescription": "Контролира дали слайдовете да изпълват цялата налична ширина, а стрелките да се виждат върху тях.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Само за мобилни устройства", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Само за настолен компютър", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Винаги", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Никога" } diff --git a/messages/de-DE.json b/messages/de-DE.json index 6e933f8..8f53a66 100644 --- a/messages/de-DE.json +++ b/messages/de-DE.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "Seitenumbruch-Punkte anzeigen", "admin/editor.slider-layout.usePagination": "Seitennavigation verwenden", "admin/editor.slider-layout.sliderFullWidth": "Volle Breite", - "admin/editor.slider-layout.sliderFullWidthDescription": "Legt fest, ob die Diapositive die volle verfügbare Breite füllen sollen, so dass die Pfeile oben auf ihnen erscheinen." + "admin/editor.slider-layout.sliderFullWidthDescription": "Legt fest, ob die Diapositive die volle verfügbare Breite füllen sollen, so dass die Pfeile oben auf ihnen erscheinen.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Nur mobil", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Nur Desktop", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Immer", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Niemals" } diff --git a/messages/es.json b/messages/es.json index e9878c2..8831940 100644 --- a/messages/es.json +++ b/messages/es.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "Mostrar puntos de paginación", "admin/editor.slider-layout.usePagination": "Usar paginación", "admin/editor.slider-layout.sliderFullWidth": "Anchura completa", - "admin/editor.slider-layout.sliderFullWidthDescription": "Controla si las diapositivas deben ocupar la anchura completa y hacer que las flechas desaparezcan encima de ellas." + "admin/editor.slider-layout.sliderFullWidthDescription": "Controla si las diapositivas deben ocupar la anchura completa y hacer que las flechas desaparezcan encima de ellas.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Solo móvil", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Solo escritorio", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Siempre", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Nunca" } diff --git a/messages/fr-FR.json b/messages/fr-FR.json index 5d86d80..65fdb57 100644 --- a/messages/fr-FR.json +++ b/messages/fr-FR.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "Afficher les points de pagination", "admin/editor.slider-layout.usePagination": "Utiliser la pagination", "admin/editor.slider-layout.sliderFullWidth": "Largeur totale", - "admin/editor.slider-layout.sliderFullWidthDescription": "Vérifie si les diapos doivent ou non remplir toute la largeur disponible, en faisant apparaître les flèches au-dessus d’elles." + "admin/editor.slider-layout.sliderFullWidthDescription": "Vérifie si les diapos doivent ou non remplir toute la largeur disponible, en faisant apparaître les flèches au-dessus d’elles.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Mobile uniquement", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Bureau uniquement", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Toujours", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Jamais" } diff --git a/messages/it-IT.json b/messages/it-IT.json index 01dd184..17184f3 100644 --- a/messages/it-IT.json +++ b/messages/it-IT.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "Mostra punti di impaginazione", "admin/editor.slider-layout.usePagination": "Utilizza impaginazione", "admin/editor.slider-layout.sliderFullWidth": "Larghezza massima", - "admin/editor.slider-layout.sliderFullWidthDescription": "Controlla se le diapositive debbano occupare o meno l'intera larghezza disponibile, facendo in modo che le frecce appaiano su di esse." + "admin/editor.slider-layout.sliderFullWidthDescription": "Controlla se le diapositive debbano occupare o meno l'intera larghezza disponibile, facendo in modo che le frecce appaiano su di esse.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Solo dispositivi mobili", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Solo desktop", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Sempre", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Mai" } diff --git a/messages/ko-KR.json b/messages/ko-KR.json index 46138b9..278a390 100644 --- a/messages/ko-KR.json +++ b/messages/ko-KR.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "페이지 번호 점 표시", "admin/editor.slider-layout.usePagination": "페이지 번호 사용", "admin/editor.slider-layout.sliderFullWidth": "전체 넓이", - "admin/editor.slider-layout.sliderFullWidthDescription": "슬라이드가 사용 가능한 전체 너비를 채워, 화살표가 맨 위에 나타나는지 여부를 제어합니다." + "admin/editor.slider-layout.sliderFullWidthDescription": "슬라이드가 사용 가능한 전체 너비를 채워, 화살표가 맨 위에 나타나는지 여부를 제어합니다.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "모바일 전용", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "데스크톱 전용", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "항상", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "안 함" } diff --git a/messages/nl-NL.json b/messages/nl-NL.json index af804bb..1a1a363 100644 --- a/messages/nl-NL.json +++ b/messages/nl-NL.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "Toon pagineringstippen", "admin/editor.slider-layout.usePagination": "Gebruik paginering", "admin/editor.slider-layout.sliderFullWidth": "Volledige breedte", - "admin/editor.slider-layout.sliderFullWidthDescription": "Bepaalt of de dia's de volledige beschikbare breedte moeten vullen, waardoor de pijlen erboven verschijnen." + "admin/editor.slider-layout.sliderFullWidthDescription": "Bepaalt of de dia's de volledige beschikbare breedte moeten vullen, waardoor de pijlen erboven verschijnen.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Alleen mobiel", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Alleen desktop", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Altijd", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Nooit" } diff --git a/messages/pt.json b/messages/pt.json index 7c0c4ce..2c6e083 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -6,8 +6,8 @@ "admin/editor.slider-layout.usePagination": "Usar paginação", "admin/editor.slider-layout.sliderFullWidth": "Largura completa", "admin/editor.slider-layout.sliderFullWidthDescription": "Controla se os slides devem ou não ocupar toda a largura disponível, fazendo as setas aparecerem sobre eles.", - "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Apenas Mobile", - "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Apenas Desktop", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Somente dispositivos móveis", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Somente desktop", "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Sempre", "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Nunca" } diff --git a/messages/ro-RO.json b/messages/ro-RO.json index 9454f10..994486c 100644 --- a/messages/ro-RO.json +++ b/messages/ro-RO.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "Arată punctele de paginație", "admin/editor.slider-layout.usePagination": "Folosește paginația", "admin/editor.slider-layout.sliderFullWidth": "Lățime completă", - "admin/editor.slider-layout.sliderFullWidthDescription": "Controlează dacă slide-urile trebuie sau nu să ocupe întreaga lățime disponibilă, făcând ca săgețile să apară deasupra lor." + "admin/editor.slider-layout.sliderFullWidthDescription": "Controlează dacă slide-urile trebuie sau nu să ocupe întreaga lățime disponibilă, făcând ca săgețile să apară deasupra lor.", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "Doar pentru mobil", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "Doar pentru desktop", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "Mereu", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "Niciodată" } diff --git a/messages/th-TH.json b/messages/th-TH.json index b3b10d1..374191b 100644 --- a/messages/th-TH.json +++ b/messages/th-TH.json @@ -5,5 +5,9 @@ "admin/editor.slider-layout.showPaginationDots": "แสดงจุดประการแบ่งหน้า", "admin/editor.slider-layout.usePagination": "ใช้การแบ่งหน้า", "admin/editor.slider-layout.sliderFullWidth": "ความกว้างเต็มที่", - "admin/editor.slider-layout.sliderFullWidthDescription": "ควบคุมว่าควรแสดงสไลด์เต็มความกว้างที่ใช้ได้หรือไม่ โดยแสดงลูกศรที่ด้านบนสุดของสไลด์" + "admin/editor.slider-layout.sliderFullWidthDescription": "ควบคุมว่าควรแสดงสไลด์เต็มความกว้างที่ใช้ได้หรือไม่ โดยแสดงลูกศรที่ด้านบนสุดของสไลด์", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyMobileOnly": "เฉพาะอุปกรณ์เคลื่อนที่", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyDesktopOnly": "เฉพาะเดสก์ท็อป", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyAlways": "ทุกครั้ง", + "admin/editor.slider-layout.sliderNavigationAndPaginationPropertyNever": "ไม่ต้อง" } From 2e934155263bb04765ba6f1b12c7151e2c57dcbc Mon Sep 17 00:00:00 2001 From: "George B. de Lima" <106821144+GeorgeLimaDev@users.noreply.github.com> Date: Fri, 9 Jun 2023 09:21:04 -0300 Subject: [PATCH 6/7] Update CHANGELOG.md Co-authored-by: Camila Vieira Coutinho <71647659+camilavcoutinho@users.noreply.github.com> --- CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47bf9e2..12eceae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -### Added - -- Added translations for Bulgarian, German, Spanish, French, Italian, Korean, Dutch, Portuguese, Romanian and Thai. - ### Added - Added translation for the Dropdown options on props `showNavigationArrows` and `showPaginationDots` From 1fb78a81f4d49d78eb5fc1a85c5e2d1d2825dd03 Mon Sep 17 00:00:00 2001 From: "George B. de Lima" <106821144+GeorgeLimaDev@users.noreply.github.com> Date: Fri, 9 Jun 2023 09:21:14 -0300 Subject: [PATCH 7/7] Update CHANGELOG.md Co-authored-by: Camila Vieira Coutinho <71647659+camilavcoutinho@users.noreply.github.com> --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12eceae..63488e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - Added translation for the Dropdown options on props `showNavigationArrows` and `showPaginationDots` +- Translations for Bulgarian, German, Spanish, French, Italian, Korean, Dutch, Portuguese, Romanian and Thai. ## [0.24.3] - 2023-05-08