Skip to content

Commit

Permalink
refactor(i18n): pass locale to help/versions check
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 20, 2023
1 parent 976fdf0 commit 9fdcbcb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ export function getHelpResources(
client: SanityClient,
locale: string,
): Observable<ResourcesResponse> {
// @todo: Send `locale` as query parameter once API supports it
return client.withConfig({apiVersion: '1'}).observable.request<ResourcesResponse>({
url: '/help',
/*
query and tag is used by analytics for tracking.
Builds to: `{m: ['[email protected]']}' and serializes to: `[email protected]`.
Final format will be e.g. https://api.sanity.io/v1/help?tag=sanity.studio.module.version-check&m=sanity%403.0.2
*/
query: {m: [`sanity@${SANITY_VERSION}`]},
query: {m: [`sanity@${SANITY_VERSION}`], locale},
tag: 'module.version-check',
json: true,
})
Expand Down

0 comments on commit 9fdcbcb

Please sign in to comment.