From e2761252583d18da15d1c90298e22f85d1bf43f6 Mon Sep 17 00:00:00 2001 From: Aidan Pine Date: Mon, 22 Jul 2024 17:49:53 -0700 Subject: [PATCH] fix(i18n): localize title and subtitle again --- packages/studio-web/src/app/editor/editor.service.ts | 4 ++-- packages/studio-web/src/app/studio/studio.service.ts | 4 ++-- packages/studio-web/src/i18n/messages.json | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/studio-web/src/app/editor/editor.service.ts b/packages/studio-web/src/app/editor/editor.service.ts index 8932d8a2..0ebec504 100644 --- a/packages/studio-web/src/app/editor/editor.service.ts +++ b/packages/studio-web/src/app/editor/editor.service.ts @@ -10,8 +10,8 @@ export class EditorService { rasControl$ = new FormControl(null, Validators.required); audioB64Control$ = new FormControl(null, Validators.required); slots: ReadAlongSlots = { - title: "Title", - subtitle: "Subtitle", + title: $localize`Title`, + subtitle: $localize`Subtitle`, }; uploadFormGroup = this._formBuilder.group({ audio: this.audioControl$, diff --git a/packages/studio-web/src/app/studio/studio.service.ts b/packages/studio-web/src/app/studio/studio.service.ts index 7899bbdc..48b3898a 100644 --- a/packages/studio-web/src/app/studio/studio.service.ts +++ b/packages/studio-web/src/app/studio/studio.service.ts @@ -13,8 +13,8 @@ export enum langMode { }) export class StudioService { slots: ReadAlongSlots = { - title: "Title", - subtitle: "Subtitle", + title: $localize`Title`, + subtitle: $localize`Subtitle`, }; lastStepperIndex: number = 0; temporaryBlob: Blob | undefined = undefined; diff --git a/packages/studio-web/src/i18n/messages.json b/packages/studio-web/src/i18n/messages.json index a326133b..aee51b6e 100644 --- a/packages/studio-web/src/i18n/messages.json +++ b/packages/studio-web/src/i18n/messages.json @@ -3,14 +3,16 @@ "translations": { "8299719445551358262": " ReadAlong Studio ", "2148054857885504777": " Congratulations! Here's your ReadAlong! ", - "5701618810648052610": "Title", - "1137319519199859335": "Subtitle", + "880407735794041263": "Download failed.", + "3790351978262872462": "Sorry!", "1743078436798702107": " Welcome to the ReadAlong Studio Editor ", "8366946611697584032": " Take the tour! ", "3903003521039334232": " Select an offline HTML ReadAlong file. ", "5192585697967841844": " To get this file, you should have created a ReadAlong using the {$START_LINK}{$START_TAG_MAT_ICON}launch{$CLOSE_TAG_MAT_ICON} Studio{$CLOSE_LINK}, and then selected \"Offline HTML\" as the output. Or, you can use the Offline-HTML file included in the Web Bundle download format. ", "2136422915588832930": "Audio Toolbar", "7819314041543176992": "Close", + "5701618810648052610": "Title", + "1137319519199859335": "Subtitle", "6766123079913371250": "Aligner Error", "1614347125196988603": " Failed to initialize the aligner. This may be the result of an incompatible browser. Please {$START_LINK}{$START_TAG_MAT_ICON}mail{$CLOSE_TAG_MAT_ICON} contact the developers{$CLOSE_LINK} and send them a complete copy of the error message below: ", "8263673404941155539": "Server Error", @@ -31,7 +33,6 @@ "7162646471173438471": "Praat TextGrid", "5409086795075780408": "SRT Subtitles", "6874638171510323302": "WebVTT Subtitles", - "880407735794041263": "Download failed.", "8762728484338173358": "ReadAlong format conversion failed.", "6017683769837067192": "Hmm, we can't connect to the ReadAlongs API. Please try again later.", "6731392928829867425": "Welcome to ReadAlong Studio", @@ -137,7 +138,6 @@ "1549389605329660619": "This is really difficult. We'll try one last time, but it might take a long time and produce poor results. Please make sure your text matches your audio and that there is as little background noise as possible.", "6071928720301938306": "Audio processing failed.", "3763839702998678686": "No audio to download.", - "3790351978262872462": "Sorry!", "6558433540988178003": "No text to download.", "4183225119057268962": "Could not start recording!", "2596823344081631983": "Audio was successfully recorded. Please listen to your recording to make sure it's OK, and save it for reuse if so.",