diff --git a/src/components/carousel/carousel.ts b/src/components/carousel/carousel.ts index 00d3abb1d..4f8b06ee3 100644 --- a/src/components/carousel/carousel.ts +++ b/src/components/carousel/carousel.ts @@ -327,7 +327,7 @@ export default class SlCarousel extends ShoelaceElement { 'carousel__pagination-item--active': isActive })}" aria-selected="${isActive ? 'true' : 'false'}" - aria-label="${this.localize.term('goToCarouselSlide', index + 1, pagesCount)}" + aria-label="${this.localize.term('goToSlide', index + 1, pagesCount)}" role="tab" @click="${() => this.goToSlide(index * slidesPerPage)}" > @@ -356,7 +356,7 @@ export default class SlCarousel extends ShoelaceElement { 'carousel__navigation-button--previous': true, 'carousel__navigation-button--disabled': !prevEnabled })}" - aria-label="${this.localize.term('goToCarouselPreviousSlide')}" + aria-label="${this.localize.term('goToPreviousSlide')}" part="navigation-button navigation-button--previous" > @@ -373,7 +373,7 @@ export default class SlCarousel extends ShoelaceElement { 'carousel__navigation-button--next': true, 'carousel__navigation-button--disabled': !nextEnabled })}" - aria-label="${this.localize.term('goToCarouselNextSlide')}" + aria-label="${this.localize.term('nextSlide')}" part="navigation-button navigation-button--next" > diff --git a/src/translations/da.ts b/src/translations/da.ts index dcd16265f..2fdf1700e 100644 --- a/src/translations/da.ts +++ b/src/translations/da.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Luk', copy: 'Kopier', currentValue: 'Nuværende værdi', + goToSlide: (slide, count) => `Gå til dias ${slide} af ${count}`, hidePassword: 'Skjul adgangskode', loading: 'Indlæser', + nextSlide: 'Næste slide', numOptionsSelected: (num: number) => { if (num === 0) return 'Ingen valgt'; if (num === 1) return '1 valgt'; return `${num} valgt`; }, + previousSlide: 'Forrige dias', progress: 'Status', remove: 'Fjern', resize: 'Tilpas størrelse', diff --git a/src/translations/de.ts b/src/translations/de.ts index c588181fa..fd8d98eea 100644 --- a/src/translations/de.ts +++ b/src/translations/de.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Schließen', copy: 'Kopieren', currentValue: 'Aktueller Wert', + goToSlide: (slide, count) => `Gehen Sie zu Folie ${slide} von ${count}`, hidePassword: 'Passwort verbergen', loading: 'Wird geladen', + nextSlide: 'Nächste Folie', numOptionsSelected: num => { if (num === 0) return 'Keine Optionen ausgewählt'; if (num === 1) return '1 Option ausgewählt'; return `${num} Optionen ausgewählt`; }, + previousSlide: 'Vorherige Folie', progress: 'Fortschritt', remove: 'Entfernen', resize: 'Größe ändern', diff --git a/src/translations/en.ts b/src/translations/en.ts index 9b250318c..8999eb228 100644 --- a/src/translations/en.ts +++ b/src/translations/en.ts @@ -10,16 +10,16 @@ const translation: Translation = { close: 'Close', copy: 'Copy', currentValue: 'Current value', - goToCarouselNextSlide: 'Go to next slide in carousel', - goToCarouselPreviousSlide: 'Go to previous slide in carousel', - goToCarouselSlide: (slide, count) => `Go to slide ${slide} of ${count} in carousel`, + goToSlide: (slide, count) => `Go to slide ${slide} of ${count}`, hidePassword: 'Hide password', loading: 'Loading', + nextSlide: 'Next slide', numOptionsSelected: num => { if (num === 0) return 'No options selected'; if (num === 1) return '1 option selected'; return `${num} options selected`; }, + previousSlide: 'Previous slide', progress: 'Progress', remove: 'Remove', resize: 'Resize', diff --git a/src/translations/es.ts b/src/translations/es.ts index f8ae21425..2c8ebb78d 100644 --- a/src/translations/es.ts +++ b/src/translations/es.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Cerrar', copy: 'Copiar', currentValue: 'Valor actual', + goToSlide: (slide, count) => `Ir a la diapositiva ${slide} de ${count}`, hidePassword: 'Ocultar contraseña', loading: 'Cargando', + nextSlide: 'Siguiente diapositiva', numOptionsSelected: num => { if (num === 0) return 'No hay opciones seleccionadas'; if (num === 1) return '1 opción seleccionada'; return `${num} opción seleccionada`; }, + previousSlide: 'Diapositiva anterior', progress: 'Progreso', remove: 'Eliminar', resize: 'Cambiar el tamaño', diff --git a/src/translations/fa.ts b/src/translations/fa.ts index cce1ee623..9f80d118b 100644 --- a/src/translations/fa.ts +++ b/src/translations/fa.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'بستن', copy: 'رونوشت', currentValue: 'مقدار فعلی', + goToSlide: (slide, count) => `رفتن به اسلاید ${slide} از ${count}`, hidePassword: 'پنهان کردن رمز', loading: 'بارگذاری', + nextSlide: 'اسلاید بعدی', numOptionsSelected: num => { if (num === 0) return 'هیچ گزینه ای انتخاب نشده است'; if (num === 1) return '1 گزینه انتخاب شده است'; return `${num} گزینه انتخاب شده است`; }, + previousSlide: 'اسلاید قبلی', progress: 'پیشرفت', remove: 'حذف', resize: 'تغییر اندازه', diff --git a/src/translations/fr.ts b/src/translations/fr.ts index 08184fd6c..c70a04d54 100644 --- a/src/translations/fr.ts +++ b/src/translations/fr.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Fermer', copy: 'Copier', currentValue: 'Valeur actuelle', + goToSlide: (slide, count) => `Aller à la diapositive ${slide} de ${count}`, hidePassword: 'Masquer le mot de passe', loading: 'Chargement', + nextSlide: 'Diapositive suivante', numOptionsSelected: num => { if (num === 0) return 'Aucune option sélectionnée'; if (num === 1) return '1 option sélectionnée'; return `${num} options sélectionnées`; }, + previousSlide: 'Diapositive précédente', progress: 'Progrès', remove: 'Retirer', resize: 'Redimensionner', diff --git a/src/translations/he.ts b/src/translations/he.ts index 9e936600a..3bac53518 100644 --- a/src/translations/he.ts +++ b/src/translations/he.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'סגור', copy: 'העתק', currentValue: 'ערך נוכחי', + goToSlide: (slide, count) => `עבור לשקופית ${slide} של ${count}`, hidePassword: 'הסתר סיסמא', loading: 'טוען', + nextSlide: 'Next slide', numOptionsSelected: num => { if (num === 0) return 'לא נבחרו אפשרויות'; if (num === 1) return 'נבחרה אפשרות אחת'; return `נבחרו ${num} אפשרויות`; }, + previousSlide: 'Previous slide', progress: 'התקדמות', remove: 'לְהַסִיר', resize: 'שנה גודל', diff --git a/src/translations/hu.ts b/src/translations/hu.ts index 0145236b4..76546c107 100644 --- a/src/translations/hu.ts +++ b/src/translations/hu.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Bezárás', copy: 'Másolás', currentValue: 'Aktuális érték', + goToSlide: (slide, count) => `Ugrás a ${count}/${slide}. diára`, hidePassword: 'Jelszó elrejtése', loading: 'Betöltés', + nextSlide: 'Következő dia', numOptionsSelected: num => { if (num === 0) return 'Nincsenek kiválasztva opciók'; if (num === 1) return '1 lehetőség kiválasztva'; return `${num} lehetőség kiválasztva`; }, + previousSlide: 'Előző dia', progress: 'Folyamat', remove: 'Eltávolítás', resize: 'Átméretezés', diff --git a/src/translations/ja.ts b/src/translations/ja.ts index 5183ca5e2..b1996154f 100644 --- a/src/translations/ja.ts +++ b/src/translations/ja.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: '閉じる', copy: 'コピー', currentValue: '現在の価値', + goToSlide: (slide, count) => `${count} 枚中 ${slide} 枚のスライドに移動`, hidePassword: 'パスワードを隠す', loading: '読み込み中', + nextSlide: '次のスライド', numOptionsSelected: num => { if (num === 0) return 'オプションが選択されていません'; if (num === 1) return '1 つのオプションが選択されました'; return `${num} つのオプションが選択されました`; }, + previousSlide: '前のスライド', progress: '進行', remove: '削除', resize: 'サイズ変更', diff --git a/src/translations/nl.ts b/src/translations/nl.ts index b7756a4e3..30798b071 100644 --- a/src/translations/nl.ts +++ b/src/translations/nl.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Sluiten', copy: 'Kopiëren', currentValue: 'Huidige waarde', + goToSlide: (slide, count) => `Ga naar slide ${slide} van ${count}`, hidePassword: 'Verberg wachtwoord', loading: 'Bezig met laden', + nextSlide: 'Volgende dia', numOptionsSelected: num => { if (num === 0) return 'Geen optie geselecteerd'; if (num === 1) return '1 optie geselecteerd'; return `${num} opties geselecteerd`; }, + previousSlide: 'Vorige dia', progress: 'Voortgang', remove: 'Verwijderen', resize: 'Formaat wijzigen', diff --git a/src/translations/pl.ts b/src/translations/pl.ts index 225742215..79d1938d0 100644 --- a/src/translations/pl.ts +++ b/src/translations/pl.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Zamknij', copy: 'Kopiuj', currentValue: 'Aktualna wartość', + goToSlide: (slide, count) => `Przejdź do slajdu ${slide} z ${count}`, hidePassword: 'Ukryj hasło', loading: 'Ładowanie', + nextSlide: 'Następny slajd', numOptionsSelected: num => { if (num === 0) return 'Nie wybrano opcji'; if (num === 1) return 'Wybrano 1 opcję'; return `Wybrano ${num} opcje`; }, + previousSlide: 'Poprzedni slajd', progress: 'Postęp', remove: 'Usunąć', resize: 'Zmień rozmiar', diff --git a/src/translations/pt.ts b/src/translations/pt.ts index 67f4aa6b8..095959420 100644 --- a/src/translations/pt.ts +++ b/src/translations/pt.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Fechar', copy: 'Copiar', currentValue: 'Valor atual', + goToSlide: (slide, count) => `Vá para o slide ${slide} de ${count}`, hidePassword: 'Esconder a senha', loading: 'Carregando', + nextSlide: 'Próximo slide', numOptionsSelected: num => { if (num === 0) return 'Nenhuma opção selecionada'; if (num === 1) return '1 opção selecionada'; return `${num} opções selecionadas`; }, + previousSlide: 'Slide anterior', progress: 'Progresso', remove: 'Remover', resize: 'Mudar o tamanho', diff --git a/src/translations/ru.ts b/src/translations/ru.ts index 5ea12470c..39af667d0 100644 --- a/src/translations/ru.ts +++ b/src/translations/ru.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Закрыть', copy: 'Скопировать', currentValue: 'Текущее значение', + goToSlide: (slide, count) => `Перейти к слайду ${slide} из ${count}`, hidePassword: 'Скрыть пароль', loading: 'Загрузка', + nextSlide: 'Следующий слайд', numOptionsSelected: num => { if (num === 0) return 'выбрано 0 вариантов'; if (num === 1) return 'Выбран 1 вариант'; return `выбрано ${num} варианта`; }, + previousSlide: 'Предыдущий слайд', progress: 'Прогресс', remove: 'Удалить', resize: 'Изменить размер', diff --git a/src/translations/sv.ts b/src/translations/sv.ts index 6d4b56def..343b5b867 100644 --- a/src/translations/sv.ts +++ b/src/translations/sv.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Stäng', copy: 'Kopiera', currentValue: 'Nuvarande värde', + goToSlide: (slide, count) => `Gå till bild ${slide} av ${count}`, hidePassword: 'Dölj lösenord', loading: 'Läser in', + nextSlide: 'Nästa bild', numOptionsSelected: num => { if (num === 0) return 'Inga alternativ har valts'; if (num === 1) return '1 alternativ valt'; return `${num} alternativ valda`; }, + previousSlide: 'Föregående bild', progress: 'Framsteg', remove: 'Ta bort', resize: 'Ändra storlek', diff --git a/src/translations/tr.ts b/src/translations/tr.ts index 6ae184f20..772994738 100644 --- a/src/translations/tr.ts +++ b/src/translations/tr.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: 'Kapat', copy: 'Kopya', currentValue: 'Mevcut değer', + goToSlide: (slide, count) => `${count} slayttan ${slide} slayta gidin`, hidePassword: 'Şifreyi sakla', loading: 'Yükleme', + nextSlide: 'Sonraki slayt', numOptionsSelected: num => { if (num === 0) return 'Hiçbir seçenek seçilmedi'; if (num === 1) return '1 seçenek seçildi'; return `${num} seçenek seçildi`; }, + previousSlide: 'Bir onceki slayt', progress: 'İlerleme', remove: 'Kaldır', resize: 'Yeniden boyutlandır', diff --git a/src/translations/zh-tw.ts b/src/translations/zh-tw.ts index 45d81fd75..c579f78c1 100644 --- a/src/translations/zh-tw.ts +++ b/src/translations/zh-tw.ts @@ -10,13 +10,16 @@ const translation: Translation = { close: '關閉', copy: '複製', currentValue: '當前值', + goToSlide: (slide, count) => `轉到第 ${slide} 張幻燈片,共 ${count} 張`, hidePassword: '隱藏密碼', loading: '載入中', + nextSlide: '下一張幻燈片', numOptionsSelected: num => { if (num === 0) return '未選擇任何項目'; if (num === 1) return '已選擇 1 個項目'; return `${num} 選擇項目`; }, + previousSlide: '上一張幻燈片', progress: '進度', remove: '移除', resize: '調整大小', diff --git a/src/utilities/localize.ts b/src/utilities/localize.ts index 2dd688dd6..e6ef29a05 100644 --- a/src/utilities/localize.ts +++ b/src/utilities/localize.ts @@ -17,9 +17,12 @@ export interface Translation extends DefaultTranslation { close: string; copy: string; currentValue: string; + goToSlide: (slide: number, count: number) => string; hidePassword: string; loading: string; + nextSlide: string; numOptionsSelected: (num: number) => string; + previousSlide: string; progress: string; remove: string; resize: string; @@ -28,11 +31,4 @@ export interface Translation extends DefaultTranslation { selectAColorFromTheScreen: string; showPassword: string; toggleColorFormat: string; - - // - // TODO: update translations for all languages - // - goToCarouselNextSlide?: string; - goToCarouselPreviousSlide?: string; - goToCarouselSlide?: (slide: number, count: number) => string; }