Skip to content

Improve handling of language codes, clean up code

Codecov / codecov/patch succeeded Feb 18, 2025 in 0s

23.40% of diff hit (target 82.65%)

View this Pull Request on Codecov

23.40% of diff hit (target 82.65%)

Annotations

Check warning on line 93 in src/SIL.XForge.Scripture/ClientApp/src/app/core/paratext.service.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/core/paratext.service.ts#L93

Added line #L93 was not covered by tests

Check warning on line 35 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L35

Added line #L35 was not covered by tests

Check warning on line 78 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L75-L78

Added lines #L75 - L78 were not covered by tests

Check warning on line 81 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L81

Added line #L81 was not covered by tests

Check warning on line 83 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L83

Added line #L83 was not covered by tests

Check warning on line 86 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L86

Added line #L86 was not covered by tests

Check warning on line 89 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L89

Added line #L89 was not covered by tests

Check warning on line 93 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L93

Added line #L93 was not covered by tests

Check warning on line 95 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L95

Added line #L95 was not covered by tests

Check warning on line 98 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L98

Added line #L98 was not covered by tests

Check warning on line 100 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L100

Added line #L100 was not covered by tests

Check warning on line 151 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L151

Added line #L151 was not covered by tests

Check warning on line 155 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L155

Added line #L155 was not covered by tests

Check warning on line 157 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L157

Added line #L157 was not covered by tests

Check warning on line 161 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L161

Added line #L161 was not covered by tests

Check warning on line 165 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L165

Added line #L165 was not covered by tests

Check warning on line 171 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L171

Added line #L171 was not covered by tests

Check warning on line 195 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L195

Added line #L195 was not covered by tests

Check warning on line 200 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L199-L200

Added lines #L199 - L200 were not covered by tests

Check warning on line 208 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L207-L208

Added lines #L207 - L208 were not covered by tests

Check warning on line 216 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L216

Added line #L216 was not covered by tests

Check warning on line 235 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L235

Added line #L235 was not covered by tests

Check warning on line 238 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L238

Added line #L238 was not covered by tests

Check warning on line 244 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L242-L244

Added lines #L242 - L244 were not covered by tests

Check warning on line 247 in src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-sources/draft-sources.component.ts#L247

Added line #L247 was not covered by tests