Skip to content

Commit af4ce32

Browse files
committed
refactor: change i18n keys to uppercase #21
1 parent ebbe370 commit af4ce32

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

frontend/public/i18n/de.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"pcts-logo": "Puzzle PCTS Logo",
3-
"logout": "Abmelden",
4-
"example": {
5-
"no-examples": "Keine Beispiele!",
6-
"create": "Ich will ein Beispiel erstellen!"
2+
"PCTS_LOGO_ALT": "Puzzle PCTS Logo",
3+
"LOGOUT": "Abmelden",
4+
"EXAMPLE": {
5+
"NO_EXAMPLES": "Keine Beispiele!",
6+
"CREATE": "Ich will ein Beispiel erstellen!"
77
}
88
}

frontend/src/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<pzsh-topbar class="position-sticky top-0">
33
<img
44
src="/images/pcts-logo.svg"
5-
alt="{{'pcts-logo' | translate}}"
5+
alt="{{'PCTS_LOGO_ALT' | translate}}"
66
class="pcts-logo"
77
/>
88
</pzsh-topbar>
@@ -16,7 +16,7 @@
1616
<div slot="items">
1717
<pzsh-menu-dropdown-item href="#">
1818
<pzsh-icon name="sign-out-alt"></pzsh-icon>
19-
{{ "logout" | translate }}
19+
{{ "LOGOUT" | translate }}
2020
</pzsh-menu-dropdown-item>
2121
</div>
2222
</pzsh-menu-dropdown>

frontend/src/app/example/example.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h1>{{ (example()| async)?.text }}</h1>
44
@for (example of this.examples(); track example.id) {
55
<p>{{ example.text }}</p>
66
} @empty {
7-
<p>{{ "example.no-examples" | translate }}</p>
7+
<p>{{ "EXAMPLE.NO_EXAMPLES" | translate }}</p>
88
}
99

10-
<button type="button" (click)="createNewExample()">{{ "example.create" | translate }}</button>
10+
<button type="button" (click)="createNewExample()">{{ "EXAMPLE.CREATE" | translate }}</button>

0 commit comments

Comments
 (0)