Skip to content

Commit

Permalink
feat: explicitly request locale info from api
Browse files Browse the repository at this point in the history
  • Loading branch information
niccofyren committed Oct 11, 2024
1 parent f7d09de commit e79f09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/articles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const fetchArticleById = async ({
id: number;
api_url: string;
}): Promise<Article> => {
const response = await fetch(`${api_url}api/v2/news/${id}/`);
const response = await fetch(`${api_url}api/v2/news/${id}/?fields=locale`);
const data = await response.json();
return data;
};

0 comments on commit e79f09d

Please sign in to comment.