move translations to CoreVM, move models to CoreVM for sentralization

This commit is contained in:
marlon-erler
2026-04-09 16:48:22 +00:00
parent 6204669ba3
commit 78672afc40
42 changed files with 1786 additions and 1322 deletions
+3 -4
View File
@@ -1,12 +1,11 @@
import * as React from "bloatless-react";
import CoreViewModel from "../ViewModel/Global/coreViewModel";
import { translations } from "./translations";
export function MainPage() {
export function MainPage(coreViewModel: CoreViewModel) {
return (
<article id="home-page">
<header>
<span>{translations.homePage.appName}</span>
<span>{coreViewModel.translations.homePage.appName}</span>
</header>
<div></div>
</article>