From df9a169e69a2c44fb7d96b3c1a1e1f0c433291b7 Mon Sep 17 00:00:00 2001 From: Eduardo Peredo Rivero Date: Mon, 27 May 2024 20:38:04 -0500 Subject: [PATCH] add example for running example --- src/scripts/translations-template.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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,