@@ -34,7 +34,8 @@ export class PdfCreator {
|
||||
});
|
||||
}
|
||||
|
||||
public async generateSponsoringContract(runner: Runner): Promise<any> {
|
||||
public async generateSponsoringContract(runner: Runner, locale: string = "en"): Promise<any> {
|
||||
i18next.changeLanguage(locale);
|
||||
const template_source = fs.readFileSync(`${this.templateDir}/sponsoring_contract.html`, 'utf8');
|
||||
const template = Handlebars.compile(template_source);
|
||||
const result = template({ runner: runner })
|
||||
|
||||
Reference in New Issue
Block a user