Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

feat(files): add overwrite confirmation dialog for file rename and update API to support overwrite behavior

johavenc7c0d96d4614
diff --git a/backend/src/applications/files/dto/file-operations.dto.ts b/backend/src/applications/files/dto/file-operations.dto.ts
index e77b4db2..4da50717 100644
--- a/backend/src/applications/files/dto/file-operations.dto.ts
+++ b/backend/src/applications/files/dto/file-operations.dto.ts
@@ -18,8 +18,12 @@ export class CopyMoveFileDto {
@IsOptional()
@IsString()
@RejectIfMatch(regExpInvalidFileName, { message: 'Forbidden characters' })
- // renaming use case
+ // Renaming scenario
dstName?: string
+
+ @IsOptional()
+ @IsBoolean()
+ overwrite? = false
}
export class DownloadFileDto {
diff --git a/backend/src/applications/files/services/files-methods.service.ts b/backend/src/applications/files/services/files-methods.service.ts
index 85c25ec3..fe056de2 100644
--- a/backend/src/applications/files/services/files-methods.service.ts
+++ b/backend/src/applications/files/services/files-methods.service.ts
@@ -165,7 +165,7 @@ export class FilesMethods {
let dstSpace: SpaceEnv
try {
dstSpace = await this.spacesManager.spaceEnv(user, dstUrl.split('/'))
- await this.filesManager.copyMove(user, space, dstSpace, isMove)
+ await this.filesManager.copyMove(user, space, dstSpace, isMove, copyMoveFileDto.overwrite)
} catch (e) {
this.handleError(space, isMove ? FILE_OPERATION.MOVE : FILE_OPERATION.COPY, e, dstSpace)
}
diff --git a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html
index 984c3c09..b4dd1cd3 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.html
@@ -7,17 +7,27 @@
<div class="modal-header">
<h4 class="modal-title" l10nTranslate>
<fa-icon [icon]="icons.faFileShield" class="me-1"></fa-icon>
- <span l10nTranslate>Overwrite Existing File(s)</span>
+ @if (renamedTo) {
+ <span l10nTranslate>Replace Existing File</span>
+ } @else {
+ <span l10nTranslate>Overwrite Existing File(s)</span>
+ }
</h4>
<button (click)="layout.closeDialog()" aria-label="Close" class="btn-close btn-close-white" type="button"></button>
</div>
<div class="modal-body">
- <div l10nTranslate>Do you want to replace the existing file(s)?</div>
- <ul class="my-2" style="padding-left: inherit">
- @for (file of files; track $index) {
- <li><b>{{ file.name }}</b></li>
- }
- </ul>
+ @if (renamedTo) {
+ <div
+ [innerHTML]="'RenameFileToExisting' | translate:locale.language:{ old: files[0].name, new: renamedTo }">
+ </div>
+ } @else {
+ <div l10nTranslate>Do you want to replace the existing file(s)?</div>
+ <ul class="my-2" style="padding-left: inherit">
+ @for (file of files; track $index) {
+ <li><b>{{ file.name }}</b></li>
+ }
+ </ul>
+ }
</div>
<div class="modal-footer">
<button (click)="onAction(false)" class="btn btn-sm btn-secondary" data-dismiss="modal" type="button" l10nTranslate>Cancel</button>
diff --git a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts
index ea37d40d..b2d78b5a 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-overwrite-dialog.component.ts
@@ -7,17 +7,19 @@
import { Component, HostListener, inject, Input, output } from '@angular/core'
import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import { faFileShield } from '@fortawesome/free-solid-svg-icons'
-import { L10nTranslateDirective } from 'angular-l10n'
+import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { LayoutService } from '../../../../layout/layout.service'
@Component({
selector: 'app-files-overwrite-dialog',
- imports: [FaIconComponent, L10nTranslateDirective],
+ imports: [FaIconComponent, L10nTranslateDirective, L10nTranslatePipe],
templateUrl: 'files-overwrite-dialog.component.html'
})
export class FilesOverwriteDialogComponent {
@Input() files: File[] = []
+ @Input() renamedTo: string
public overwrite = output<boolean>()
+ protected readonly locale = inject<L10nLocale>(L10N_LOCALE)
protected layout = inject(LayoutService)
protected readonly icons = { faFileShield }
protected submitted = false
diff --git a/frontend/src/app/applications/files/services/files.service.ts b/frontend/src/app/applications/files/services/files.service.ts
index 19e265c2..792bfae6 100644
--- a/frontend/src/app/applications/files/services/files.service.ts
+++ b/frontend/src/app/applications/files/services/files.service.ts
@@ -33,7 +33,7 @@ import type { FileRecent } from '@sync-in-server/backend/src/applications/files/
import { API_SPACES_TREE } from '@sync-in-server/backend/src/applications/spaces/constants/routes'
import { forbiddenChars, isValidFileName } from '@sync-in-server/backend/src/common/shared'
import { BsModalRef } from 'ngx-bootstrap/modal'
-import { firstValueFrom, map, Observable, Subject } from 'rxjs'
+import { EMPTY, firstValueFrom, map, Observable, Subject } from 'rxjs'
import { downloadWithAnchor } from '../../../common/utils/functions'
import { TAB_MENU } from '../../../layout/layout.interfaces'
import { LayoutService } from '../../../layout/layout.service'
@@ -115,17 +115,11 @@ export class FilesService {
}
}
- rename(file: FileModel, name: string) {
- if (!this.isValidName(name)) return
+ rename(file: FileModel, name: string, overwrite = false): Observable<Pick<FileTask, 'name'>> {
+ if (!this.isValidName(name)) return EMPTY
const dstDirectory = file.path.split('/').slice(0, -1).join('/') || '.'
- const op: CopyMoveFileDto = { dstDirectory: dstDirectory, dstName: name }
- this.http.request<Pick<FileTask, 'name'>>(FILE_OPERATION.MOVE, file.dataUrl, { body: op }).subscribe({
- next: (dto: Pick<FileTask, 'name'>) => {
- file.rename(dto.name)
- file.isEditable = false
- },
- error: (e: HttpErrorResponse) => this.layout.sendNotification('error', 'Rename', file.name, e)
- })
+ const op: CopyMoveFileDto = { dstDirectory: dstDirectory, dstName: name, overwrite: overwrite }
+ return this.http.request<Pick<FileTask, 'name'>>(FILE_OPERATION.MOVE, file.dataUrl, { body: op })
}
delete(files: FileModel[]) {
@@ -212,10 +206,11 @@ export class FilesService {
)
}
- async openOverwriteDialog(files: File[]): Promise<boolean> {
+ async openOverwriteDialog(files: File[] | FileModel[], renamedTo?: string): Promise<boolean> {
const overwriteDialog: BsModalRef<FilesOverwriteDialogComponent> = this.layout.openDialog(FilesOverwriteDialogComponent, null, {
initialState: {
- files: files
+ files: files,
+ renamedTo: renamedTo
} as FilesOverwriteDialogComponent
})
return new Promise<boolean>((resolve) => {
diff --git a/frontend/src/app/applications/spaces/components/spaces-browser.component.ts b/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
index 2859d24b..c46f4087 100644
--- a/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
+++ b/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
@@ -40,7 +40,7 @@ import { FILE_OPERATION } from '@sync-in-server/backend/src/applications/files/c
import type { CompressFileDto } from '@sync-in-server/backend/src/applications/files/dto/file-operations.dto'
import type { FileProps } from '@sync-in-server/backend/src/applications/files/interfaces/file-props.interface'
import type { FileSpace } from '@sync-in-server/backend/src/applications/files/interfaces/file-space.interface'
-import { FileTaskStatus } from '@sync-in-server/backend/src/applications/files/models/file-task'
+import { type FileTask, FileTaskStatus } from '@sync-in-server/backend/src/applications/files/models/file-task'
import { SHARE_TYPE } from '@sync-in-server/backend/src/applications/shares/constants/shares'
import { SPACE_OPERATION, SPACE_REPOSITORY } from '@sync-in-server/backend/src/applications/spaces/constants/spaces'
import type { SpaceFiles } from '@sync-in-server/backend/src/applications/spaces/interfaces/space-files.interface'
@@ -476,14 +476,32 @@ export class SpacesBrowserComponent implements OnInit, AfterViewInit, OnDestroy
this.selection[0].isRenamed = !this.selection[0].isRenamed
}
- renameFile(ev: { object: FileModel; name: string }) {
+ async renameFile(ev: { object: FileModel; name: string }) {
const f: FileModel = ev.object
- const name = ev.name
- if (this.files.find((file) => file.name === name)) {
- this.layout.sendNotification('error', 'Rename', 'The destination already exists')
- return
- }
- this.filesService.rename(f, name)
+ const renamedTo = ev.name
+ let overwrite = false
+ const fileExists = this.files.find((file) => file.name.toLowerCase() === renamedTo.toLowerCase() && file.id !== f.id)
+ if (fileExists) {
+ overwrite = await this.filesService.openOverwriteDialog([f], renamedTo)
+ if (!overwrite) return
+ }
+ this.filesService
+ .rename(f, renamedTo, overwrite)
+ .pipe(take(1))
+ .subscribe({
+ next: (dto: Pick<FileTask, 'name'>) => {
+ f.rename(dto.name)
+ f.isEditable = false
+ if (overwrite) {
+ this.sortBy(
+ this.sortTable.sortParam.column,
+ false,
+ this.files.filter((file) => file.id !== fileExists.id)
+ )
+ }
+ },
+ error: (e: HttpErrorResponse) => this.layout.sendNotification('error', 'Rename', f.name, e)
+ })
}
setRenamingInProgress(ev: boolean) {
@@ -557,32 +575,32 @@ export class SpacesBrowserComponent implements OnInit, AfterViewInit, OnDestroy
}
async onUploadFiles(ev: { files: File[] }, isDirectory = false) {
- let doOverwrite = false
+ let overwrite = false
if (isDirectory) {
const dirName = ev.files[0].webkitRelativePath.split('/')[0]
- const dirExist = this.files.find((f) => f.name.toLowerCase() === dirName.toLowerCase())
- if (dirExist) {
- doOverwrite = await this.filesService.openOverwriteDialog([{ name: dirName } as File])
- if (!doOverwrite) return
+ const dirExists = this.files.find((f) => f.name.toLowerCase() === dirName.toLowerCase())
+ if (dirExists) {
+ overwrite = await this.filesService.openOverwriteDialog([dirExists])
+ if (!overwrite) return
}
} else {
const exist: File[] = [...ev.files].filter((f: File) => this.files.some((x) => x.name.toLowerCase() === f.name.toLowerCase()))
if (exist.length > 0) {
- doOverwrite = await this.filesService.openOverwriteDialog(exist)
- if (!doOverwrite) return
+ overwrite = await this.filesService.openOverwriteDialog(exist)
+ if (!overwrite) return
}
}
- this.filesUpload.addFiles(ev.files, doOverwrite).catch(console.error)
+ this.filesUpload.addFiles(ev.files, overwrite).catch(console.error)
}
async onDropFiles(ev: { dataTransfer: { files: File[] } }) {
- let doOverwrite = false
+ let overwrite = false
const exist: File[] = [...ev.dataTransfer.files].filter((f: File) => this.files.some((x) => x.name.toLowerCase() === f.name.toLowerCase()))
if (exist.length > 0) {
- doOverwrite = await this.filesService.openOverwriteDialog(exist)
- if (!doOverwrite) return
+ overwrite = await this.filesService.openOverwriteDialog(exist)
+ if (!overwrite) return
}
- this.filesUpload.onDropFiles(ev, doOverwrite)
+ this.filesUpload.onDropFiles(ev, overwrite)
}
decompressFile() {
diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.json
index 4f68f85e..4d5f1cd7 100644
--- a/frontend/src/i18n/de.json
+++ b/frontend/src/i18n/de.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Bewahren Sie diese Codes an einem sicheren Ort auf. Sie ermöglichen Ihnen den Zugriff auf Ihr Konto, falls Sie den Zugriff auf Ihre Zwei‑Faktor‑Authentifizierung verlieren.",
"These recovery codes are for one-time use only and will only be displayed here once.": "Diese Wiederherstellungscodes sind nur einmal verwendbar und werden hier nur einmal angezeigt.",
"Overwrite Existing File(s)": "Vorhandene Datei(en) überschreiben",
- "Do you want to replace the existing file(s)?": "Möchten Sie die vorhandene(n) Datei(en) ersetzen?"
+ "Replace Existing File": "Vorhandene Datei ersetzen",
+ "Do you want to replace the existing file(s)?": "Möchten Sie die vorhandene(n) Datei(en) ersetzen?",
+ "RenameFileToExisting": "Möchten Sie <b>{{ old }}</b> in <b>{{ new }}</b> umbenennen?"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json
index 552e244e..3f0badf2 100644
--- a/frontend/src/i18n/en.json
+++ b/frontend/src/i18n/en.json
@@ -20,5 +20,6 @@
"scheduler_unit_day": "scheduler_unit_day",
"no_selection": "no item selected",
"one_selection": "{{ nb }} item selected",
- "nb_selections": "{{ nb }} items selected"
+ "nb_selections": "{{ nb }} items selected",
+ "RenameFileToExisting": "Do you want to rename <b>{{ old }}</b> to <b>{{ new }}</b>?"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.json
index e3137b8b..3ff8f5dc 100644
--- a/frontend/src/i18n/es.json
+++ b/frontend/src/i18n/es.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Guarde estos códigos en un lugar seguro. Le permitirán acceder a su cuenta si pierde el acceso a su autenticación de dos factores.",
"These recovery codes are for one-time use only and will only be displayed here once.": "Estos códigos de recuperación son de un solo uso y solo se mostrarán aquí una vez.",
"Overwrite Existing File(s)": "Sobrescribir archivo(s) existente(s)",
- "Do you want to replace the existing file(s)?": "¿Desea reemplazar el/los archivo(s) existente(s)?"
+ "Replace Existing File": "Reemplazar archivo existente",
+ "Do you want to replace the existing file(s)?": "¿Desea reemplazar el/los archivo(s) existente(s)?",
+ "RenameFileToExisting": "¿Desea renombrar <b>{{ old }}</b> a <b>{{ new }}</b>?"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.json
index addef8e2..1b765a60 100644
--- a/frontend/src/i18n/fr.json
+++ b/frontend/src/i18n/fr.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Conservez ces codes en lieu sûr. Ils vous permettront d’accéder à votre compte si vous perdez l’accès à votre authentification à deux facteurs.",
"These recovery codes are for one-time use only and will only be displayed here once.": "Ces codes de récupération sont à usage unique et ne seront affichés qu’une seule fois ici.",
"Overwrite Existing File(s)": "Écraser le(s) fichier(s) existant(s)",
- "Do you want to replace the existing file(s)?": "Voulez-vous remplacer le(s) fichier(s) existant(s) ?"
+ "Replace Existing File": "Remplacer le fichier existant",
+ "Do you want to replace the existing file(s)?": "Voulez-vous remplacer le(s) fichier(s) existant(s) ?",
+ "RenameFileToExisting": "Souhaitez-vous renommer <b>{{ old }}</b> en <b>{{ new }}</b> ?"
}
diff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.json
index 40153b5f..f0a1a466 100644
--- a/frontend/src/i18n/hi.json
+++ b/frontend/src/i18n/hi.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "इन कोडों को सुरक्षित स्थान पर रखें। यदि आप द्वि-कारक प्रमाणीकरण की पहुँच खो देते हैं, तो ये आपके खाते तक पहुँचने में मदद करेंगे।",
"These recovery codes are for one-time use only and will only be displayed here once.": "ये रिकवरी कोड केवल एक बार उपयोग के लिए हैं और यहाँ केवल एक बार दिखाए जाएँगे।",
"Overwrite Existing File(s)": "मौजूदा फ़ाइल(ों) को अधिलेखित करें",
- "Do you want to replace the existing file(s)?": "क्या आप मौजूदा फ़ाइल(ों) को बदलना चाहते हैं?"
+ "Replace Existing File": "मौजूदा फ़ाइल प्रतिस्थापित करें",
+ "Do you want to replace the existing file(s)?": "क्या आप मौजूदा फ़ाइल(ों) को बदलना चाहते हैं?",
+ "RenameFileToExisting": "क्या आप <b>{{ old }}</b> का नाम बदलकर <b>{{ new }}</b> करना चाहते हैं?"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json
index 6f548f54..3b1ad001 100644
--- a/frontend/src/i18n/it.json
+++ b/frontend/src/i18n/it.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Conserva questi codici in un luogo sicuro. Ti permetteranno di accedere al tuo account se perdi l’accesso alla tua autenticazione a due fattori.",
"These recovery codes are for one-time use only and will only be displayed here once.": "Questi codici di recupero sono monouso e verranno mostrati qui una sola volta.",
"Overwrite Existing File(s)": "Sovrascrivere il/i file esistente/i",
- "Do you want to replace the existing file(s)?": "Vuoi sostituire il/i file esistente/i?"
+ "Replace Existing File": "Sostituire il file esistente",
+ "Do you want to replace the existing file(s)?": "Vuoi sostituire il/i file esistente/i?",
+ "RenameFileToExisting": "Vuoi rinominare <b>{{ old }}</b> in <b>{{ new }}</b>?"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.json
index 59cd2381..aa36a2a9 100644
--- a/frontend/src/i18n/ja.json
+++ b/frontend/src/i18n/ja.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "これらのコードは安全な場所に保管してください。二要素認証を利用できなくなった場合でも、アカウントにアクセスできます。",
"These recovery codes are for one-time use only and will only be displayed here once.": "これらの復旧コードは一度しか使用できず、ここに一度だけ表示されます。",
"Overwrite Existing File(s)": "既存のファイルを上書き",
- "Do you want to replace the existing file(s)?": "既存のファイルを置き換えますか?"
+ "Replace Existing File": "既存のファイルを置き換える",
+ "Do you want to replace the existing file(s)?": "既存のファイルを置き換えますか?",
+ "RenameFileToExisting": "<b>{{ old }}</b> の名前を <b>{{ new }}</b> に変更しますか?"
}
diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.json
index 7e3d16a1..2b811e80 100644
--- a/frontend/src/i18n/ko.json
+++ b/frontend/src/i18n/ko.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "이 코드는 안전한 곳에 보관하세요. 2단계 인증에 접근할 수 없게 되어도 계정에 접근할 수 있습니다.",
"These recovery codes are for one-time use only and will only be displayed here once.": "이 복구 코드는 1회용이며 여기에서 한 번만 표시됩니다.",
"Overwrite Existing File(s)": "기존 파일 덮어쓰기",
- "Do you want to replace the existing file(s)?": "기존 파일을 교체하시겠습니까?"
+ "Replace Existing File": "기존 파일 교체",
+ "Do you want to replace the existing file(s)?": "기존 파일을 교체하시겠습니까?",
+ "RenameFileToExisting": "<b>{{ old }}</b>의 이름을 <b>{{ new }}</b>(으)로 변경하시겠습니까?"
}
diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.json
index 71a7d5ea..6674edbf 100644
--- a/frontend/src/i18n/pl.json
+++ b/frontend/src/i18n/pl.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Przechowuj te kody w bezpiecznym miejscu. Umożliwią dostęp do konta, jeśli utracisz dostęp do uwierzytelniania dwuskładnikowego.",
"These recovery codes are for one-time use only and will only be displayed here once.": "Te kody odzyskiwania są jednorazowe i zostaną tu wyświetlone tylko raz.",
"Overwrite Existing File(s)": "Nadpisać istniejący(e) plik(i)",
- "Do you want to replace the existing file(s)?": "Czy chcesz zastąpić istniejący(e) plik(i)?"
+ "Replace Existing File": "Zastąpić istniejący plik",
+ "Do you want to replace the existing file(s)?": "Czy chcesz zastąpić istniejący(e) plik(i)?",
+ "RenameFileToExisting": "Czy chcesz zmienić nazwę <b>{{ old }}</b> na <b>{{ new }}</b>?"
}
diff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.json
index 046e8025..5253306c 100644
--- a/frontend/src/i18n/pt-BR.json
+++ b/frontend/src/i18n/pt-BR.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Guarde estes códigos em um local seguro. Eles permitirão acessar sua conta caso você perca o acesso à autenticação de dois fatores.",
"These recovery codes are for one-time use only and will only be displayed here once.": "Estes códigos de recuperação são de uso único e serão exibidos aqui apenas uma vez.",
"Overwrite Existing File(s)": "Sobrescrever arquivo(s) existente(s)",
- "Do you want to replace the existing file(s)?": "Deseja substituir o(s) arquivo(s) existente(s)?"
+ "Replace Existing File": "Substituir o arquivo existente",
+ "Do you want to replace the existing file(s)?": "Deseja substituir o(s) arquivo(s) existente(s)?",
+ "RenameFileToExisting": "Deseja renomear <b>{{ old }}</b> para <b>{{ new }}</b>?"
}
diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.json
index f99c9c1d..928336e0 100644
--- a/frontend/src/i18n/pt.json
+++ b/frontend/src/i18n/pt.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Guarde estes códigos em um local seguro. Eles permitirão que você acesse sua conta se perder o acesso à sua autenticação de dois fatores.",
"These recovery codes are for one-time use only and will only be displayed here once.": "Estes códigos de recuperação são de uso único e serão exibidos aqui apenas uma vez.",
"Overwrite Existing File(s)": "Sobrescrever arquivo(s) existente(s)",
- "Do you want to replace the existing file(s)?": "Deseja substituir o(s) arquivo(s) existente(s)?"
+ "Replace Existing File": "Substituir arquivo existente",
+ "Do you want to replace the existing file(s)?": "Deseja substituir o(s) arquivo(s) existente(s)?",
+ "RenameFileToExisting": "Deseja renomear <b>{{ old }}</b> para <b>{{ new }}</b>?"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.json
index 06b86bb5..8500012c 100644
--- a/frontend/src/i18n/ru.json
+++ b/frontend/src/i18n/ru.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Храните эти коды в надёжном месте. Они позволят вам получить доступ к аккаунту, если вы потеряете доступ к двухфакторной аутентификации.",
"These recovery codes are for one-time use only and will only be displayed here once.": "Эти коды восстановления одноразовые и будут показаны здесь только один раз.",
"Overwrite Existing File(s)": "Перезаписать существующие файл(ы)",
- "Do you want to replace the existing file(s)?": "Вы хотите заменить существующие файл(ы)?"
+ "Replace Existing File": "Заменить существующий файл",
+ "Do you want to replace the existing file(s)?": "Вы хотите заменить существующие файл(ы)?",
+ "RenameFileToExisting": "Переименовать <b>{{ old }}</b> в <b>{{ new }}</b>?"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.json
index 3458dcf8..0c973a2d 100644
--- a/frontend/src/i18n/tr.json
+++ b/frontend/src/i18n/tr.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "Bu kodları güvenli bir yerde saklayın. İki aşamalı doğrulamaya erişimi kaybetseniz bile hesabınıza erişmenizi sağlar.",
"These recovery codes are for one-time use only and will only be displayed here once.": "Bu kurtarma kodları tek kullanımlıktır ve burada yalnızca bir kez görüntülenir.",
"Overwrite Existing File(s)": "Mevcut dosya(ları) üzerine yaz",
- "Do you want to replace the existing file(s)?": "Mevcut dosya(ları) değiştirmek istiyor musunuz?"
+ "Replace Existing File": "Mevcut dosyayı değiştir",
+ "Do you want to replace the existing file(s)?": "Mevcut dosya(ları) değiştirmek istiyor musunuz?",
+ "RenameFileToExisting": "<b>{{ old }}</b> dosyasını <b>{{ new }}</b> olarak yeniden adlandırmak istiyor musunuz?"
}
diff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.json
index a7e58c5d..113cf36b 100644
--- a/frontend/src/i18n/zh.json
+++ b/frontend/src/i18n/zh.json
@@ -597,5 +597,7 @@
"Keep these codes in a safe place. They will allow you to access your account if you lose access to your two-factor authentication.": "请将这些代码保存在安全的地方。如果您无法使用双重身份验证,它们可帮助您访问账户。",
"These recovery codes are for one-time use only and will only be displayed here once.": "这些恢复代码仅可使用一次,并且只会在此显示一次。",
"Overwrite Existing File(s)": "覆盖现有文件",
- "Do you want to replace the existing file(s)?": "是否要替换现有文件?"
+ "Replace Existing File": "替换现有文件",
+ "Do you want to replace the existing file(s)?": "是否要替换现有文件?",
+ "RenameFileToExisting": "您确定要将 <b>{{ old }}</b> 重命名为 <b>{{ new }}</b> 吗?"
}
\ No newline at end of file