Skip to content

Commit

Permalink
add example for running example
Browse files Browse the repository at this point in the history
  • Loading branch information
eperedo committed May 28, 2024
1 parent c4149d2 commit df9a169
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/scripts/translations-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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"
*/
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit df9a169

Please sign in to comment.