Skip to content

Commit

Permalink
Merge pull request #104 from episerver/develop
Browse files Browse the repository at this point in the history
Merge bugfix to master
  • Loading branch information
hungoptimizely authored Feb 6, 2024
2 parents cfb9497 + 044422b commit 4ee5371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/@episerver/forms-sdk/src/form-loader/formLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class FormLoader<T extends FormContainer> {
*/
getForm(key: string, language: string): Promise<T> {
return new Promise<T>((resolve, reject) => {
this.client.get(`${ApiConstant.apiEndpoint}/${key}`, { language })
this.client.get(`${ApiConstant.apiEndpoint}/${key}`, { locale: language })
.then((response: T) => {
resolve(response);
})
Expand Down

0 comments on commit 4ee5371

Please sign in to comment.