@@ -23,6 +23,7 @@ import type { DocumentTypeId } from 'features/appManagement/apiSlice'
23
23
import { apiBaseQuery } from 'utils/rtkUtil'
24
24
import type { ServiceStatusDataState } from './types'
25
25
import type { PaginFetchArgs } from '@catena-x/portal-shared-components'
26
+ import i18next from 'i18next'
26
27
27
28
export enum ReleaseProcessTypes {
28
29
APP_RELEASE = 'appRelease' ,
@@ -192,7 +193,8 @@ export const apiSlice = createApi({
192
193
tagTypes : [ Tags . REFETCH_SERVICE ] ,
193
194
endpoints : ( builder ) => ( {
194
195
fetchServiceStatus : builder . query < ServiceStatusDataState , string > ( {
195
- query : ( id ) => `/api/services/servicerelease/${ id } /serviceStatus` ,
196
+ query : ( id ) =>
197
+ `/api/services/servicerelease/${ id } /serviceStatus?languageShortName=${ i18next . language } ` ,
196
198
} ) ,
197
199
createService : builder . mutation < void , createServiceType > ( {
198
200
query : ( data ) => ( {
@@ -222,7 +224,8 @@ export const apiSlice = createApi({
222
224
} ) ,
223
225
} ) ,
224
226
fetchServiceAgreementData : builder . query < AgreementType [ ] , void > ( {
225
- query : ( ) => 'api/services/servicerelease/agreementData' ,
227
+ query : ( ) =>
228
+ `api/services/servicerelease/agreementData?languageShortName=${ i18next . language } ` ,
226
229
} ) ,
227
230
fetchServiceConsentData : builder . query < ConsentType , string > ( {
228
231
query : ( id : string ) => `/api/services/servicerelease/consent/${ id } ` ,
0 commit comments