mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +00:00
feat(places): bulk "change category" from the selection toolbar
Closes the UI half of #1168: in the Places selection mode, a new tag button before delete opens a category picker that applies one category (or "No category") to every selected place in a single request. Adds a REST /places/bulk-update endpoint reusing updatePlacesMany, an offline-aware repo + store action that patches both the place pool and the day-assignment projections, undo grouped by each place's prior category, and the i18n keys across all locales.
This commit is contained in:
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'اختر نوعًا واحدًا على الأقل.',
|
||||
'places.selectionCount': '{count} محدد',
|
||||
'places.deleteSelected': 'حذف المحدد',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': 'تم استيراد {count} مكان من KMZ/KML',
|
||||
'places.urlResolved': 'تم استيراد المكان من الرابط',
|
||||
'places.importList': 'استيراد قائمة',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'تم تحسين المسار',
|
||||
'undo.deletePlace': 'تم حذف المكان',
|
||||
'undo.deletePlaces': 'تم حذف الأماكن',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'تم نقل المكان إلى يوم آخر',
|
||||
'undo.lock': 'تم تبديل قفل المكان',
|
||||
'undo.importGpx': 'استيراد GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Selecione pelo menos um tipo.',
|
||||
'places.selectionCount': '{count} selecionado(s)',
|
||||
'places.deleteSelected': 'Excluir seleção',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} lugares importados de KMZ/KML',
|
||||
'places.urlResolved': 'Lugar importado da URL',
|
||||
'places.importList': 'Importar lista',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Rota otimizada',
|
||||
'undo.deletePlace': 'Local excluído',
|
||||
'undo.deletePlaces': 'Lugares excluídos',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Local movido para outro dia',
|
||||
'undo.lock': 'Bloqueio do local alternado',
|
||||
'undo.importGpx': 'Importação de GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Vyberte alespoň jeden typ.',
|
||||
'places.selectionCount': '{count} vybráno',
|
||||
'places.deleteSelected': 'Smazat vybrané',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': 'Importováno {count} míst z KMZ/KML',
|
||||
'places.urlResolved': 'Místo importováno z URL',
|
||||
'places.importList': 'Import seznamu',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Trasa optimalizována',
|
||||
'undo.deletePlace': 'Místo smazáno',
|
||||
'undo.deletePlaces': 'Místa smazána',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Místo přesunuto na jiný den',
|
||||
'undo.lock': 'Zámek místa přepnut',
|
||||
'undo.importGpx': 'Import GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Wähle mindestens einen Typ aus.',
|
||||
'places.selectionCount': '{count} ausgewählt',
|
||||
'places.deleteSelected': 'Auswahl löschen',
|
||||
'places.changeCategory': "Kategorie ändern",
|
||||
'places.categoryChanged': "{count} Orte aktualisiert",
|
||||
'places.kmlKmzImported': '{count} Orte aus KMZ/KML importiert',
|
||||
'places.urlResolved': 'Ort aus URL importiert',
|
||||
'places.importList': 'Listenimport',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Route optimiert',
|
||||
'undo.deletePlace': 'Ort gelöscht',
|
||||
'undo.deletePlaces': 'Orte gelöscht',
|
||||
'undo.changeCategory': "Kategorie geändert",
|
||||
'undo.moveDay': 'Ort zu anderem Tag verschoben',
|
||||
'undo.lock': 'Ortssperre umgeschaltet',
|
||||
'undo.importGpx': 'GPX-Import',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Select at least one type to import.',
|
||||
'places.selectionCount': '{count} selected',
|
||||
'places.deleteSelected': 'Delete selected',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} places imported from KMZ/KML',
|
||||
'places.urlResolved': 'Place imported from URL',
|
||||
'places.importList': 'List Import',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Route optimized',
|
||||
'undo.deletePlace': 'Place deleted',
|
||||
'undo.deletePlaces': 'Places deleted',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Place moved to another day',
|
||||
'undo.lock': 'Place lock toggled',
|
||||
'undo.importGpx': 'GPX import',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Selecciona al menos un tipo.',
|
||||
'places.selectionCount': '{count} seleccionado(s)',
|
||||
'places.deleteSelected': 'Eliminar selección',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} lugares importados desde KMZ/KML',
|
||||
'places.urlResolved': 'Lugar importado desde URL',
|
||||
'places.importList': 'Importar lista',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Ruta optimizada',
|
||||
'undo.deletePlace': 'Lugar eliminado',
|
||||
'undo.deletePlaces': 'Lugares eliminados',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Lugar movido a otro día',
|
||||
'undo.lock': 'Bloqueo de lugar activado/desactivado',
|
||||
'undo.importGpx': 'Importación GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Sélectionnez au moins un type.',
|
||||
'places.selectionCount': '{count} sélectionné(s)',
|
||||
'places.deleteSelected': 'Supprimer la sélection',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} lieux importés depuis KMZ/KML',
|
||||
'places.urlResolved': "Lieu importé depuis l'URL",
|
||||
'places.importList': 'Import de liste',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Itinéraire optimisé',
|
||||
'undo.deletePlace': 'Lieu supprimé',
|
||||
'undo.deletePlaces': 'Lieux supprimés',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Lieu déplacé vers un autre jour',
|
||||
'undo.lock': 'Verrouillage du lieu modifié',
|
||||
'undo.importGpx': 'Import GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Επιλέξτε τουλάχιστον έναν τύπο για εισαγωγή.',
|
||||
'places.selectionCount': '{count} επιλεγμένα',
|
||||
'places.deleteSelected': 'Διαγραφή επιλεγμένων',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} μέρη εισήχθησαν από KMZ/KML',
|
||||
'places.urlResolved': 'Το μέρος εισήχθη από URL',
|
||||
'places.importList': 'Εισαγωγή Λίστας',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Η διαδρομή βελτιστοποιήθηκε',
|
||||
'undo.deletePlace': 'Η τοποθεσία διαγράφηκε',
|
||||
'undo.deletePlaces': 'Οι τοποθεσίες διαγράφηκαν',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Η τοποθεσία μεταφέρθηκε σε άλλη ημέρα',
|
||||
'undo.lock': 'Το κλείδωμα τοποθεσίας εναλλάχθηκε',
|
||||
'undo.importGpx': 'Εισαγωγή GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Válassz legalább egy típust.',
|
||||
'places.selectionCount': '{count} kiválasztva',
|
||||
'places.deleteSelected': 'Kijelöltek törlése',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} hely importálva KMZ/KML-ből',
|
||||
'places.urlResolved': 'Hely importálva URL-ből',
|
||||
'places.importList': 'Lista importálás',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Útvonal optimalizálva',
|
||||
'undo.deletePlace': 'Hely törölve',
|
||||
'undo.deletePlaces': 'Helyek törölve',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Hely áthelyezve másik napra',
|
||||
'undo.lock': 'Hely zárolása váltva',
|
||||
'undo.importGpx': 'GPX importálás',
|
||||
|
||||
@@ -23,6 +23,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Pilih setidaknya satu jenis.',
|
||||
'places.selectionCount': '{count} dipilih',
|
||||
'places.deleteSelected': 'Hapus yang dipilih',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} tempat diimpor dari KMZ/KML',
|
||||
'places.urlResolved': 'Tempat diimpor dari URL',
|
||||
'places.importList': 'Impor Daftar',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Rute dioptimalkan',
|
||||
'undo.deletePlace': 'Tempat dihapus',
|
||||
'undo.deletePlaces': 'Tempat dihapus',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Tempat dipindah ke hari lain',
|
||||
'undo.lock': 'Kunci tempat diubah',
|
||||
'undo.importGpx': 'Impor GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Seleziona almeno un tipo.',
|
||||
'places.selectionCount': '{count} selezionato/i',
|
||||
'places.deleteSelected': 'Elimina selezionati',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} luoghi importati da KMZ/KML',
|
||||
'places.urlResolved': "Luogo importato dall'URL",
|
||||
'places.importList': 'Importa lista',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Percorso ottimizzato',
|
||||
'undo.deletePlace': 'Luogo eliminato',
|
||||
'undo.deletePlaces': 'Luoghi eliminati',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Luogo spostato in altro giorno',
|
||||
'undo.lock': 'Blocco luogo modificato',
|
||||
'undo.importGpx': 'Importazione GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': '少なくとも1つ選択してください。',
|
||||
'places.selectionCount': '{count} 件選択中',
|
||||
'places.deleteSelected': '選択を削除',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': 'KMZ/KMLから {count} 件の場所をインポートしました',
|
||||
'places.urlResolved': 'URLから場所をインポートしました',
|
||||
'places.importList': 'リストをインポート',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'ルートを最適化',
|
||||
'undo.deletePlace': '場所を削除',
|
||||
'undo.deletePlaces': '場所を削除',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': '場所を別の日に移動',
|
||||
'undo.lock': '場所のロックを切り替え',
|
||||
'undo.importGpx': 'GPXをインポート',
|
||||
|
||||
@@ -23,6 +23,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': '가져올 유형을 하나 이상 선택하세요.',
|
||||
'places.selectionCount': '{count}개 선택됨',
|
||||
'places.deleteSelected': '선택 항목 삭제',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': 'KMZ/KML에서 {count}개 장소를 가져왔습니다',
|
||||
'places.urlResolved': 'URL에서 장소를 가져왔습니다',
|
||||
'places.importList': '목록 가져오기',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': '경로가 최적화되었습니다',
|
||||
'undo.deletePlace': '장소가 삭제되었습니다',
|
||||
'undo.deletePlaces': '장소들이 삭제되었습니다',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': '장소가 다른 날로 이동되었습니다',
|
||||
'undo.lock': '장소 잠금이 변경되었습니다',
|
||||
'undo.importGpx': 'GPX 가져오기',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Selecteer minstens één type.',
|
||||
'places.selectionCount': '{count} geselecteerd',
|
||||
'places.deleteSelected': 'Selectie verwijderen',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} plaatsen geïmporteerd uit KMZ/KML',
|
||||
'places.urlResolved': 'Plaats geïmporteerd van URL',
|
||||
'places.importList': 'Lijst importeren',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Route geoptimaliseerd',
|
||||
'undo.deletePlace': 'Locatie verwijderd',
|
||||
'undo.deletePlaces': 'Plaatsen verwijderd',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Locatie naar andere dag verplaatst',
|
||||
'undo.lock': 'Vergrendeling locatie gewijzigd',
|
||||
'undo.importGpx': 'GPX-import',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Wybierz co najmniej jeden typ.',
|
||||
'places.selectionCount': '{count} zaznaczono',
|
||||
'places.deleteSelected': 'Usuń wybrane',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': 'Zaimportowano {count} miejsc z KMZ/KML',
|
||||
'places.urlResolved': 'Miejsce zaimportowane z URL',
|
||||
'places.kmlKmzSummaryValues': 'Placemarks: {total} • Zaimportowano: {created} • Pominięto: {skipped}',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Trasa zoptymalizowana',
|
||||
'undo.deletePlace': 'Miejsce usunięte',
|
||||
'undo.deletePlaces': 'Miejsca usunięte',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Miejsce przeniesione',
|
||||
'undo.lock': 'Blokada przełączona',
|
||||
'undo.importGpx': 'Import GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Выберите хотя бы один тип.',
|
||||
'places.selectionCount': '{count} выбрано',
|
||||
'places.deleteSelected': 'Удалить выбранные',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} мест импортировано из KMZ/KML',
|
||||
'places.urlResolved': 'Место импортировано из URL',
|
||||
'places.importList': 'Импорт списка',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Маршрут оптимизирован',
|
||||
'undo.deletePlace': 'Место удалено',
|
||||
'undo.deletePlaces': 'Места удалены',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Место перемещено в другой день',
|
||||
'undo.lock': 'Блокировка места изменена',
|
||||
'undo.importGpx': 'Импорт GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Välj minst en typ att importera.',
|
||||
'places.selectionCount': '{count} markerade',
|
||||
'places.deleteSelected': 'Ta bort det markerade',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} platser som importerats från KMZ/KML',
|
||||
'places.urlResolved': 'Plats importerad från URL',
|
||||
'places.importList': 'Importera lista',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Rutt optimerad',
|
||||
'undo.deletePlace': 'Plats borttagen',
|
||||
'undo.deletePlaces': 'Platser borttagna',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Plats har flyttats till en annan dag',
|
||||
'undo.lock': 'Plats lås växlad',
|
||||
'undo.importGpx': 'GPX importering',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'İçe aktarılacak en az bir tür seçin.',
|
||||
'places.selectionCount': '{count} seçildi',
|
||||
'places.deleteSelected': 'Seçileni sil',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': "KMZ/KML'den {count} yer içe Aktarıldı",
|
||||
'places.urlResolved': "URL'den içe aktarılan Yer",
|
||||
'places.importList': 'Liste İçe Aktarma',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Rota optimize edildi',
|
||||
'undo.deletePlace': 'Yer silindi',
|
||||
'undo.deletePlaces': 'Yerler silindi',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Yer başka güne taşındı',
|
||||
'undo.lock': 'Yer kilidi değiştirildi',
|
||||
'undo.importGpx': 'GPX içe aktarma',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Виберіть щонайменше один тип.',
|
||||
'places.selectionCount': '{count} вибрано',
|
||||
'places.deleteSelected': 'Видалити вибране',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} місць імпортовано з KMZ/KML',
|
||||
'places.urlResolved': 'Місце імпортовано з URL',
|
||||
'places.importList': 'Імпорт списку',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Маршрут оптимізовано',
|
||||
'undo.deletePlace': 'Місце видалено',
|
||||
'undo.deletePlaces': 'Місця видалено',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Місце переміщено в інший день',
|
||||
'undo.lock': 'Блокування місця змінено',
|
||||
'undo.importGpx': 'Імпорт GPX',
|
||||
|
||||
@@ -24,6 +24,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': 'Chọn ít nhất một loại để nhập.',
|
||||
'places.selectionCount': '{count} đã chọn',
|
||||
'places.deleteSelected': 'Xóa đã chọn',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '{count} địa điểm được nhập từ KMZ/KML',
|
||||
'places.urlResolved': 'Địa điểm được nhập từ URL',
|
||||
'places.importList': 'Nhập danh sách',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': 'Tuyến đường được tối ưu hóa',
|
||||
'undo.deletePlace': 'Địa điểm đã bị xóa',
|
||||
'undo.deletePlaces': 'Địa điểm đã bị xóa',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': 'Địa điểm đã chuyển sang ngày khác',
|
||||
'undo.lock': 'Đã bật khóa địa điểm',
|
||||
'undo.importGpx': 'GPX nhập khẩu',
|
||||
|
||||
@@ -23,6 +23,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': '請至少選擇一種類型。',
|
||||
'places.selectionCount': '已選 {count} 項',
|
||||
'places.deleteSelected': '刪除所選',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '已從 KMZ/KML 匯入 {count} 個地點',
|
||||
'places.urlResolved': '已從 URL 匯入地點',
|
||||
'places.importList': '列表匯入',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': '路線已最佳化',
|
||||
'undo.deletePlace': '地點已刪除',
|
||||
'undo.deletePlaces': '地點已刪除',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': '地點已移至另一天',
|
||||
'undo.lock': '地點鎖定已切換',
|
||||
'undo.importGpx': 'GPX 匯入',
|
||||
|
||||
@@ -23,6 +23,8 @@ const places: TranslationStrings = {
|
||||
'places.kmlImportNoneSelected': '请至少选择一种类型。',
|
||||
'places.selectionCount': '已选 {count} 项',
|
||||
'places.deleteSelected': '删除所选',
|
||||
'places.changeCategory': "Change category",
|
||||
'places.categoryChanged': "{count} places updated",
|
||||
'places.kmlKmzImported': '已从 KMZ/KML 导入 {count} 个地点',
|
||||
'places.urlResolved': '已从 URL 导入地点',
|
||||
'places.importList': '列表导入',
|
||||
|
||||
@@ -9,6 +9,7 @@ const undo: TranslationStrings = {
|
||||
'undo.optimize': '路线已优化',
|
||||
'undo.deletePlace': '地点已删除',
|
||||
'undo.deletePlaces': '地点已删除',
|
||||
'undo.changeCategory': "Category changed",
|
||||
'undo.moveDay': '地点已移至另一天',
|
||||
'undo.lock': '地点锁定已切换',
|
||||
'undo.importGpx': 'GPX 导入',
|
||||
|
||||
@@ -113,6 +113,14 @@ export const placeBulkDeleteRequestSchema = z.object({
|
||||
});
|
||||
export type PlaceBulkDeleteRequest = z.infer<typeof placeBulkDeleteRequestSchema>;
|
||||
|
||||
export const placeBulkUpdateRequestSchema = z.object({
|
||||
ids: z.array(z.number()).min(1),
|
||||
// null clears the category ("No category"); a number sets it. Optional so the
|
||||
// field can be omitted, but the endpoint requires it to be present to act.
|
||||
category_id: z.number().nullable().optional(),
|
||||
});
|
||||
export type PlaceBulkUpdateRequest = z.infer<typeof placeBulkUpdateRequestSchema>;
|
||||
|
||||
export const placeImportListRequestSchema = z.object({
|
||||
url: z.string().min(1),
|
||||
// Opt-in: enrich imported places via the Places API (#886). Requires a Google
|
||||
|
||||
Reference in New Issue
Block a user