Skip to content

Commit

Permalink
feat: translate the router buttons at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Oct 18, 2024
1 parent 239b25a commit e34ba41
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/studio-web/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<span class="nav-spacer"></span>
<div class="nav__buttons">
<button
i18n="Studio"
class="nav__button"
mat-button
[color]="currentURL === '/' ? 'accent' : ''"
Expand All @@ -14,6 +15,7 @@
</button>
<button
id="goToEditor"
i18n="Editor"
class="nav__button plausible-event-name=Editor"
mat-button
[color]="currentURL === '/editor' ? 'accent' : ''"
Expand All @@ -22,7 +24,12 @@
<mat-icon>edit</mat-icon>
Editor
</button>
<button class="nav__button" mat-button (click)="openPrivacyDialog()">
<button
i18n="Privacy"
class="nav__button"
mat-button
(click)="openPrivacyDialog()"
>
<mat-icon>policy</mat-icon>
Privacy
</button>
Expand Down
3 changes: 3 additions & 0 deletions packages/studio-web/src/i18n/messages.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"locale": "es",
"translations": {
"8299719445551358262": "Studio de ReadAlong",
"2788132200126415526": " Studio ",
"6206003705268841358": "{$START_TAG_MAT_ICON}edit{$CLOSE_TAG_MAT_ICON} Editor ",
"5204211903076352908": "{$START_TAG_MAT_ICON}policy{$CLOSE_TAG_MAT_ICON} Privacidad ",
"2148054857885504777": " ¡Felicidades! ¡Aquí está su ReadAlong! ",
"5701618810648052610": "Título",
"1137319519199859335": "Subtítulo",
Expand Down
3 changes: 3 additions & 0 deletions packages/studio-web/src/i18n/messages.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"locale": "fr",
"translations": {
"8299719445551358262": "Studio ReadAlong",
"2788132200126415526": " Studio ",
"6206003705268841358": "{$START_TAG_MAT_ICON}edit{$CLOSE_TAG_MAT_ICON} Éditeur ",
"5204211903076352908": "{$START_TAG_MAT_ICON}policy{$CLOSE_TAG_MAT_ICON} Confidentialité ",
"2148054857885504777": " Félicitations! Voici votre ReadAlong! ",
"5701618810648052610": "Titre",
"1137319519199859335": "Sous-titre",
Expand Down
3 changes: 3 additions & 0 deletions packages/studio-web/src/i18n/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"locale": "en",
"translations": {
"8299719445551358262": " ReadAlong Studio ",
"2788132200126415526": " Studio ",
"6206003705268841358": "{$START_TAG_MAT_ICON}edit{$CLOSE_TAG_MAT_ICON} Editor ",
"5204211903076352908": "{$START_TAG_MAT_ICON}policy{$CLOSE_TAG_MAT_ICON} Privacy ",
"2148054857885504777": " Congratulations! Here's your ReadAlong! ",
"880407735794041263": "Download failed.",
"3790351978262872462": "Sorry!",
Expand Down

0 comments on commit e34ba41

Please sign in to comment.