Skip to content

Commit d7cd1ec

Browse files
Enable explanatory dialogs for all languages. (#1004)
These were disabled due to lack of translated text.
1 parent 352a97f commit d7cd1ec

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

src/project/project-actions.tsx

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,6 @@ export class ProjectActions {
150150
finalFocusRef: React.RefObject<HTMLButtonElement>
151151
): Promise<boolean> {
152152
const showConnectHelpSetting = this.settings.values.showConnectHelp;
153-
// Temporarily hide for French language users.
154-
if (this.settings.values.languageId !== "en") {
155-
return true;
156-
}
157153
if (
158154
!force &&
159155
(!showConnectHelpSetting ||
@@ -631,12 +627,7 @@ export class ProjectActions {
631627
const filename = `${this.project.name}-${MAIN_FILE}`;
632628
saveAs(blob, filename);
633629
const multipleFiles = this.project.files.length > 1;
634-
if (
635-
multipleFiles &&
636-
this.settings.values.showMultipleFilesHelp &&
637-
// Temporarily hide for French language users.
638-
this.settings.values.languageId === "en"
639-
) {
630+
if (multipleFiles && this.settings.values.showMultipleFilesHelp) {
640631
const choice = await this.dialogs.show<MultipleFilesChoice>(
641632
(callback) => (
642633
<MultipleFilesDialog
@@ -808,10 +799,6 @@ export class ProjectActions {
808799
userAction: ConnectionAction,
809800
finalFocusRef: React.RefObject<HTMLButtonElement>
810801
) {
811-
// Temporarily hide for French language users.
812-
if (this.settings.values.languageId !== "en") {
813-
return;
814-
}
815802
const choice = await this.dialogs.show<ConnectErrorChoice>((callback) => (
816803
<NotFoundDialog callback={callback} finalFocusRef={finalFocusRef} />
817804
));
@@ -824,12 +811,6 @@ export class ProjectActions {
824811
finalFocusRef: React.RefObject<HTMLButtonElement>
825812
) {
826813
this.device.clearDevice();
827-
// Temporarily hide for French language users.
828-
if (this.settings.values.languageId !== "en") {
829-
return this.actionFeedback.expectedError(
830-
this.webusbErrorMessage(errorCode)
831-
);
832-
}
833814
const choice = await this.dialogs.show<ConnectErrorChoice>((callback) => (
834815
<FirmwareDialog callback={callback} finalFocusRef={finalFocusRef} />
835816
));
@@ -960,10 +941,6 @@ export class ProjectActions {
960941
finalFocusRef: React.RefObject<HTMLButtonElement>
961942
) {
962943
const showPostSaveHelpSetting = this.settings.values.showPostSaveHelp;
963-
// Temporarily hide for French language users.
964-
if (this.settings.values.languageId !== "en") {
965-
return;
966-
}
967944
if (!showPostSaveHelpSetting) {
968945
return;
969946
}
@@ -990,10 +967,6 @@ export class ProjectActions {
990967
finalFocusRef: React.RefObject<HTMLButtonElement>
991968
) {
992969
const showTransferHexHelpSetting = this.settings.values.showTransferHexHelp;
993-
// Temporarily hide for French language users.
994-
if (this.settings.values.languageId !== "en") {
995-
return;
996-
}
997970
if (!forceTransferHexHelp && !showTransferHexHelpSetting) {
998971
return;
999972
}

0 commit comments

Comments
 (0)