diff --git a/src/scripts/translations-template.ts b/src/scripts/translations-template.ts index 5564224..090f3f9 100644 --- a/src/scripts/translations-template.ts +++ b/src/scripts/translations-template.ts @@ -6,7 +6,7 @@ import { getCompositionRoot } from "../compositionRoot"; import { D2Api } from "../types/d2-api"; import xlsx from "@eyeseetea/xlsx-populate"; import { GridWithTotalsViewModel, Row } from "../webapp/reports/autogenerated-forms/GridWithTotalsViewModel"; -import { DataForm, DataFormM, SectionGrid, SectionWithTotals } from "../domain/common/entities/DataForm"; +import { DataForm, DataFormM, SectionGrid } from "../domain/common/entities/DataForm"; import { GridWithCombosViewModel, Row as RowCombo, @@ -18,8 +18,8 @@ import { DataElement } from "../domain/common/entities/DataElement"; /* npx ts-node src/scripts/translations-template.ts \ - -u "dev.user:xcdBPEh8tbGBDmbP!" \ - --url "http://DESKTOP-I6DTCCV.local:8080" \ + -u "user:password" \ + --url "http://localhost:8080" \ --dataSet "uc8uSqVVt4n" \ --path "./nhwa_module_1_base.xlsm" */ @@ -240,10 +240,10 @@ async function main() { periods: DataFormM.getReferencedPeriods(dataForm, period), }); - await buildExcelModule2(dataForm, dataValues, args.path, dataSet.config, currentUser.keyDbLocale); + await buildExcelWithTranslations(dataForm, dataValues, args.path, dataSet.config, currentUser.keyDbLocale); } -async function buildExcelModule2( +async function buildExcelWithTranslations( dataForm: DataForm, dataValues: DataValueStore, excelPath: string,