import { Component } from '@angular/core';
import { InternationalizationService } from '../../../services/internationalization/internationalization.service';

@Component({
    selector: 'app-change-language',
    templateUrl: './change-language.component.html',
    styleUrl: './change-language.component.css',
    standalone: false
})
export class ChangeLanguageComponent {
  constructor (
    public interService: InternationalizationService,
  ) { }
  
  public changeLanguage(language: string) {
    localStorage.setItem('language', language);
    this.interService.generateObjectLanguage(language);
  }
}
