do not count unready translations in localization test (#480)

This updates the expected count of languages in a localization test
to omit translations that have been started but are not yet ready
to be offered to users by default.
This commit is contained in:
Paul Fitzpatrick
2023-04-03 12:55:08 -04:00
committed by GitHub
parent e1ec94faa7
commit f5eb8f7730
2 changed files with 12 additions and 3 deletions

View File

@@ -1317,7 +1317,7 @@ export class GristDoc extends DisposableWithEvents {
const options = section.options();
const colIds = section.viewFields().all().map((f) => f.column().colId());
const chartType = section.chartType();
const theme = section.theme();
const sectionTheme = section.theme();
// we must read the current layout from the view layout because it can override the one in
// `section.layoutSpec` (in particular it provides a default layout when missing from the
@@ -1351,7 +1351,7 @@ export class GristDoc extends DisposableWithEvents {
}
// update theme, and chart type
await newSection.theme.saveOnly(theme);
await newSection.theme.saveOnly(sectionTheme);
await newSection.chartType.saveOnly(chartType);
// The newly-added section should be given focus.