diff --git a/CHANGELOG.md b/CHANGELOG.md index b43518e..acf0c36 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 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.5] - 2024-08-08 ### Fixed 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/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/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 c065f98..2c6e083 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": "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": "ไม่ต้อง" } diff --git a/react/SliderLayout.tsx b/react/SliderLayout.tsx index 2d750e0..d241a3f 100644 --- a/react/SliderLayout.tsx +++ b/react/SliderLayout.tsx @@ -106,6 +106,25 @@ 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" },