mirror of
https://github.com/shoelace-style/shoelace.git
synced 2026-01-12 02:59:13 +00:00
add carousel terms
This commit is contained in:
@@ -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)}"
|
||||
></button>
|
||||
@@ -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"
|
||||
>
|
||||
<slot name="previous-icon">
|
||||
@@ -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"
|
||||
>
|
||||
<slot name="next-icon">
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: 'تغییر اندازه',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: 'שנה גודל',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: 'サイズ変更',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: 'Изменить размер',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: '調整大小',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user