Skip to content

Commit 5b0f868

Browse files
committed
Change language to locale
Fixes: AFORM-3990
1 parent 91ac781 commit 5b0f868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/@episerver/forms-sdk/src/form-loader/formLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class FormLoader<T extends FormContainer> {
3030
*/
3131
getForm(key: string, language: string): Promise<T> {
3232
return new Promise<T>((resolve, reject) => {
33-
this.client.get(`${ApiConstant.apiEndpoint}/${key}`, { language })
33+
this.client.get(`${ApiConstant.apiEndpoint}/${key}`, { locale: language })
3434
.then((response: T) => {
3535
resolve(response);
3636
})

0 commit comments

Comments
 (0)