feat(core): implement translation

This commit is contained in:
2025-08-27 17:05:51 +02:00
parent 8f1cf01f67
commit 890257c77e
12 changed files with 234 additions and 19 deletions
@@ -1,4 +1,4 @@
import { Component, ElementRef, HostListener, ViewChild } from '@angular/core';
import { Component, ElementRef, HostListener, inject, ViewChild } from '@angular/core';
import { ThemeSwitchService } from '../../service/theme-switch.service';
@Component({
@@ -9,9 +9,9 @@ import { ThemeSwitchService } from '../../service/theme-switch.service';
})
export class Background {
constructor(
private themeSwitchService: ThemeSwitchService,
) {}
private themeSwitchService = inject(ThemeSwitchService);
constructor() {}
@ViewChild('canvas', { static: true }) canvasRef!: ElementRef<HTMLCanvasElement>;