This commit is contained in:
Gal Podlipnik 2025-07-14 22:16:58 +02:00
parent 58e37620e7
commit 8bbe2b4167
3 changed files with 12 additions and 4 deletions

View File

@ -8,7 +8,7 @@ export default createAppTranslation('sl', {
}, },
task: '{count, plural, =0 {Ni nalog} one {# naloga} two {# nalogi} other {# nalog}}', task: '{count, plural, =0 {Ni nalog} one {# naloga} two {# nalogi} other {# nalog}}',
comment: comment:
'{count, plural, =0 {Ni komentarjev} one {# komentar} two {# komentarja} other {# komentarji}}', '{count, plural, =0 {Ni komentarjev} one {# komentar} two {# komentarja} three {# komentarji} four {# komentarji} other {# komentarjev}}',
searchUser: { searchUser: {
title: 'Iskanje uporabnikov', title: 'Iskanje uporabnikov',
placeholder: 'Vnesite ime ali e-pošto uporabnika', placeholder: 'Vnesite ime ali e-pošto uporabnika',

View File

@ -49,7 +49,11 @@ import { ToastService } from '@org/shared/toast';
<mat-form-field appearance="outline" class="full-width"> <mat-form-field appearance="outline" class="full-width">
<mat-label>{{ 'app.taskTitle' | translate }}</mat-label> <mat-label>{{ 'app.taskTitle' | translate }}</mat-label>
<input matInput formControlName="title" placeholder="Task title" /> <input
matInput
formControlName="title"
placeholder="{{ 'app.taskTitle' | translate }}"
/>
@if (taskForm.get('title')?.hasError('required') && @if (taskForm.get('title')?.hasError('required') &&
taskForm.get('title')?.touched) { taskForm.get('title')?.touched) {
<mat-error>{{ 'app.titleIsRequired' | translate }}</mat-error> <mat-error>{{ 'app.titleIsRequired' | translate }}</mat-error>

View File

@ -45,7 +45,11 @@ import { ToastService } from '@org/shared/toast';
<form [formGroup]="taskForm" (ngSubmit)="onSubmit()"> <form [formGroup]="taskForm" (ngSubmit)="onSubmit()">
<mat-form-field appearance="outline" class="full-width"> <mat-form-field appearance="outline" class="full-width">
<mat-label>{{ 'app.title' | translate }}</mat-label> <mat-label>{{ 'app.title' | translate }}</mat-label>
<input matInput formControlName="title" placeholder="Task title" /> <input
matInput
formControlName="title"
placeholder="{{ 'app.taskTitle' | translate }}"
/>
@if (taskForm.get('title')?.hasError('required') && @if (taskForm.get('title')?.hasError('required') &&
taskForm.get('title')?.touched) { taskForm.get('title')?.touched) {
<mat-error>Title is required</mat-error> <mat-error>Title is required</mat-error>
@ -57,7 +61,7 @@ import { ToastService } from '@org/shared/toast';
<textarea <textarea
matInput matInput
formControlName="description" formControlName="description"
placeholder="Task description" placeholder="{{ 'app.taskDescription' | translate }}"
rows="3" rows="3"
></textarea> ></textarea>
</mat-form-field> </mat-form-field>