Skip to content

Commit 044422b

Browse files
authored
Merge pull request #103 from episerver/bugfix/AFORM-3990-change-language-to-locale
Change language to locale
2 parents cfb9497 + 5b0f868 commit 044422b

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)