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