feat(i18n): bind angular host/player copy to shared locale catalog
All checks were successful
CI / test-and-quality (push) Successful in 2m26s
CI / test-and-quality (pull_request) Successful in 2m31s

This commit is contained in:
2026-03-01 19:27:15 +00:00
committed by Asger Geel Weirsoee
parent 377722eb9a
commit dd3b48067a
7 changed files with 389 additions and 64 deletions

View File

@@ -1,13 +1,20 @@
<main class="shell">
<header class="shell__header">
<h1>WPP Angular Shell</h1>
<h1>{{ copy('app.title') }}</h1>
<nav>
<a routerLink="/host">Host</a>
<a routerLink="/player">Player</a>
<a routerLink="/host">{{ copy('app.host_nav') }}</a>
<a routerLink="/player">{{ copy('app.player_nav') }}</a>
</nav>
<label class="locale-picker">
{{ copy('app.language_label') }}
<select [ngModel]="locale" (ngModelChange)="setLocale($event)">
<option value="en">English</option>
<option value="da">Dansk</option>
</select>
</label>
</header>
<section class="shell__content">
<section class="shell__content" [attr.data-wpp-locale]="locale">
<router-outlet></router-outlet>
</section>
</main>