Skip to content

Commit

Permalink
Remove unused translation string and service reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pmachapman committed Dec 2, 2024
1 parent 6eebdc7 commit d49a457
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { TestRealtimeModule } from 'xforge-common/test-realtime.module';
import { configureTestingModule, TestTranslocoModule } from 'xforge-common/test-utils';
import { SFProjectProfileDoc } from '../../../core/models/sf-project-profile-doc';
import { SF_TYPE_REGISTRY } from '../../../core/models/sf-type-registry';
import { TextDocService } from '../../../core/text-doc.service';
import { SharedModule } from '../../../shared/shared.module';
import { EDITOR_READY_TIMEOUT } from '../../../shared/text/text.component';
import { DraftSegmentMap } from '../../draft-generation/draft-generation';
Expand All @@ -29,7 +28,6 @@ const mockActivatedProjectService = mock(ActivatedProjectService);
const mockDraftHandlingService = mock(DraftHandlingService);
const mockI18nService = mock(I18nService);
const mockDialogService = mock(DialogService);
const mockTextDocService = mock(TextDocService);

describe('EditorDraftComponent', () => {
let fixture: ComponentFixture<EditorDraftComponent>;
Expand All @@ -52,8 +50,7 @@ describe('EditorDraftComponent', () => {
{ provide: DraftHandlingService, useMock: mockDraftHandlingService },
{ provide: I18nService, useMock: mockI18nService },
{ provide: OnlineStatusService, useClass: TestOnlineStatusService },
{ provide: DialogService, useMock: mockDialogService },
{ provide: TextDocService, useMock: mockTextDocService }
{ provide: DialogService, useMock: mockDialogService }
]
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { filterNullish } from 'xforge-common/util/rxjs-util';
import { isString } from '../../../../type-utils';
import { Delta, TextDocId } from '../../../core/models/text-doc';
import { SFProjectService } from '../../../core/sf-project.service';
import { TextDocService } from '../../../core/text-doc.service';
import { TextComponent } from '../../../shared/text/text.component';
import { DraftGenerationService } from '../../draft-generation/draft-generation.service';
import { DraftHandlingService } from '../../draft-generation/draft-handling.service';
Expand Down Expand Up @@ -68,8 +67,7 @@ export class EditorDraftComponent implements AfterViewInit, OnChanges {
readonly fontService: FontService,
private readonly i18n: I18nService,
private readonly projectService: SFProjectService,
readonly onlineStatusService: OnlineStatusService,
private readonly textDocService: TextDocService
readonly onlineStatusService: OnlineStatusService
) {}

ngOnChanges(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
"generate_draft_button": "Generate draft",
"generate_forward_translation_drafts_header": "Generate translation drafts",
"generate_new_draft": "New draft",
"go_to_draft_viewer": "Go to [link:draftViewerUrl]draft viewer[/link] to preview and apply the generated draft to chapters of your choice.",
"improved_learning_rate_notice": "Drafting is now much faster! Most drafts will now take about {1}{2} hours to complete instead of {3}{4}. Draft quality should be about the same as before, but please {5}contact us{6} if you notice any issues.",
"info_alert_different_additional_training_and_source_language": "The language for your additional training text ({{ additionalTrainingSourceLanguageDisplayName }}) must be the same as the training source language ({{ alternateTrainingSourceLanguageDisplayName }}). Select a different additional training text on the [link:projectSettingsUrl]settings page[/link].",
"info_alert_different_training_and_source_language": "The language for your alternate training text ({{ alternateTrainingSourceLanguageDisplayName }}) must be the same as the source language ({{ sourceLanguageDisplayName }}). Select a different alternate training text on the [link:projectSettingsUrl]settings page[/link].",
Expand Down

0 comments on commit d49a457

Please sign in to comment.