Skip to content

Commit

Permalink
fix(i18n): localize title and subtitle again
Browse files Browse the repository at this point in the history
  • Loading branch information
roedoejet committed Jul 23, 2024
1 parent 58f1349 commit e276125
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/studio-web/src/app/editor/editor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export class EditorService {
rasControl$ = new FormControl<Document | null>(null, Validators.required);
audioB64Control$ = new FormControl<string | null>(null, Validators.required);
slots: ReadAlongSlots = {
title: "Title",
subtitle: "Subtitle",
title: $localize`Title`,
subtitle: $localize`Subtitle`,
};
uploadFormGroup = this._formBuilder.group({
audio: this.audioControl$,
Expand Down
4 changes: 2 additions & 2 deletions packages/studio-web/src/app/studio/studio.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions packages/studio-web/src/i18n/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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.",
Expand Down

0 comments on commit e276125

Please sign in to comment.