parent
388d8a2dc6
commit
c07319b250
|
@ -51,7 +51,7 @@ export class PdfCreator {
|
|||
* @param locale The locale used for the contracts (default:en)
|
||||
*/
|
||||
public async generateSponsoringContract(runners: Runner[], locale: string = "en"): Promise<any> {
|
||||
i18next.changeLanguage(locale);
|
||||
await i18next.changeLanguage(locale);
|
||||
const template_source = fs.readFileSync(`${this.templateDir}/sponsoring_contract.html`, 'utf8');
|
||||
const template = Handlebars.compile(template_source);
|
||||
const result = template({ runners })
|
||||
|
|
Loading…
Reference in New Issue