added translation

This commit is contained in:
Chneemann 2024-05-22 22:30:50 +02:00
parent 5db44ead15
commit 9278ed78a5
9 changed files with 24 additions and 19 deletions

View file

@ -1 +1 @@
<div class="empty">No tasks</div> <div class="empty">{{ "board.emptyTask" | translate }}</div>

View file

@ -9,10 +9,12 @@
border: 1px dashed var(--gray); border: 1px dashed var(--gray);
background-color: var(--very-light-gray2); background-color: var(--very-light-gray2);
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.16); box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.16);
font-size: 16px;
font-weight: 400;
color: var(--gray); color: var(--gray);
margin: 15.5px 0; margin: 15.5px 0;
p {
font-size: 18px;
font-weight: 400;
}
} }
@media screen and (max-width: 667px) { @media screen and (max-width: 667px) {

View file

@ -1,12 +1,11 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { TranslateModule } from '@ngx-translate/core';
@Component({ @Component({
selector: 'app-task-empty', selector: 'app-task-empty',
standalone: true, standalone: true,
imports: [], imports: [TranslateModule],
templateUrl: './task-empty.component.html', templateUrl: './task-empty.component.html',
styleUrl: './task-empty.component.scss' styleUrl: './task-empty.component.scss',
}) })
export class TaskEmptyComponent { export class TaskEmptyComponent {}
}

View file

@ -1 +1,3 @@
<div class="highlighted"><p>Drop here</p></div> <div class="highlighted">
<p>{{ "board.dropHere" | translate }}</p>
</div>

View file

@ -9,13 +9,12 @@
border: 2px dashed var(--light-blue); border: 2px dashed var(--light-blue);
background-color: var(--very-light-gray2); background-color: var(--very-light-gray2);
box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.16); box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.16);
font-size: 16px;
font-weight: 400;
color: var(--gray); color: var(--gray);
margin: 15.5px 0; margin: 15.5px 0;
p { p {
font-size: 21px; font-size: 21px;
font-weight: 500; font-weight: 500;
color: var(--light-blue);
} }
} }

View file

@ -1,12 +1,11 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
import { TranslateModule } from '@ngx-translate/core';
@Component({ @Component({
selector: 'app-task-highlighted', selector: 'app-task-highlighted',
standalone: true, standalone: true,
imports: [], imports: [TranslateModule],
templateUrl: './task-highlighted.component.html', templateUrl: './task-highlighted.component.html',
styleUrl: './task-highlighted.component.scss' styleUrl: './task-highlighted.component.scss',
}) })
export class TaskHighlightedComponent { export class TaskHighlightedComponent {}
}

View file

@ -70,7 +70,7 @@ export class TaskComponent {
} }
} }
// Dialog // User Dialog
openDialog(userId: any, event: MouseEvent) { openDialog(userId: any, event: MouseEvent) {
this.AssignedDialogId = userId; this.AssignedDialogId = userId;

View file

@ -118,7 +118,9 @@
"done": "Erledigt", "done": "Erledigt",
"addTask": "Neue Aufgabe", "addTask": "Neue Aufgabe",
"findTask": "Aufgabe suchen", "findTask": "Aufgabe suchen",
"noTasks": "Keine Aufgaben" "noTasks": "Keine Aufgaben",
"dropHere": "Hier ablegen",
"emptyTask": "Keine Aufgaben"
}, },
"addTask": { "addTask": {
"headline": "Aufgabe", "headline": "Aufgabe",

View file

@ -118,7 +118,9 @@
"done": "Done", "done": "Done",
"addTask": "Add Task", "addTask": "Add Task",
"findTask": "Find Task", "findTask": "Find Task",
"noTasks": "No tasks" "noTasks": "No tasks",
"dropHere": "Drop here",
"emptyTask": "No tasks"
}, },
"addTask": { "addTask": {
"headline": "Add Task", "headline": "Add Task",