Skip to content

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

feat(files): add optional document types for frontend

johaven7e8f64f0a111
diff --git a/backend/src/app.service.spec.ts b/backend/src/app.service.spec.ts
index 7cc40cb4..8a7c087e 100644
--- a/backend/src/app.service.spec.ts
+++ b/backend/src/app.service.spec.ts
@@ -87,6 +87,7 @@ describe(AppService.name, () => {
process.env[`${ENVIRONMENT_PREFIX}LOGGER_STDOUT`] = 'false'
process.env[`${ENVIRONMENT_PREFIX}LOGGER_COLORIZE`] = '"false"'
process.env[`${ENVIRONMENT_PREFIX}APPLICATIONS_FILES_MAXUPLOADSIZE`] = '8888'
+ process.env[`${ENVIRONMENT_PREFIX}APPLICATIONS_FILES_SAMPLEDOCUMENTS`] = 'microsoft'
// docker compose secret file
process.env[`${ENVIRONMENT_PREFIX}AUTH_TOKEN_ACCESS_SECRET_FILE`] = tmpSecretFile
conf = exportConfiguration(true)
@@ -94,6 +95,7 @@ describe(AppService.name, () => {
expect(conf.logger.stdout).toBe(false)
expect(conf.logger.colorize).toBe(false)
expect(conf.applications.files.maxUploadSize).toBe(8888)
+ expect(conf.applications.files.sampleDocuments).toEqual(['microsoft'])
expect(conf.auth.token.access.secret).toBe('fooBAR8888')
// clean up secret file
fs.promises.rm(tmpSecretFile, { force: true }).catch(console.error)
diff --git a/backend/src/applications/files/constants/samples.ts b/backend/src/applications/files/constants/samples.ts
index b15c22db..c9b13cb8 100644
--- a/backend/src/applications/files/constants/samples.ts
+++ b/backend/src/applications/files/constants/samples.ts
@@ -1,11 +1,32 @@
export const SAMPLE_PATH_WITHOUT_EXT = '../assets/samples/sample'
-export const DOCUMENT_TYPE = {
- 'Microsoft Word': '.docx',
- 'Microsoft Excel': '.xlsx',
- 'Microsoft PowerPoint': '.pptx',
- 'Open Document Text': '.odt',
- 'Open Document Spreadsheet': '.ods',
- 'Open Document Presentation': '.odp',
- 'Rich Text Format': '.rtf',
- Text: '.txt'
+export const SAMPLE_DOCUMENT_GROUPS = ['opendocument', 'microsoft'] as const
+export type SampleDocumentGroup = (typeof SAMPLE_DOCUMENT_GROUPS)[number]
+export type DocumentTypes = Record<string, string>
+
+export const DOCUMENT_TYPES_BY_GROUP: Record<SampleDocumentGroup, DocumentTypes> = {
+ opendocument: {
+ Document: 'odt',
+ Spreadsheet: 'ods',
+ Presentation: 'odp'
+ },
+ microsoft: {
+ 'Microsoft Word': 'docx',
+ 'Microsoft Excel': 'xlsx',
+ 'Microsoft PowerPoint': 'pptx'
+ }
}
+
+export const DEFAULT_DOCUMENT_TYPES: DocumentTypes = {
+ Text: 'txt',
+ Markdown: 'md'
+}
+
+export function getDocumentTypes(groups: readonly SampleDocumentGroup[] = SAMPLE_DOCUMENT_GROUPS): DocumentTypes {
+ const configuredDocumentTypes = groups.reduce(
+ (documentTypes: DocumentTypes, group: SampleDocumentGroup) => ({ ...documentTypes, ...DOCUMENT_TYPES_BY_GROUP[group] }),
+ {}
+ )
+ return { ...configuredDocumentTypes, ...DEFAULT_DOCUMENT_TYPES }
+}
+
+export const ALL_DOCUMENT_TYPES = getDocumentTypes()
diff --git a/backend/src/applications/files/files.config.ts b/backend/src/applications/files/files.config.ts
index 6d6869b2..ab128da5 100644
--- a/backend/src/applications/files/files.config.ts
+++ b/backend/src/applications/files/files.config.ts
@@ -1,8 +1,10 @@
import { Transform, Type } from 'class-transformer'
import {
ArrayNotEmpty,
+ ArrayUnique,
IsArray,
IsBoolean,
+ IsIn,
IsInt,
IsNotEmpty,
IsNotEmptyObject,
@@ -12,6 +14,8 @@ import {
ValidateIf,
ValidateNested
} from 'class-validator'
+import type { SampleDocumentGroup } from './constants/samples'
+import { SAMPLE_DOCUMENT_GROUPS } from './constants/samples'
import { CollaboraOnlineConfig } from './editors/collabora-online/collabora-online.config'
import { OnlyOfficeConfig } from './editors/only-office/only-office.config'
@@ -78,6 +82,19 @@ export class FilesConfig {
@IsBoolean()
showHiddenFiles: boolean = false
+ @Transform(({ value }) =>
+ typeof value === 'string'
+ ? value
+ .split(',')
+ .map((v: string) => v.trim())
+ .filter(Boolean)
+ : value
+ )
+ @ArrayUnique()
+ @IsArray()
+ @IsIn(SAMPLE_DOCUMENT_GROUPS, { each: true })
+ sampleDocuments: SampleDocumentGroup[] = [...SAMPLE_DOCUMENT_GROUPS]
+
@IsNotEmptyObject()
@ValidateNested()
@Type(() => OnlyOfficeConfig)
diff --git a/backend/src/applications/files/services/files-manager.service.ts b/backend/src/applications/files/services/files-manager.service.ts
index 18ac5a44..866c2a13 100644
--- a/backend/src/applications/files/services/files-manager.service.ts
+++ b/backend/src/applications/files/services/files-manager.service.ts
@@ -25,7 +25,7 @@ import { CACHE_LOCK_FILE_TTL } from '../constants/cache'
import { TAR_EXTENSION, TAR_GZ_EXTENSION } from '../constants/compress'
import { COMPRESSION_EXTENSION, DEFAULT_HIGH_WATER_MARK } from '../constants/files'
import { FILE_OPERATION } from '../constants/operations'
-import { DOCUMENT_TYPE, SAMPLE_PATH_WITHOUT_EXT } from '../constants/samples'
+import { ALL_DOCUMENT_TYPES, DEFAULT_DOCUMENT_TYPES, SAMPLE_PATH_WITHOUT_EXT } from '../constants/samples'
import { CompressFileDto, DownloadFileDto } from '../dto/file-operations.dto'
import { FileDBProps } from '../interfaces/file-db-props.interface'
import { FileLock } from '../interfaces/file-lock.interface'
@@ -291,9 +291,13 @@ export class FilesManager {
await this.filesLockManager.checkConflicts(space.dbFile, DEPTH.RESOURCE, { userId: user.id })
}
// use sample documents when possible
- const fileExtension = path.extname(space.realPath)
- if (checkDocument && fileExtension !== '.txt' && Object.values(DOCUMENT_TYPE).indexOf(fileExtension) > -1) {
- const srcSample = path.join(__dirname, `${SAMPLE_PATH_WITHOUT_EXT}${fileExtension}`)
+ const fileExtension = path.extname(space.realPath).slice(1)
+ if (
+ checkDocument &&
+ Object.values(DEFAULT_DOCUMENT_TYPES).indexOf(fileExtension) === -1 &&
+ Object.values(ALL_DOCUMENT_TYPES).indexOf(fileExtension) > -1
+ ) {
+ const srcSample = path.join(__dirname, `${SAMPLE_PATH_WITHOUT_EXT}.${fileExtension}`)
await copyFileContent(srcSample, space.realPath)
// emit file event
FileEvent.emit('event', { user, space, action: ACTION.ADD, rPath: space.realPath })
diff --git a/backend/src/applications/links/services/links-manager.service.ts b/backend/src/applications/links/services/links-manager.service.ts
index 50b24004..46166b58 100644
--- a/backend/src/applications/links/services/links-manager.service.ts
+++ b/backend/src/applications/links/services/links-manager.service.ts
@@ -44,7 +44,7 @@ export class LinksManager {
}
if (spaceLink?.share) {
// Only used when the link is a file or a directory
- spaceLink.fileEditors = serverConfig.fileEditors
+ spaceLink.fileEditors = serverConfig.files.editors
}
}
return { ok: ok, error: ok ? null : check, link: spaceLink }
diff --git a/backend/src/configuration/config.environment.ts b/backend/src/configuration/config.environment.ts
index 1fe8e776..749edee4 100755
--- a/backend/src/configuration/config.environment.ts
+++ b/backend/src/configuration/config.environment.ts
@@ -1,4 +1,5 @@
import { join } from 'node:path'
+import { getDocumentTypes } from '../applications/files/constants/samples'
import { FilesContentIndexingConfig } from '../applications/files/files.config'
import { AuthTokenAccessConfig, AuthTokenRefreshConfig } from '../authentication/auth.config'
import { ACCESS_KEY, CSRF_KEY, TWO_FA_VERIFY_EXPIRATION, WS_KEY } from '../authentication/constants/auth'
@@ -12,9 +13,12 @@ export const configuration: GlobalConfig = loadConfiguration()
export const serverConfig: ServerConfig = {
twoFaEnabled: configuration.auth.mfa.totp.enabled,
mailServerEnabled: !!configuration.mail?.host,
- fileEditors: {
- collabora: configuration.applications.files.collabora.enabled,
- onlyoffice: configuration.applications.files.onlyoffice.enabled
+ files: {
+ editors: {
+ collabora: configuration.applications.files.collabora.enabled,
+ onlyoffice: configuration.applications.files.onlyoffice.enabled
+ },
+ sampleDocuments: getDocumentTypes(configuration.applications.files.sampleDocuments)
}
}
export const exportConfiguration: (reload?: boolean) => GlobalConfig = (reload = false) => (reload ? loadConfiguration() : configuration)
diff --git a/backend/src/configuration/config.interfaces.ts b/backend/src/configuration/config.interfaces.ts
index 731fed8a..96cd77fb 100644
--- a/backend/src/configuration/config.interfaces.ts
+++ b/backend/src/configuration/config.interfaces.ts
@@ -1,7 +1,13 @@
+import type { DocumentTypes } from '../applications/files/constants/samples'
import type { FileEditorProviders } from '../applications/files/editors/file-editor-providers.interface'
+export interface ServerFilesConfig {
+ editors: FileEditorProviders
+ sampleDocuments: DocumentTypes
+}
+
export interface ServerConfig {
twoFaEnabled: boolean
mailServerEnabled: boolean
- fileEditors: FileEditorProviders
+ files: ServerFilesConfig
}
diff --git a/environment/environment.dist.yaml b/environment/environment.dist.yaml
index 2cc920a4..f51d6b0d 100755
--- a/environment/environment.dist.yaml
+++ b/environment/environment.dist.yaml
@@ -343,6 +343,11 @@ applications:
# Show files starting with a dot in the file explorer
# default: false
showHiddenFiles: false
+ # Optional document groups shown in the "new document" dialog.
+ # options: `microsoft` | `opendocument`
+ # use [] to only show Text and Markdown
+ # default: [opendocument, microsoft]
+ sampleDocuments: [opendocument, microsoft]
onlyoffice:
# enable onlyoffice integration
# default: false
diff --git a/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.html b/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.html
index ab96f62f..fb178d56 100755
--- a/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.html
+++ b/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.html
@@ -24,7 +24,14 @@
</button>
<ul *dropdownMenu aria-labelledby="button-animated" class="dropdown-menu" id="dropdown-animated" role="menu">
@for (item of docTypes | keyvalue: originalOrderKeyValue; track item.key) {
- <li role="menuitem"><a (click)="onSelectDocType(item.key)" class="dropdown-item" l10nTranslate>{{ item.key }}</a></li>
+ <li role="menuitem">
+ <a (click)="onSelectDocType(item.key)" class="dropdown-item">
+ <div class="d-flex align-items-center">
+ <div class="me-5" l10nTranslate>{{ item.key }}</div>
+ <div class="ms-auto fs-xs">{{ item.value }}</div>
+ </div>
+ </a>
+ </li>
}
</ul>
</div>
@@ -34,29 +41,33 @@
<span class="input-group-text">
<fa-icon [icon]="icons.faGlobe"></fa-icon>
</span>
- <input [(ngModel)]="downloadProp.url"
- (keydown.control.v)="pasteUrl()"
- (keydown.meta.v)="pasteUrl()"
- [placeholder]="downloadProp.placeholder|translate:locale.language"
- class="form-control"
- type="text"
- appAutofocus>
+ <input
+ [(ngModel)]="downloadProp.url"
+ (keydown.control.v)="pasteUrl()"
+ (keydown.meta.v)="pasteUrl()"
+ [placeholder]="downloadProp.placeholder | translate: locale.language"
+ class="form-control"
+ type="text"
+ appAutofocus
+ />
</div>
}
<div class="input-group my-2">
- <span class="input-group-text">
- @if (inputType === 'directory') {
- <fa-icon [icon]="icons.faFolderClosed"></fa-icon>
- } @else {
- <fa-icon [icon]="icons.faFileAlt"></fa-icon>
- }
- </span>
- <input #InputText
- [(ngModel)]="fileProp.name"
- [placeholder]="fileProp.placeholder|translate:locale.language"
- class="form-control"
- type="text"
- appAutofocus>
+ <span class="input-group-text">
+ @if (inputType === 'directory') {
+ <fa-icon [icon]="icons.faFolderClosed"></fa-icon>
+ } @else {
+ <fa-icon [icon]="icons.faFileAlt"></fa-icon>
+ }
+ </span>
+ <input
+ #InputText
+ [(ngModel)]="fileProp.name"
+ [placeholder]="fileProp.placeholder | translate: locale.language"
+ class="form-control"
+ type="text"
+ appAutofocus
+ />
</div>
</div>
<div class="modal-footer">
@@ -64,10 +75,12 @@
<span class="me-auto fs-sm text-danger" l10nTranslate>{{ error }}</span>
}
<button (click)="layout.closeDialog()" class="btn btn-secondary" data-dismiss="modal" type="button" l10nTranslate>Cancel</button>
- <button (click)="onSubmit()"
- [disabled]="!fileProp.name || inputType === 'download' && !downloadProp.url || submitted"
- class="btn btn-primary"
- type="button"
- l10nTranslate>Confirm
+ <button
+ (click)="onSubmit()"
+ [disabled]="!fileProp.name || (inputType === 'download' && !downloadProp.url) || submitted"
+ class="btn btn-primary"
+ type="button"
+ l10nTranslate>
+ Confirm
</button>
</div>
diff --git a/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.ts
index 432d7c22..ee0357f8 100644
--- a/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.ts
+++ b/frontend/src/app/applications/files/components/dialogs/files-new-dialog.component.ts
@@ -3,13 +3,13 @@ import { Component, ElementRef, EventEmitter, HostListener, inject, Input, OnIni
import { FormsModule } from '@angular/forms'
import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import { faCaretDown, faFileAlt, faFolderClosed, faGlobe } from '@fortawesome/free-solid-svg-icons'
-import { DOCUMENT_TYPE } from '@sync-in-server/backend/src/applications/files/constants/samples'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { BsDropdownModule } from 'ngx-bootstrap/dropdown'
import { AutofocusDirective } from '../../../../common/directives/auto-focus.directive'
import { originalOrderKeyValue } from '../../../../common/utils/functions'
import { validHttpSchemaRegexp } from '../../../../common/utils/regexp'
import { LayoutService } from '../../../../layout/layout.service'
+import { StoreService } from '../../../../store/store.service'
import { FileModel } from '../../models/file.model'
import { FilesService } from '../../services/files.service'
@@ -30,7 +30,8 @@ export class FilesNewDialogComponent implements OnInit {
protected fileProp = { title: '', name: '', placeholder: '' }
protected downloadProp = { title: 'Download from an external link', url: '', placeholder: 'URL (https://...)' }
protected selectedDocType = 'Text'
- protected docTypes = DOCUMENT_TYPE
+ private store = inject(StoreService)
+ protected docTypes = this.store.server().files.sampleDocuments
protected submitted = false
protected error: string
private filesService = inject(FilesService)
@@ -40,7 +41,8 @@ export class FilesNewDialogComponent implements OnInit {
this.fileProp.title = 'Download from URL'
this.fileProp.placeholder = 'File name'
} else if (this.inputType === 'file') {
- this.fileProp.name = `${this.layout.translateString('New document')}.txt`
+ this.selectedDocType = this.docTypes[this.selectedDocType] ? this.selectedDocType : Object.keys(this.docTypes)[0]
+ this.fileProp.name = `${this.layout.translateString('New document')}${this.docTypeExtension(this.selectedDocType)}`
this.fileProp.title = 'New document'
this.fileProp.placeholder = 'Document name'
this.updateFileSelection()
@@ -53,7 +55,7 @@ export class FilesNewDialogComponent implements OnInit {
onSelectDocType(docType: string) {
this.selectedDocType = docType
const pos = this.fileNamePosition()
- this.fileProp.name = `${this.fileProp.name.substring(0, pos < 0 ? this.fileProp.name.length : pos)}${this.docTypes[docType]}`
+ this.fileProp.name = `${this.fileProp.name.substring(0, pos < 0 ? this.fileProp.name.length : pos)}${this.docTypeExtension(docType)}`
this.updateFileSelection()
}
@@ -94,6 +96,10 @@ export class FilesNewDialogComponent implements OnInit {
return this.fileProp.name.lastIndexOf('.')
}
+ private docTypeExtension(docType: string) {
+ return `.${this.docTypes[docType]}`
+ }
+
private updateFileSelection() {
setTimeout(() => {
this.inputText.nativeElement.focus()
diff --git a/frontend/src/app/applications/files/services/files.service.ts b/frontend/src/app/applications/files/services/files.service.ts
index e348946b..16edfc2d 100644
--- a/frontend/src/app/applications/files/services/files.service.ts
+++ b/frontend/src/app/applications/files/services/files.service.ts
@@ -312,7 +312,7 @@ export class FilesService {
const editorProvider: FileEditorProviders = { collabora: false, onlyoffice: false }
if (hookedShortMime === SHORT_MIME.DOCUMENT) {
- if (this.store.server().fileEditors.collabora && this.store.server().fileEditors.onlyoffice) {
+ if (this.store.server().files.editors.collabora && this.store.server().files.editors.onlyoffice) {
// Case with multiple editors
const collaboraHasExtension = COLLABORA_ONLINE_EXTENSIONS.has(file.getExtension())
const onlyofficeHasExtension = ONLY_OFFICE_EXTENSIONS.has(file.getExtension())
@@ -333,8 +333,8 @@ export class FilesService {
}
} else {
// Based on availability
- editorProvider.collabora = this.store.server().fileEditors.collabora
- editorProvider.onlyoffice = this.store.server().fileEditors.onlyoffice
+ editorProvider.collabora = this.store.server().files.editors.collabora
+ editorProvider.onlyoffice = this.store.server().files.editors.onlyoffice
}
}
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 81ff7b63..5175bb75 100644
--- a/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
+++ b/frontend/src/app/applications/spaces/components/spaces-browser.component.ts
@@ -342,7 +342,7 @@ export class SpacesBrowserComponent implements OnInit, AfterViewInit, OnDestroy
this.sortBy(
this.sortTable.sortParam.column,
false,
- spacesFiles.files.map((f: FileProps) => new FileModel(f, this.baseRepoUrl, this.isSharesRepo, this.store.server().fileEditors))
+ spacesFiles.files.map((f: FileProps) => new FileModel(f, this.baseRepoUrl, this.isSharesRepo, this.store.server().files.editors))
)
this.updateFilesStats(this.files)
this.loading = false
diff --git a/frontend/src/app/applications/users/components/user-account.component.ts b/frontend/src/app/applications/users/components/user-account.component.ts
index 44b29ff4..97838853 100644
--- a/frontend/src/app/applications/users/components/user-account.component.ts
+++ b/frontend/src/app/applications/users/components/user-account.component.ts
@@ -89,7 +89,7 @@ export class UserAccountComponent implements OnInit, OnDestroy {
translating: true,
sameLink: true
})
- this.showEditorPreference = this.store.server().fileEditors.collabora && this.store.server().fileEditors.onlyoffice
+ this.showEditorPreference = this.store.server().files.editors.collabora && this.store.server().files.editors.onlyoffice
if (this.showEditorPreference) {
this.userEditorPreference = this.userService.getEditorProviderPreference()
}
diff --git a/frontend/src/app/store/store.service.ts b/frontend/src/app/store/store.service.ts
index 5f55fea6..642a294c 100644
--- a/frontend/src/app/store/store.service.ts
+++ b/frontend/src/app/store/store.service.ts
@@ -1,4 +1,5 @@
import { computed, Injectable, Signal, signal, WritableSignal } from '@angular/core'
+import { ALL_DOCUMENT_TYPES } from '@sync-in-server/backend/src/applications/files/constants/samples'
import type { SearchFilesDto } from '@sync-in-server/backend/src/applications/files/dto/file-operations.dto'
import type { FileTask } from '@sync-in-server/backend/src/applications/files/models/file-task'
import { AppStoreManifest } from '@sync-in-server/backend/src/applications/sync/interfaces/store-manifest.interface'
@@ -29,7 +30,10 @@ export class StoreService {
public server: WritableSignal<ServerConfig> = signal<ServerConfig>({
twoFaEnabled: false,
mailServerEnabled: false,
- fileEditors: { collabora: false, onlyoffice: false }
+ files: {
+ editors: { collabora: false, onlyoffice: false },
+ sampleDocuments: ALL_DOCUMENT_TYPES
+ }
})
public user = new BehaviorSubject<UserType>(null)
public userAvatarUrl = new BehaviorSubject<string>(myAvatarUrl())
diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.json
index 7b2a1144..dce3d081 100644
--- a/frontend/src/i18n/de.json
+++ b/frontend/src/i18n/de.json
@@ -349,8 +349,10 @@
"New document": "Neues Dokument",
"File name": "Dateiname",
"File permissions": "Dateiberechtigungen",
+ "Document": "Dokument",
+ "Spreadsheet": "Tabellenkalkulation",
+ "Presentation": "Präsentation",
"Text": "Text",
- "Rich Text Format": "Rich Text Format",
"Forbidden characters": "Unzulässige Zeichen",
"Elements": "Elemente",
"Malformed URL": "Fehlerhafte URL",
diff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.json
index d8d1b310..2af701e6 100644
--- a/frontend/src/i18n/es.json
+++ b/frontend/src/i18n/es.json
@@ -349,8 +349,10 @@
"New document": "Nuevo documento",
"File name": "Nombre del archivo",
"File permissions": "Permisos del archivo",
+ "Document": "Documento",
+ "Spreadsheet": "Hoja de cálculo",
+ "Presentation": "Presentación",
"Text": "Texto",
- "Rich Text Format": "Texto enriquecido",
"Forbidden characters": "Caracteres prohibidos",
"Elements": "Elementos",
"Malformed URL": "URL mal formada",
diff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.json
index 8bbafb1e..e308a6f6 100644
--- a/frontend/src/i18n/fr.json
+++ b/frontend/src/i18n/fr.json
@@ -349,8 +349,10 @@
"New document": "Nouveau document",
"File name": "Nom du fichier",
"File permissions": "Permissions du fichier",
+ "Document": "Document",
+ "Spreadsheet": "Tableur",
+ "Presentation": "Présentation",
"Text": "Texte",
- "Rich Text Format": "Texte Enrichi",
"Forbidden characters": "Caractères interdits",
"Elements": "Éléments",
"Malformed URL": "URL mal formée",
diff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.json
index ba6cbf72..a2ca4b67 100644
--- a/frontend/src/i18n/hi.json
+++ b/frontend/src/i18n/hi.json
@@ -349,8 +349,10 @@
"New document": "नया दस्तावेज़",
"File name": "फ़ाइल का नाम",
"File permissions": "फ़ाइल अनुमतियाँ",
+ "Document": "दस्तावेज़",
+ "Spreadsheet": "स्प्रेडशीट",
+ "Presentation": "प्रस्तुति",
"Text": "पाठ",
- "Rich Text Format": "रिच टेक्स्ट फ़ॉर्मेट",
"Forbidden characters": "निषिद्ध अक्षर",
"Elements": "तत्व",
"Malformed URL": "त्रुटिपूर्ण URL",
diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json
index fe38aacc..ca6530e1 100644
--- a/frontend/src/i18n/it.json
+++ b/frontend/src/i18n/it.json
@@ -349,8 +349,10 @@
"New document": "Nuovo documento",
"File name": "Nome del file",
"File permissions": "Permessi del file",
+ "Document": "Documento",
+ "Spreadsheet": "Foglio di calcolo",
+ "Presentation": "Presentazione",
"Text": "Testo",
- "Rich Text Format": "Formato di testo RTF",
"Forbidden characters": "Caratteri non consentiti",
"Elements": "Elementi",
"Malformed URL": "URL malformato",
diff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.json
index 6a7a7636..f3709aaa 100644
--- a/frontend/src/i18n/ja.json
+++ b/frontend/src/i18n/ja.json
@@ -349,8 +349,10 @@
"New document": "新しいドキュメント",
"File name": "ファイル名",
"File permissions": "ファイルの権限",
+ "Document": "文書",
+ "Spreadsheet": "スプレッドシート",
+ "Presentation": "プレゼンテーション",
"Text": "テキスト",
- "Rich Text Format": "リッチテキスト形式",
"Forbidden characters": "使用できない文字",
"Elements": "要素",
"Malformed URL": "不正なURL",
diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.json
index f179f9e5..be3e4c38 100644
--- a/frontend/src/i18n/ko.json
+++ b/frontend/src/i18n/ko.json
@@ -349,8 +349,10 @@
"New document": "새 문서",
"File name": "파일 이름",
"File permissions": "파일 권한",
+ "Document": "문서",
+ "Spreadsheet": "스프레드시트",
+ "Presentation": "프레젠테이션",
"Text": "텍스트",
- "Rich Text Format": "리치 텍스트 형식",
"Forbidden characters": "허용되지 않는 문자",
"Elements": "요소",
"Malformed URL": "잘못된 URL",
diff --git a/frontend/src/i18n/nl.json b/frontend/src/i18n/nl.json
index 0655d508..3d25a347 100644
--- a/frontend/src/i18n/nl.json
+++ b/frontend/src/i18n/nl.json
@@ -349,8 +349,10 @@
"New document": "Nieuw document",
"File name": "Bestandsnaam",
"File permissions": "Bestandsmachtigingen",
+ "Document": "Document",
+ "Spreadsheet": "Spreadsheet",
+ "Presentation": "Presentatie",
"Text": "Tekst",
- "Rich Text Format": "Rijke tekstindeling (RTF)",
"Forbidden characters": "Niet-toegestane tekens",
"Elements": "Items",
"Malformed URL": "Incorrecte URL",
diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.json
index 15d47feb..ceb12170 100644
--- a/frontend/src/i18n/pl.json
+++ b/frontend/src/i18n/pl.json
@@ -349,8 +349,10 @@
"New document": "Nowy dokument",
"File name": "Nazwa pliku",
"File permissions": "Uprawnienia do pliku",
+ "Document": "Dokument",
+ "Spreadsheet": "Arkusz kalkulacyjny",
+ "Presentation": "Prezentacja",
"Text": "Tekst",
- "Rich Text Format": "Rich Text Format",
"Forbidden characters": "Niedozwolone znaki",
"Elements": "Elementy",
"Malformed URL": "Nieprawidłowy URL",
diff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.json
index f761745a..4a88cb98 100644
--- a/frontend/src/i18n/pt-BR.json
+++ b/frontend/src/i18n/pt-BR.json
@@ -349,8 +349,10 @@
"New document": "Novo documento",
"File name": "Nome do arquivo",
"File permissions": "Permissões do arquivo",
+ "Document": "Documento",
+ "Spreadsheet": "Planilha",
+ "Presentation": "Apresentação",
"Text": "Texto",
- "Rich Text Format": "Rich Text Format",
"Forbidden characters": "Caracteres proibidos",
"Elements": "Elementos",
"Malformed URL": "URL malformada",
diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.json
index c7ddb7aa..4674b832 100644
--- a/frontend/src/i18n/pt.json
+++ b/frontend/src/i18n/pt.json
@@ -349,8 +349,10 @@
"New document": "Novo documento",
"File name": "Nome do arquivo",
"File permissions": "Permissões do arquivo",
+ "Document": "Documento",
+ "Spreadsheet": "Folha de cálculo",
+ "Presentation": "Apresentação",
"Text": "Texto",
- "Rich Text Format": "Texto enriquecido",
"Forbidden characters": "Caracteres proibidos",
"Elements": "Elementos",
"Malformed URL": "URL malformada",
diff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.json
index 6e9ae037..b3bc5795 100644
--- a/frontend/src/i18n/ru.json
+++ b/frontend/src/i18n/ru.json
@@ -349,8 +349,10 @@
"New document": "Новый документ",
"File name": "Имя файла",
"File permissions": "Права доступа к файлу",
+ "Document": "Документ",
+ "Spreadsheet": "Электронная таблица",
+ "Presentation": "Презентация",
"Text": "Текст",
- "Rich Text Format": "Форматированный текст",
"Forbidden characters": "Запрещённые символы",
"Elements": "Элементы",
"Malformed URL": "Некорректный URL",
diff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.json
index 4d835a51..a4de6fdc 100644
--- a/frontend/src/i18n/tr.json
+++ b/frontend/src/i18n/tr.json
@@ -349,8 +349,10 @@
"New document": "Yeni belge",
"File name": "Dosya adı",
"File permissions": "Dosya izinleri",
+ "Document": "Belge",
+ "Spreadsheet": "Elektronik tablo",
+ "Presentation": "Sunum",
"Text": "Metin",
- "Rich Text Format": "Zengin Metin Biçimi",
"Forbidden characters": "İzin verilmeyen karakterler",
"Elements": "Öğeler",
"Malformed URL": "Hatalı URL",
diff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.json
index 62f67e65..fcfa05e7 100644
--- a/frontend/src/i18n/zh.json
+++ b/frontend/src/i18n/zh.json
@@ -349,8 +349,10 @@
"New document": "新建文档",
"File name": "文件名称",
"File permissions": "文件权限",
+ "Document": "文档",
+ "Spreadsheet": "电子表格",
+ "Presentation": "演示文稿",
"Text": "文本",
- "Rich Text Format": "富文本格式",
"Forbidden characters": "禁止字符",
"Elements": "元素",
"Malformed URL": "URL 格式错误",