feat(core): implement translation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { Component, inject } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { ThemeSwitchService } from './core/service/theme-switch.service';
|
||||
import { Background } from "./core/components/background/background";
|
||||
@@ -11,7 +11,9 @@ import { NavigationBar } from "./core/components/navigation-bar/navigation-bar";
|
||||
})
|
||||
export class App {
|
||||
|
||||
constructor(private themeSwitchService: ThemeSwitchService) {
|
||||
private themeSwitchService = inject(ThemeSwitchService);
|
||||
|
||||
constructor() {
|
||||
this.themeSwitchService.initialize();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user