Skip to content

Commit

Permalink
feat(locale): added locale a11y-file-item-status
Browse files Browse the repository at this point in the history
  • Loading branch information
egordidenko committed Aug 29, 2024
1 parent 3cc91e2 commit 44486aa
Show file tree
Hide file tree
Showing 35 changed files with 174 additions and 1 deletion.
5 changes: 4 additions & 1 deletion blocks/FileItem/FileItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,10 @@ export class FileItem extends UploaderBlock {
progressVisible: state === FileItemState.UPLOADING,
isEditable: this.cfg.useCloudImageEditor && this._entry?.getValue('isImage') && this._entry?.getValue('cdnUrl'),
errorText: this._entry.getValue('errors')?.[0]?.message,
ariaLabelStatusFile: `${this._entry?.getValue('fileName')} ${state.description}`,
ariaLabelStatusFile: this.l10n('a11y-file-item-status', {
fileName: this._entry?.getValue('fileName'),
status: this.l10n(state?.description?.toLocaleLowerCase() ?? '').toLocaleLowerCase(),
}),
});
}

Expand Down
5 changes: 5 additions & 0 deletions locales/file-uploader/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'تطبيق فلتر {{name}}',
'a11y-cloud-editor-apply-crop': 'تطبيق عملية {{name}}',
'a11y-cloud-editor-apply-tuning': 'تطبيق ضبط {{name}}',
finished: 'تم الانتهاء',
failed: 'فشل',
uploading: 'جارٍ التحميل',
idle: 'خامل',
'a11y-file-item-status': 'الملف {{fileName}} في حالة {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/az.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': '{{name}} filtrini tətbiq et',
'a11y-cloud-editor-apply-crop': '{{name}} əməliyyatını tətbiq et',
'a11y-cloud-editor-apply-tuning': '{{name}} tənzimləməsini tətbiq et',
finished: 'Bitdi',
failed: 'Uğursuz',
uploading: 'Yüklənir',
idle: 'Boş',
'a11y-file-item-status': '{{fileName}} faylı {{status}} statusundadır',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Aplicar el filtre {{name}}',
'a11y-cloud-editor-apply-crop': "Aplicar l'operació {{name}}",
'a11y-cloud-editor-apply-tuning': "Aplicar l'ajust {{name}}",
finished: 'Acabat',
failed: 'Fallat',
uploading: 'Carregant',
idle: 'Inactiu',
'a11y-file-item-status': 'El fitxer {{fileName}} està en estat {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Použít filtr {{name}}',
'a11y-cloud-editor-apply-crop': 'Použít operaci {{name}}',
'a11y-cloud-editor-apply-tuning': 'Použít ladění {{name}}',
finished: 'Dokončeno',
failed: 'Selhalo',
uploading: 'Nahrává se',
idle: 'Nečinný',
'a11y-file-item-status': 'Soubor {{fileName}} je ve stavu {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/da.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Anvend {{name}} filter',
'a11y-cloud-editor-apply-crop': 'Anvend {{name}} handling',
'a11y-cloud-editor-apply-tuning': 'Anvend {{name}} justering',
finished: 'Afsluttet',
failed: 'Mislykkedes',
uploading: 'Uploader',
idle: 'Inaktiv',
'a11y-file-item-status': 'Filen {{fileName}} er i status {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,9 @@ export default {
'a11y-cloud-editor-apply-filter': '{{name}}-Filter anwenden',
'a11y-cloud-editor-apply-crop': '{{name}}-Operation anwenden',
'a11y-cloud-editor-apply-tuning': '{{name}}-Abstimmung anwenden',
finished: 'Abgeschlossen',
failed: 'Fehlgeschlagen',
uploading: 'Hochladen',
idle: 'Leerlauf',
'a11y-file-item-status': 'Datei {{fileName}} im Status {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Εφαρμογή φίλτρου {{name}}',
'a11y-cloud-editor-apply-crop': 'Εφαρμογή της λειτουργίας {{name}}',
'a11y-cloud-editor-apply-tuning': 'Εφαρμογή της ρύθμισης {{name}}',
finished: 'Ολοκληρώθηκε',
failed: 'Απέτυχε',
uploading: 'Μεταφόρτωση',
idle: 'Αδράνεια',
'a11y-file-item-status': 'Το αρχείο {{fileName}} βρίσκεται στην κατάσταση {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Apply {{name}} filter',
'a11y-cloud-editor-apply-crop': 'Apply {{name}} operation',
'a11y-cloud-editor-apply-tuning': 'Apply {{name}} tuning',
finished: 'Finished',
failed: 'Failed',
uploading: 'Uploading',
idle: 'Idle',
'a11y-file-item-status': 'File {{fileName}} in status {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Aplicar filtro {{name}}',
'a11y-cloud-editor-apply-crop': 'Aplicar operación {{name}}',
'a11y-cloud-editor-apply-tuning': 'Aplicar ajuste {{name}}',
finished: 'Terminado',
failed: 'Fallido',
uploading: 'Subiendo',
idle: 'Inactivo',
'a11y-file-item-status': 'El archivo {{fileName}} está en estado {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/et.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Rakenda filter {{name}}',
'a11y-cloud-editor-apply-crop': 'Rakenda toiming {{name}}',
'a11y-cloud-editor-apply-tuning': 'Rakenda häälestus {{name}}',
finished: 'Valmis',
failed: 'Ebaõnnestunud',
uploading: 'Üleslaadimine',
idle: 'Ootel',
'a11y-file-item-status': 'Fail {{fileName}} on seisundis {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Appliquer le filtre {{name}}',
'a11y-cloud-editor-apply-crop': "Appliquer l'opération {{name}}",
'a11y-cloud-editor-apply-tuning': 'Appliquer le réglage {{name}}',
finished: 'Terminé',
failed: 'Échoué',
uploading: 'Téléchargement',
idle: 'Inactif',
'a11y-file-item-status': 'Le fichier {{fileName}} est en statut {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/he.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'החל מסנן {{name}}',
'a11y-cloud-editor-apply-crop': 'החל פעולה {{name}}',
'a11y-cloud-editor-apply-tuning': 'החל כיוון {{name}}',
finished: 'הושלם',
failed: 'נכשל',
uploading: 'מעלה',
idle: 'בטלה',
'a11y-file-item-status': 'הקובץ {{fileName}} במצב {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/hy.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Կիրառել {{name}} զտիչը',
'a11y-cloud-editor-apply-crop': 'Կիրառել {{name}} գործողությունը',
'a11y-cloud-editor-apply-tuning': 'Կիրառել {{name}} կարգավորումը',
finished: 'Ավարտված',
failed: 'Չհաջողվեց',
uploading: 'Բեռնվում է',
idle: 'Անգործ',
'a11y-file-item-status': 'Ֆայլը {{fileName}} {{status}} կարգավիճակում է',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/is.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Nota {{name}} sía',
'a11y-cloud-editor-apply-crop': 'Nota {{name}} aðgerð',
'a11y-cloud-editor-apply-tuning': 'Nota {{name}} stillingu',
finished: 'Lokið',
failed: 'Mistókst',
uploading: 'Hleður upp',
idle: 'Aðgerðalaus',
'a11y-file-item-status': 'Skráin {{fileName}} er í stöðu {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/it.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Applica filtro {{name}}',
'a11y-cloud-editor-apply-crop': 'Applica operazione {{name}}',
'a11y-cloud-editor-apply-tuning': 'Applica regolazione {{name}}',
finished: 'Completato',
failed: 'Fallito',
uploading: 'Caricamento',
idle: 'Inattivo',
'a11y-file-item-status': 'Il file {{fileName}} è nello stato {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/ja.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': '{{name}} フィルターを適用',
'a11y-cloud-editor-apply-crop': '{{name}} 操作を適用',
'a11y-cloud-editor-apply-tuning': '{{name}} 調整を適用',
finished: '完了',
failed: '失敗',
uploading: 'アップロード中',
idle: 'アイドル',
'a11y-file-item-status': 'ファイル {{fileName}} のステータスは {{status}} です',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/ka.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': '{{name}} ფილტრის გამოყენება',
'a11y-cloud-editor-apply-crop': '{{name}} ოპერაციის გამოყენება',
'a11y-cloud-editor-apply-tuning': '{{name}} რეგულირების გამოყენება',
finished: 'დასრულებული',
failed: 'შეცდომა',
uploading: 'იტვირთება',
idle: 'მოქმედების გარეშე',
'a11y-file-item-status': 'ფაილი {{fileName}} არის მდგომარეობაში {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/kk.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': '{{name}} фильтрін қолдану',
'a11y-cloud-editor-apply-crop': '{{name}} операциясын қолдану',
'a11y-cloud-editor-apply-tuning': '{{name}} тюнингін қолдану',
finished: 'Аяқталды',
failed: 'Сәтсіз аяқталды',
uploading: 'Жүктелуде',
idle: 'Бос',
'a11y-file-item-status': '{{fileName}} файлы {{status}} күйінде',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,9 @@ export default {
'a11y-cloud-editor-apply-filter': '{{name}} 필터 적용',
'a11y-cloud-editor-apply-crop': '{{name}} 작업 적용',
'a11y-cloud-editor-apply-tuning': '{{name}} 튜닝 적용',
finished: '완료됨',
failed: '실패함',
uploading: '업로드 중',
idle: '대기 중',
'a11y-file-item-status': '{{fileName}} 파일이 {{status}} 상태입니다',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/lv.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Lietot filtru {{name}}',
'a11y-cloud-editor-apply-crop': 'Lietot operāciju {{name}}',
'a11y-cloud-editor-apply-tuning': 'Lietot pielāgošanu {{name}}',
finished: 'Pabeigts',
failed: 'Neizdevās',
uploading: 'Augšupielādē',
idle: 'Gaida',
'a11y-file-item-status': 'Fails {{fileName}} ir stāvoklī {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/nb.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Bruk filter {{name}}',
'a11y-cloud-editor-apply-crop': 'Bruk operasjon {{name}}',
'a11y-cloud-editor-apply-tuning': 'Bruk innstilling {{name}}',
finished: 'Fullført',
failed: 'Mislyktes',
uploading: 'Laster opp',
idle: 'Inaktiv',
'a11y-file-item-status': 'Fil {{fileName}} i status {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,9 @@ export default {
'a11y-cloud-editor-apply-filter': '{{name}} filter toepassen',
'a11y-cloud-editor-apply-crop': '{{name}} operatie toepassen',
'a11y-cloud-editor-apply-tuning': '{{name}} afstemming toepassen',
finished: 'Voltooid',
failed: 'Mislukt',
uploading: 'Uploaden',
idle: 'Inactief',
'a11y-file-item-status': 'Bestand {{fileName}} in status {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/pl.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Zastosuj filtr {{name}}',
'a11y-cloud-editor-apply-crop': 'Zastosuj operację {{name}}',
'a11y-cloud-editor-apply-tuning': 'Zastosuj dostrajanie {{name}}',
finished: 'Zakończono',
failed: 'Nie powiodło się',
uploading: 'Przesyłanie',
idle: 'Bezczynny',
'a11y-file-item-status': 'Plik {{fileName}} ma status {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Aplicar filtro {{name}}',
'a11y-cloud-editor-apply-crop': 'Aplicar operação {{name}}',
'a11y-cloud-editor-apply-tuning': 'Aplicar ajuste {{name}}',
finished: 'Concluído',
failed: 'Falhou',
uploading: 'Carregando',
idle: 'Ocioso',
'a11y-file-item-status': 'O arquivo {{fileName}} está no status {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/ro.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Aplică filtrul {{name}}',
'a11y-cloud-editor-apply-crop': 'Aplică operațiunea {{name}}',
'a11y-cloud-editor-apply-tuning': 'Aplică ajustarea {{name}}',
finished: 'Finalizat',
failed: 'Eșuat',
uploading: 'Se încarcă',
idle: 'Inactiv',
'a11y-file-item-status': 'Fișierul {{fileName}} este în starea {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Применить фильтр {{name}}',
'a11y-cloud-editor-apply-crop': 'Применить операцию {{name}}',
'a11y-cloud-editor-apply-tuning': 'Применить настройку {{name}}',
finished: 'Завершено',
failed: 'Не удалось',
uploading: 'Загрузка',
idle: 'Ожидание',
'a11y-file-item-status': 'Файл {{fileName}} находится в статусе {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/sk.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Použiť filter {{name}}',
'a11y-cloud-editor-apply-crop': 'Použiť operáciu {{name}}',
'a11y-cloud-editor-apply-tuning': 'Použiť ladenie {{name}}',
finished: 'Dokončené',
failed: 'Neúspešné',
uploading: 'Nahrávanie',
idle: 'Nečinný',
'a11y-file-item-status': 'Súbor {{fileName}} je v stave {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/sr.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Primeni filter {{name}}',
'a11y-cloud-editor-apply-crop': 'Primeni operaciju {{name}}',
'a11y-cloud-editor-apply-tuning': 'Primeni podešavanje {{name}}',
finished: 'Završeno',
failed: 'Neuspešno',
uploading: 'Otpremanje',
idle: 'Neaktivan',
'a11y-file-item-status': 'Datoteka {{fileName}} je u statusu {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/sv.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Applicera filter {{name}}',
'a11y-cloud-editor-apply-crop': 'Applicera {{name}} operation',
'a11y-cloud-editor-apply-tuning': 'Applicera {{name}} inställning',
finished: 'Slutfört',
failed: 'Misslyckades',
uploading: 'Laddar upp',
idle: 'Overksam',
'a11y-file-item-status': 'Filen {{fileName}} är i status {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': '{{name}} filtresini uygula',
'a11y-cloud-editor-apply-crop': '{{name}} işlemini uygula',
'a11y-cloud-editor-apply-tuning': '{{name}} ayarını uygula',
finished: 'Tamamlandı',
failed: 'Başarısız',
uploading: 'Yükleniyor',
idle: 'Boşta',
'a11y-file-item-status': '{{fileName}} dosyası {{status}} durumunda',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/uk.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Застосувати фільтр {{name}}',
'a11y-cloud-editor-apply-crop': 'Застосувати операцію {{name}}',
'a11y-cloud-editor-apply-tuning': 'Застосувати налаштування {{name}}',
finished: 'Завершено',
failed: 'Не вдалося',
uploading: 'Завантаження',
idle: 'Очікування',
'a11y-file-item-status': 'Файл {{fileName}} у стані {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/vi.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': 'Áp dụng bộ lọc {{name}}',
'a11y-cloud-editor-apply-crop': 'Áp dụng thao tác {{name}}',
'a11y-cloud-editor-apply-tuning': 'Áp dụng điều chỉnh {{name}}',
finished: 'Hoàn thành',
failed: 'Thất bại',
uploading: 'Đang tải lên',
idle: 'Nhàn rỗi',
'a11y-file-item-status': 'Tệp {{fileName}} ở trạng thái {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/zh-TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': '應用 {{name}} 篩選器',
'a11y-cloud-editor-apply-crop': '應用 {{name}} 操作',
'a11y-cloud-editor-apply-tuning': '應用 {{name}} 調整',
finished: '完成',
failed: '失敗',
uploading: '上傳中',
idle: '閒置',
'a11y-file-item-status': '檔案 {{fileName}} 的狀態是 {{status}}',
};
5 changes: 5 additions & 0 deletions locales/file-uploader/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,9 @@ export default {
'a11y-cloud-editor-apply-filter': '应用 {{name}} 过滤器',
'a11y-cloud-editor-apply-crop': '应用 {{name}} 操作',
'a11y-cloud-editor-apply-tuning': '应用 {{name}} 调整',
finished: '已完成',
failed: '失败',
uploading: '上传中',
idle: '空闲',
'a11y-file-item-status': '文件 {{fileName}} 的状态是 {{status}}',
};

0 comments on commit 44486aa

Please sign in to comment.