initial translations support using deepl

This commit is contained in:
Yo'av Moshe
2024-04-11 23:05:38 +02:00
parent a47d36f5e5
commit 84d072b763
9 changed files with 74 additions and 2 deletions

View File

@@ -199,6 +199,10 @@
<div>
<textarea class="form-control" id="content" rows="20" formControlName='content' [class.rtl]="isRTL"></textarea>
</div>
<h3>Translation</h3>
<div>
<textarea class="form-control" id="translation" rows="20" formControlName='translation' [class.rtl]="isRTL"></textarea>
</div>
</ng-template>
</li>

View File

@@ -86,6 +86,7 @@ const doc: Document = {
storage_path: 31,
tags: [41, 42, 43],
content: 'text content',
translation: 'text content',
added: new Date('May 4, 2014 03:24:00'),
created: new Date('May 4, 2014 03:24:00'),
modified: new Date('May 4, 2014 03:24:00'),

View File

@@ -138,6 +138,7 @@ export class DocumentDetailComponent
documentForm: FormGroup = new FormGroup({
title: new FormControl(''),
content: new FormControl(''),
translation: new FormControl(''),
created_date: new FormControl(),
correspondent: new FormControl(),
document_type: new FormControl(),
@@ -404,6 +405,7 @@ export class DocumentDetailComponent
this.store = new BehaviorSubject({
title: doc.title,
content: doc.content,
translation: doc.translation,
created_date: doc.created_date,
correspondent: doc.correspondent,
document_type: doc.document_type,

View File

@@ -32,6 +32,8 @@ export interface Document extends ObjectWithPermissions {
content?: string
translation?: string
tags$?: Observable<Tag[]>
tags?: number[]