feat; add multi language support

This commit is contained in:
2025-12-21 20:06:18 -03:00
parent 3926f4d254
commit 7b4c95678e
23 changed files with 163 additions and 77 deletions

View File

@@ -5,10 +5,10 @@ import { ContactList } from '../../components/contact-list/contact-list';
import { ContactService } from '../../services/contact.service';
import { ContactDTO } from '../../models/ContactDTO';
import { FormHeader } from '../../components/form-header/form-header';
import { STRINGS_INJECTOR } from '../../app.config';
import { UpperfirstPipe } from '../../pipes/upperfirst-pipe';
import { MainHeader } from '../../components/main-header/main-header';
import { FormGroupContact } from '../../utils/form-group-contact';
import { LanguageManager } from '../../services/language-manager';
@Component({
selector: 'app-main',
@@ -18,7 +18,7 @@ import { FormGroupContact } from '../../utils/form-group-contact';
})
export class Main {
protected readonly form = new FormGroupContact();
protected readonly strings = inject(STRINGS_INJECTOR);
protected readonly languageManager = inject(LanguageManager);
private readonly contactService = inject(ContactService);
save(contactDTO: ContactDTO) {