@tilde-nlp/ngx-translate 2.1.39 → 2.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3562,6 +3562,7 @@ class TldTranslateConfigService {
3562
3562
  this._textConfig.progressIndicatorTimeoutMiliSeconds = text?.progressIndicatorTimeoutMiliSeconds ?? 2000;
3563
3563
  this._textConfig.progressIndicatorTitleVisibleForVendors = text?.progressIndicatorTitleVisibleForVendors ?? ["ETranslation"];
3564
3564
  this._textConfig.progressIndicatorVisible = text?.progressIndicatorVisible ?? false;
3565
+ this._textConfig.showTranslateButton = text?.showTranslateButton ?? true;
3565
3566
  this._audioConfig.audioTextInput = audio?.audioTextInput ?? false;
3566
3567
  // Not setting default url because there is no service provided by Tilde and this is not used by default in website project.
3567
3568
  this._audioConfig.audioApiUrl = audio?.audioApiUrl;
@@ -10367,7 +10368,7 @@ class TldTranslateComponent {
10367
10368
  || this.translateTextService.isDictating;
10368
10369
  }
10369
10370
  get showTranslateButton() {
10370
- return !this.translateFileService.multipleFileUploadActive;
10371
+ return this.configService.textConfig.showTranslateButton && !this.translateFileService.multipleFileUploadActive;
10371
10372
  }
10372
10373
  // this param is necessary to remove max height if multiple file component is active, since there shouldn't be max height in that case.
10373
10374
  get isMultipleFilesActive() {