diff --git a/frontend/src/components/common/Game/Dialog/UploadRom.vue b/frontend/src/components/common/Game/Dialog/UploadRom.vue index 5a32b13e6..cd6172703 100644 --- a/frontend/src/components/common/Game/Dialog/UploadRom.vue +++ b/frontend/src/components/common/Game/Dialog/UploadRom.vue @@ -10,6 +10,7 @@ import storeScanning from "@/stores/scanning"; import storeUpload from "@/stores/upload"; import type { Events } from "@/types/emitter"; import { formatBytes } from "@/utils"; +import { useDropZone } from "@vueuse/core"; import type { Emitter } from "mitt"; import { inject, ref } from "vue"; import { useI18n } from "vue-i18n"; @@ -24,6 +25,8 @@ const selectedPlatform = ref(null); const supportedPlatforms = ref(); const heartbeat = storeHeartbeat(); const uploadStore = storeUpload(); +const dropZoneRef = ref(); + const HEADERS = [ { title: "Name", @@ -33,6 +36,7 @@ const HEADERS = [ }, { title: "", align: "end", key: "actions", sortable: false }, ] as const; + const emitter = inject>("emitter"); emitter?.on("showUploadRomDialog", (platformWhereUpload) => { if (platformWhereUpload) { @@ -147,6 +151,23 @@ function triggerFileInput() { fileInput?.click(); } +function handleFileInputChange(event: Event) { + const target = event.target as HTMLInputElement; + if (target.files && target.files.length > 0) { + const newFiles = Array.from(target.files); + // Add new files to existing list, avoiding duplicates + const uniqueNewFiles = newFiles.filter( + (newFile) => + !filesToUpload.value.some( + (existingFile) => existingFile.name === newFile.name, + ), + ); + filesToUpload.value = [...filesToUpload.value, ...uniqueNewFiles]; + } + // Clear the input so the same files can be selected again if needed + target.value = ""; +} + function removeRomFromList(romName: string) { filesToUpload.value = filesToUpload.value.filter( (rom) => rom.name !== romName, @@ -158,6 +179,25 @@ function closeDialog() { filesToUpload.value = []; selectedPlatform.value = null; } + +function onDrop(files: File[] | null) { + if (files && files.length > 0) { + // Add new files to existing list, avoiding duplicates + const newFiles = files.filter( + (newFile) => + !filesToUpload.value.some( + (existingFile) => existingFile.name === newFile.name, + ), + ); + filesToUpload.value = [...filesToUpload.value, ...newFiles]; + } +} + +const { isOverDropZone } = useDropZone(dropZoneRef, { + onDrop, + multiple: true, + preventDefaultForUnhandled: true, +}); + + diff --git a/frontend/src/components/common/RDialog.vue b/frontend/src/components/common/RDialog.vue index d43f582df..3985193b3 100644 --- a/frontend/src/components/common/RDialog.vue +++ b/frontend/src/components/common/RDialog.vue @@ -87,7 +87,7 @@ onMounted(() => { - + @@ -125,7 +125,7 @@ onMounted(() => { name="content" > - + diff --git a/frontend/src/locales/de_DE/common.json b/frontend/src/locales/de_DE/common.json index e531cfa15..966c863be 100644 --- a/frontend/src/locales/de_DE/common.json +++ b/frontend/src/locales/de_DE/common.json @@ -10,11 +10,16 @@ "confirm": "Bestätigen", "core": "Core", "create": "Erstellen", + "dropzone-description": "Ziehen Sie Ihre ROM-Dateien hierher oder klicken Sie zum Durchsuchen", + "dropzone-drag-over": "Loslassen zum Hochladen", + "dropzone-title": "Dateien hier ablegen", "edit": "Bearbeiten", "exclude-on-delete": "Beim Löschen ausschließen", "filter": "Filter", "firmware": "Firmware", "games-n": "{n} Spiel | {n} Spiele", + "invalid-email": "Ungültige E-Mail", + "invalid-name": "Ungültiger Name", "library-management": "Bibliothek verwalten", "logout": "Ausloggen", "name": "Name", @@ -25,8 +30,6 @@ "profile": "Profil", "random": "Zufällig", "required": "Erforderlich", - "invalid-name": "Ungültiger Name", - "invalid-email": "Ungültige E-Mail", "save": "Speichern", "saves": "Speicherstände", "saves-n": "{n} Speichern | {n} Speicherstände", @@ -35,15 +38,16 @@ "server-stats": "Serverstatistiken", "size-on-disk": "Größe auf Festplatte", "slug": "Slug", + "smart-collection": "Intelligente Sammlung", + "smart-collections": "Intelligente Sammlungen", "state": "Spielstand", "states": "Spielstände", "states-n": "{n} Spielstand | {n} Spielstände", + "sync": "Synchronisieren", "update": "Update", "upload": "Hochladen", + "upload-files-selected": "{count} Datei ausgewählt | {count} Dateien ausgewählt", "user-interface": "Benutzeroberfläche", "virtual-collection": "Autogenerierte Sammlung", - "virtual-collections": "Autogenerierte Sammlungen", - "smart-collection": "Intelligente Sammlung", - "smart-collections": "Intelligente Sammlungen", - "sync": "Synchronisieren" + "virtual-collections": "Autogenerierte Sammlungen" } diff --git a/frontend/src/locales/en_GB/common.json b/frontend/src/locales/en_GB/common.json index cecad1127..055a6f421 100644 --- a/frontend/src/locales/en_GB/common.json +++ b/frontend/src/locales/en_GB/common.json @@ -10,11 +10,16 @@ "confirm": "Confirm", "core": "Core", "create": "Create", + "dropzone-description": "Drag and drop your ROM files here, or click to browse", + "dropzone-drag-over": "Release to upload", + "dropzone-title": "Drop files here", "edit": "Edit", "exclude-on-delete": "Exclude on delete", "filter": "Filter", "firmware": "Firmware", "games-n": "{n} Game | {n} Games", + "invalid-email": "Invalid email", + "invalid-name": "Invalid name", "library-management": "Library management", "logout": "Logout", "name": "Name", @@ -25,8 +30,6 @@ "profile": "Profile", "random": "Random", "required": "Required", - "invalid-name": "Invalid name", - "invalid-email": "Invalid email", "save": "Save", "saves": "Saves", "saves-n": "{n} Save | {n} Saves", @@ -35,15 +38,16 @@ "server-stats": "Server stats", "size-on-disk": "Size on disk", "slug": "Slug", + "smart-collection": "Smart Collection", + "smart-collections": "Smart Collections", "state": "State", "states": "States", "states-n": "{n} State | {n} States", "sync": "Sync", "update": "Update", "upload": "Upload", + "upload-files-selected": "{count} file selected | {count} files selected", "user-interface": "User interface", "virtual-collection": "Autogenerated collection", - "virtual-collections": "Autogenerated collections", - "smart-collection": "Smart Collection", - "smart-collections": "Smart Collections" + "virtual-collections": "Autogenerated collections" } diff --git a/frontend/src/locales/en_US/common.json b/frontend/src/locales/en_US/common.json index cecad1127..055a6f421 100644 --- a/frontend/src/locales/en_US/common.json +++ b/frontend/src/locales/en_US/common.json @@ -10,11 +10,16 @@ "confirm": "Confirm", "core": "Core", "create": "Create", + "dropzone-description": "Drag and drop your ROM files here, or click to browse", + "dropzone-drag-over": "Release to upload", + "dropzone-title": "Drop files here", "edit": "Edit", "exclude-on-delete": "Exclude on delete", "filter": "Filter", "firmware": "Firmware", "games-n": "{n} Game | {n} Games", + "invalid-email": "Invalid email", + "invalid-name": "Invalid name", "library-management": "Library management", "logout": "Logout", "name": "Name", @@ -25,8 +30,6 @@ "profile": "Profile", "random": "Random", "required": "Required", - "invalid-name": "Invalid name", - "invalid-email": "Invalid email", "save": "Save", "saves": "Saves", "saves-n": "{n} Save | {n} Saves", @@ -35,15 +38,16 @@ "server-stats": "Server stats", "size-on-disk": "Size on disk", "slug": "Slug", + "smart-collection": "Smart Collection", + "smart-collections": "Smart Collections", "state": "State", "states": "States", "states-n": "{n} State | {n} States", "sync": "Sync", "update": "Update", "upload": "Upload", + "upload-files-selected": "{count} file selected | {count} files selected", "user-interface": "User interface", "virtual-collection": "Autogenerated collection", - "virtual-collections": "Autogenerated collections", - "smart-collection": "Smart Collection", - "smart-collections": "Smart Collections" + "virtual-collections": "Autogenerated collections" } diff --git a/frontend/src/locales/es_ES/common.json b/frontend/src/locales/es_ES/common.json index 0abc19c0a..957760238 100644 --- a/frontend/src/locales/es_ES/common.json +++ b/frontend/src/locales/es_ES/common.json @@ -10,11 +10,16 @@ "confirm": "Confirmar", "core": "Núcleo", "create": "Crear", + "dropzone-description": "Arrastra y suelta tus archivos ROM aquí, o haz clic para explorar", + "dropzone-drag-over": "Suelta para subir", + "dropzone-title": "Suelta archivos aquí", "edit": "Editar", "exclude-on-delete": "Excluir al eliminar", "filter": "Filtrar", "firmware": "Firmware", "games-n": "{n} Juego | {n} Juegos", + "invalid-email": "Correo electrónico inválido", + "invalid-name": "Nombre inválido", "library-management": "Gestionar biblioteca", "logout": "Cerrar sesión", "name": "Nombre", @@ -25,8 +30,6 @@ "profile": "Perfil", "random": "Aleatorio", "required": "Requerido", - "invalid-name": "Nombre inválido", - "invalid-email": "Correo electrónico inválido", "save": "Guardado", "saves": "Guardados", "saves-n": "{n} Guardado | {n} Guardados", @@ -35,15 +38,16 @@ "server-stats": "Estadísticas del servidor", "size-on-disk": "Tamaño en disco", "slug": "Slug", + "smart-collection": "Colección Inteligente", + "smart-collections": "Colecciones Inteligentes", "state": "Estado", "states": "Estados", "states-n": "{n} Estado | {n} Estados", + "sync": "Sincronizar", "update": "Actualizar", "upload": "Subir", + "upload-files-selected": "{count} archivo seleccionado | {count} archivos seleccionados", "user-interface": "Interfaz de usuario", "virtual-collection": "Colección autogenerada", - "virtual-collections": "Colecciones autogeneradas", - "smart-collection": "Colección Inteligente", - "smart-collections": "Colecciones Inteligentes", - "sync": "Sincronizar" + "virtual-collections": "Colecciones autogeneradas" } diff --git a/frontend/src/locales/fr_FR/common.json b/frontend/src/locales/fr_FR/common.json index d6a472827..da0ed2916 100644 --- a/frontend/src/locales/fr_FR/common.json +++ b/frontend/src/locales/fr_FR/common.json @@ -10,11 +10,16 @@ "confirm": "Confirmer", "core": "Noyau", "create": "Créer", + "dropzone-description": "Glissez-déposez vos fichiers ROM ici, ou cliquez pour parcourir", + "dropzone-drag-over": "Relâchez pour téléverser", + "dropzone-title": "Déposez les fichiers ici", "edit": "Éditer", "exclude-on-delete": "Exclure lors de la suppression", "filter": "Filtrer", "firmware": "Micrologiciel", "games-n": "{n} Jeu | {n} Jeux", + "invalid-email": "E-mail invalide", + "invalid-name": "Nom invalide", "library-management": "Gestion de la bibliothèque", "logout": "Se déconnecter", "name": "Nom", @@ -25,8 +30,6 @@ "profile": "Profil", "random": "Aléatoire", "required": "Requis", - "invalid-name": "Nom invalide", - "invalid-email": "E-mail invalide", "save": "Sauvegarder", "saves": "Sauvegardes", "saves-n": "{n} Sauvegarder | {n} Sauvegardes", @@ -35,15 +38,16 @@ "server-stats": "Statistiques du serveur", "size-on-disk": "Taille sur le disque", "slug": "Slug", + "smart-collection": "Collection Intelligente", + "smart-collections": "Collections Intelligentes", "state": "État", "states": "États", "states-n": "{n} État | {n} États", + "sync": "Synchroniser", "update": "Mettre à jour", "upload": "Téléverser", + "upload-files-selected": "{count} fichier sélectionné | {count} fichiers sélectionnés", "user-interface": "Interface utilisateur", "virtual-collection": "Collection autogénérée", - "virtual-collections": "Collections autogénérées", - "smart-collection": "Collection Intelligente", - "smart-collections": "Collections Intelligentes", - "sync": "Synchroniser" + "virtual-collections": "Collections autogénérées" } diff --git a/frontend/src/locales/it_IT/common.json b/frontend/src/locales/it_IT/common.json index 18772fb7a..a3219a2ab 100644 --- a/frontend/src/locales/it_IT/common.json +++ b/frontend/src/locales/it_IT/common.json @@ -10,11 +10,16 @@ "confirm": "Conferma", "core": "Core", "create": "Crea", + "dropzone-description": "Trascina e rilascia i tuoi file ROM qui, o clicca per sfogliare", + "dropzone-drag-over": "Rilascia per caricare", + "dropzone-title": "Rilascia i file qui", "edit": "Modifica", "exclude-on-delete": "Escludi al momento dell'eliminazione", "filter": "Filtro", "firmware": "Firmware", "games-n": "{n} Gioco | {n} Giochi", + "invalid-email": "Email non valida", + "invalid-name": "Nome non valido", "library-management": "Gestione Libreria", "logout": "Logout", "name": "Nome", @@ -25,8 +30,6 @@ "profile": "Profilo", "random": "Casuale", "required": "Obbligatorio", - "invalid-name": "Nome non valido", - "invalid-email": "Email non valida", "save": "Salvataggio", "saves": "Salvataggi", "saves-n": "{n} Salvataggio | {n} Salvataggi", @@ -35,15 +38,16 @@ "server-stats": "Statistiche del server", "size-on-disk": "Dimensione sul disco", "slug": "Slug", + "smart-collection": "Collezione Intelligente", + "smart-collections": "Collezioni Intelligenti", "state": "Stato", "states": "Stati", "states-n": "{n} Stato | {n} Stati", + "sync": "Sincronizza", "update": "Aggiorna", "upload": "Carica", + "upload-files-selected": "{count} file selezionato | {count} file selezionati", "user-interface": "Interfaccia Utente", "virtual-collection": "Collezione generata automaticamente", - "virtual-collections": "Collezioni generate automaticamente", - "smart-collection": "Collezione Intelligente", - "smart-collections": "Collezioni Intelligenti", - "sync": "Sincronizza" + "virtual-collections": "Collezioni generate automaticamente" } diff --git a/frontend/src/locales/ja_JP/common.json b/frontend/src/locales/ja_JP/common.json index b92d30e29..069db0edd 100644 --- a/frontend/src/locales/ja_JP/common.json +++ b/frontend/src/locales/ja_JP/common.json @@ -10,11 +10,16 @@ "confirm": "確定", "core": "コア", "create": "作成", + "dropzone-description": "ROMファイルをここにドラッグ&ドロップするか、クリックして参照してください", + "dropzone-drag-over": "アップロードするには離してください", + "dropzone-title": "ファイルをここにドロップ", "edit": "編集", "exclude-on-delete": "削除時に除外", "filter": "フィルタ", "firmware": "ファームウェア", "games-n": "{n} ゲーム | {n} ゲーム", + "invalid-email": "無効なメールアドレス", + "invalid-name": "無効な名前", "library-management": "ライブラリ管理", "logout": "ログアウト", "name": "名前", @@ -25,8 +30,6 @@ "profile": "プロファイル", "random": "ランダム", "required": "必須", - "invalid-name": "無効な名前", - "invalid-email": "無効なメールアドレス", "save": "セーブ", "saves": "セーブ", "saves-n": "{n} セーブ | {n} セーブ", @@ -35,15 +38,16 @@ "server-stats": "サーバーステータス", "size-on-disk": "ディスク上のサイズ", "slug": "スラッグ", + "smart-collection": "スマートコレクション", + "smart-collections": "スマートコレクション", "state": "ステートセーブ", "states": "ステートセーブ", "states-n": "{n} ステートセーブ | {n} ステートセーブ", + "sync": "同期", "update": "アップデート", "upload": "アップロード", + "upload-files-selected": "{count} ファイルが選択されました", "user-interface": "ユーザーインターフェイス", "virtual-collection": "自動生成コレクション", - "virtual-collections": "自動生成コレクション", - "smart-collection": "スマートコレクション", - "smart-collections": "スマートコレクション", - "sync": "同期" + "virtual-collections": "自動生成コレクション" } diff --git a/frontend/src/locales/ko_KR/common.json b/frontend/src/locales/ko_KR/common.json index a6db4e0df..e2442929f 100644 --- a/frontend/src/locales/ko_KR/common.json +++ b/frontend/src/locales/ko_KR/common.json @@ -10,11 +10,16 @@ "confirm": "확인", "core": "코어", "create": "생성", + "dropzone-description": "ROM 파일을 여기에 드래그 앤 드롭하거나 클릭하여 탐색하세요", + "dropzone-drag-over": "업로드하려면 놓으세요", + "dropzone-title": "파일을 여기에 드롭하세요", "edit": "수정", "exclude-on-delete": "삭제 시 제외", "filter": "필터", "firmware": "펌웨어", "games-n": "게임 {n}개 | 게임 {n}개", + "invalid-email": "유효하지 않은 이메일", + "invalid-name": "유효하지 않은 이름", "library-management": "라이브러리 관리", "logout": "로그아웃", "name": "이름", @@ -25,8 +30,6 @@ "profile": "프로필", "random": "무작위", "required": "필수", - "invalid-name": "유효하지 않은 이름", - "invalid-email": "유효하지 않은 이메일", "save": "세이브", "saves": "세이브", "saves-n": "세이브 {n}개 | 세이브 {n}개", @@ -35,15 +38,16 @@ "server-stats": "서버 통계", "size-on-disk": "디스크 크기", "slug": "슬러그", + "smart-collection": "스마트 모음집", + "smart-collections": "스마트 모음집", "state": "저장 상태", "states": "저장 상태", "states-n": "저장 상태 {n}개 | 저장 상태 {n}개", + "sync": "동기화", "update": "업데이트", "upload": "업로드", + "upload-files-selected": "{count}개 파일이 선택되었습니다", "user-interface": "사용자 인터페이스", "virtual-collection": "자동 생성된 모음집", - "virtual-collections": "자동 생성된 모음집", - "smart-collection": "스마트 모음집", - "smart-collections": "스마트 모음집", - "sync": "동기화" + "virtual-collections": "자동 생성된 모음집" } diff --git a/frontend/src/locales/pl_PL/common.json b/frontend/src/locales/pl_PL/common.json index f76410798..259b55e0b 100644 --- a/frontend/src/locales/pl_PL/common.json +++ b/frontend/src/locales/pl_PL/common.json @@ -10,11 +10,16 @@ "confirm": "Potwierdź", "core": "Rdzeń", "create": "Utwórz", + "dropzone-description": "Przeciągnij i upuść swoje pliki ROM tutaj, lub kliknij aby przeglądać", + "dropzone-drag-over": "Puść aby przesłać", + "dropzone-title": "Upuść pliki tutaj", "edit": "Edytuj", "exclude-on-delete": "Wyklucz przy usunięciu", "filter": "Filtruj", "firmware": "Oprogramowanie", "games-n": "{n} Gra | {n} Gry | {n} Gier", + "invalid-email": "Nieprawidłowy email", + "invalid-name": "Nieprawidłowa nazwa", "library-management": "Zarządzanie biblioteką", "logout": "Wyloguj się", "name": "Nazwa", @@ -25,8 +30,6 @@ "profile": "Profil", "random": "Losowo", "required": "Wymagane", - "invalid-name": "Nieprawidłowa nazwa", - "invalid-email": "Nieprawidłowy email", "save": "Zapisz", "saves": "Zapisane stany", "saves-n": "{n} Zapis | {n} Zapisy | {n} Zapisów", @@ -43,6 +46,7 @@ "sync": "Synchronizuj", "update": "Aktualizuj", "upload": "Prześlij", + "upload-files-selected": "{count} plik wybrany | {count} pliki wybrane | {count} plików wybranych", "user-interface": "Interfejs użytkownika", "virtual-collection": "Automatycznie wygenerowana kolekcja", "virtual-collections": "Automatycznie wygenerowane kolekcje" diff --git a/frontend/src/locales/pt_BR/common.json b/frontend/src/locales/pt_BR/common.json index a08665b57..4e86c08bb 100644 --- a/frontend/src/locales/pt_BR/common.json +++ b/frontend/src/locales/pt_BR/common.json @@ -10,11 +10,16 @@ "confirm": "Confirmar", "core": "Núcleo", "create": "Criar", + "dropzone-description": "Arraste e solte seus arquivos ROM aqui, ou clique para navegar", + "dropzone-drag-over": "Solte para carregar", + "dropzone-title": "Solte os arquivos aqui", "edit": "Editar", "exclude-on-delete": "Excluir ao excluir", "filter": "Filtrar", "firmware": "Firmware", "games-n": "{n} Jogo | {n} Jogos", + "invalid-email": "Email inválido", + "invalid-name": "Nome inválido", "library-management": "Gerenciamento de biblioteca", "logout": "Sair", "name": "Nome", @@ -25,8 +30,6 @@ "profile": "Perfil", "random": "Aleatório", "required": "Requerido", - "invalid-name": "Nome inválido", - "invalid-email": "Email inválido", "save": "Salvar", "saves": "Salvar", "saves-n": "{n} Salvar | {n} Salvar", @@ -35,15 +38,16 @@ "server-stats": "Estatísticas do servidor", "size-on-disk": "Tamanho no disco", "slug": "Slug", + "smart-collection": "Coleção Inteligente", + "smart-collections": "Coleções Inteligentes", "state": "Estado", "states": "Estados", "states-n": "{n} Estado | {n} Estados", + "sync": "Sincronizar", "update": "Atualizar", "upload": "Carregar", + "upload-files-selected": "{count} arquivo selecionado | {count} arquivos selecionados", "user-interface": "Interface do usuário", "virtual-collection": "Coleção autogerada", - "virtual-collections": "Coleções autogeradas", - "smart-collection": "Coleção Inteligente", - "smart-collections": "Coleções Inteligentes", - "sync": "Sincronizar" + "virtual-collections": "Coleções autogeradas" } diff --git a/frontend/src/locales/ro_RO/common.json b/frontend/src/locales/ro_RO/common.json index 2ab28303d..0f74e07a9 100644 --- a/frontend/src/locales/ro_RO/common.json +++ b/frontend/src/locales/ro_RO/common.json @@ -10,11 +10,16 @@ "confirm": "Confirmă", "core": "Nucleu", "create": "Creează", + "dropzone-description": "Trageți și eliberați fișierele ROM aici, sau faceți clic pentru a naviga", + "dropzone-drag-over": "Eliberați pentru a încărca", + "dropzone-title": "Trageți fișierele aici", "edit": "Editează", "exclude-on-delete": "Excluzând la ștergere", "filter": "Filtru", "firmware": "Firmware", "games-n": "{n} Joc | {n} Jocuri", + "invalid-email": "Email invalid", + "invalid-name": "Nume invalid", "library-management": "Gestionare bibliotecă", "logout": "Deconectare", "name": "Nume", @@ -25,8 +30,6 @@ "profile": "Profil", "random": "Aleatoriu", "required": "Obligatoriu", - "invalid-name": "Nume invalid", - "invalid-email": "Email invalid", "save": "Salvare", "saves": "Salvări", "saves-n": "{n} Salvare | {n} Salvări", @@ -35,15 +38,16 @@ "server-stats": "Statistici server", "size-on-disk": "Dimensiune pe disc", "slug": "Slug", + "smart-collection": "Colecție Inteligentă", + "smart-collections": "Colecții Inteligente", "state": "Stare", "states": "Stări", "states-n": "{n} Stare | {n} Stări", + "sync": "Sincronizează", "update": "Actualizează", "upload": "Încarcă", + "upload-files-selected": "{count} fișier selectat | {count} fișiere selectate", "user-interface": "Interfață utilizator", "virtual-collection": "Colecție autogenerată", - "virtual-collections": "Colecții autogenerate", - "smart-collection": "Colecție Inteligentă", - "smart-collections": "Colecții Inteligente", - "sync": "Sincronizează" + "virtual-collections": "Colecții autogenerate" } diff --git a/frontend/src/locales/ru_RU/common.json b/frontend/src/locales/ru_RU/common.json index 4cb6c914c..67b88cb29 100644 --- a/frontend/src/locales/ru_RU/common.json +++ b/frontend/src/locales/ru_RU/common.json @@ -10,11 +10,16 @@ "confirm": "Подтвердить", "core": "Ядро", "create": "Создать", + "dropzone-description": "Перетащите ваши ROM файлы сюда или нажмите для просмотра", + "dropzone-drag-over": "Отпустите для загрузки", + "dropzone-title": "Перетащите файлы сюда", "edit": "Редактировать", "exclude-on-delete": "Исключить при удалении", "filter": "Фильтр", "firmware": "Прошивка", "games-n": "{n} Игра | {n} Игры", + "invalid-email": "Недопустимый адрес электронной почты", + "invalid-name": "Недопустимое имя", "library-management": "Управление библиотекой", "logout": "Выйти", "name": "Имя", @@ -25,8 +30,6 @@ "profile": "Профиль", "random": "Случайный", "required": "Обязательное поле", - "invalid-name": "Недопустимое имя", - "invalid-email": "Недопустимый адрес электронной почты", "save": "Сохранить", "saves": "Сохранения", "saves-n": "{n} Сохранить | {n} Сохранения", @@ -35,15 +38,16 @@ "server-stats": "Статистика сервера", "size-on-disk": "Размер на диске", "slug": "Слаг", + "smart-collection": "Умная коллекция", + "smart-collections": "Умные коллекции", "state": "Состояние", "states": "Состояния", "states-n": "{n} Состояние | {n} Состояния", + "sync": "Синхронизировать", "update": "Обновить", "upload": "Загрузить", + "upload-files-selected": "{count} файл выбран | {count} файла выбрано | {count} файлов выбрано", "user-interface": "Пользовательский интерфейс", "virtual-collection": "Автосгенерированная коллекция", - "virtual-collections": "Автосгенерированные коллекции", - "smart-collection": "Умная коллекция", - "smart-collections": "Умные коллекции", - "sync": "Синхронизировать" + "virtual-collections": "Автосгенерированные коллекции" } diff --git a/frontend/src/locales/zh_CN/common.json b/frontend/src/locales/zh_CN/common.json index 58cc80359..70f1333e4 100644 --- a/frontend/src/locales/zh_CN/common.json +++ b/frontend/src/locales/zh_CN/common.json @@ -10,11 +10,16 @@ "confirm": "确认", "core": "核心", "create": "创建", + "dropzone-description": "将您的ROM文件拖放到此处,或点击浏览", + "dropzone-drag-over": "释放以上传", + "dropzone-title": "将文件拖放到此处", "edit": "编辑", "exclude-on-delete": "删除时排除", "filter": "筛选", "firmware": "固件", "games-n": "{n} 游戏 | {n} 游戏", + "invalid-email": "无效的电子邮件", + "invalid-name": "无效的名称", "library-management": "游戏库管理", "logout": "注销", "name": "名称", @@ -25,8 +30,6 @@ "profile": "简介", "random": "随机", "required": "必填", - "invalid-name": "无效的名称", - "invalid-email": "无效的电子邮件", "save": "存档", "saves": "存档", "saves-n": "{n} 存档 | {n} 存档", @@ -35,15 +38,16 @@ "server-stats": "服务器状态", "size-on-disk": "磁盘大小", "slug": "Slug", + "smart-collection": "智能收藏", + "smart-collections": "智能收藏", "state": "状态", "states": "状态", "states-n": "{n} 状态 | {n} 状态", + "sync": "同步", "update": "更新", "upload": "上传", + "upload-files-selected": "已选择 {count} 个文件", "user-interface": "用户界面", "virtual-collection": "自动生成的收藏", - "virtual-collections": "自动生成的收藏", - "smart-collection": "智能收藏", - "smart-collections": "智能收藏", - "sync": "同步" + "virtual-collections": "自动生成的收藏" } diff --git a/frontend/src/locales/zh_TW/common.json b/frontend/src/locales/zh_TW/common.json index 073796355..051131363 100644 --- a/frontend/src/locales/zh_TW/common.json +++ b/frontend/src/locales/zh_TW/common.json @@ -10,11 +10,16 @@ "confirm": "確認", "core": "核心", "create": "建立", + "dropzone-description": "將您的ROM檔案拖放到此處,或點擊瀏覽", + "dropzone-drag-over": "釋放以上傳", + "dropzone-title": "將檔案拖放到此處", "edit": "編輯", "exclude-on-delete": "刪除時排除", "filter": "篩選", "firmware": "韌體", "games-n": "{n} 遊戲 | {n} 遊戲", + "invalid-email": "無效的電子郵件", + "invalid-name": "無效的名稱", "library-management": "管理遊戲庫", "logout": "登出", "name": "名稱", @@ -25,8 +30,6 @@ "profile": "用戶資料", "random": "隨機", "required": "必填", - "invalid-name": "無效的名稱", - "invalid-email": "無效的電子郵件", "save": "存檔", "saves": "存檔", "saves-n": "{n} 存檔 | {n} 存檔", @@ -35,15 +38,16 @@ "server-stats": "伺服器狀態", "size-on-disk": "占用磁碟空間", "slug": "網址關鍵字", + "smart-collection": "智能收藏庫", + "smart-collections": "智能收藏庫", "state": "即時存檔", "states": "即時存檔", "states-n": "{n} 即時存檔 | {n} 即時存檔", + "sync": "同步", "update": "更新", "upload": "上傳", + "upload-files-selected": "已選擇 {count} 個檔案", "user-interface": "使用界面", "virtual-collection": "自動生成的收藏庫", - "virtual-collections": "自動生成的收藏庫", - "smart-collection": "智能收藏庫", - "smart-collections": "智能收藏庫", - "sync": "同步" + "virtual-collections": "自動生成的收藏庫" }