From 5b0f86821bbef00c76fd1e2441d43bf4cf3f9b54 Mon Sep 17 00:00:00 2001 From: "EP\\qang2" Date: Tue, 6 Feb 2024 09:56:05 +0700 Subject: [PATCH] Change language to locale Fixes: AFORM-3990 --- src/@episerver/forms-sdk/src/form-loader/formLoader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@episerver/forms-sdk/src/form-loader/formLoader.ts b/src/@episerver/forms-sdk/src/form-loader/formLoader.ts index 03bf5e1..2de9d1b 100644 --- a/src/@episerver/forms-sdk/src/form-loader/formLoader.ts +++ b/src/@episerver/forms-sdk/src/form-loader/formLoader.ts @@ -30,7 +30,7 @@ export class FormLoader { */ getForm(key: string, language: string): Promise { return new Promise((resolve, reject) => { - this.client.get(`${ApiConstant.apiEndpoint}/${key}`, { language }) + this.client.get(`${ApiConstant.apiEndpoint}/${key}`, { locale: language }) .then((response: T) => { resolve(response); })