From 93c7179981fe607c449da8f0402c229588574670 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Wed, 26 Jul 2023 00:24:26 +0300 Subject: [PATCH] Do not enforce camel case on sibling entity object keys (#2919) * Do not enforce camel case on sibling entity object keys * Fix linter issue introduced in #2900 --- translate/src/api/entity.ts | 3 +-- translate/src/context/MachineryTranslations.tsx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/translate/src/api/entity.ts b/translate/src/api/entity.ts index af6fb571e6..f26a6155c3 100644 --- a/translate/src/api/entity.ts +++ b/translate/src/api/entity.ts @@ -148,8 +148,7 @@ export async function fetchSiblingEntities( locale: string, ): Promise { const search = new URLSearchParams({ entity: String(entity), locale }); - const results = await GET('/get-sibling-entities/', search); - return keysToCamelCase(results); + return GET('/get-sibling-entities/', search); } export async function fetchEntityHistory( diff --git a/translate/src/context/MachineryTranslations.tsx b/translate/src/context/MachineryTranslations.tsx index cd391a7a07..6dc0603496 100644 --- a/translate/src/context/MachineryTranslations.tsx +++ b/translate/src/context/MachineryTranslations.tsx @@ -4,7 +4,6 @@ import { abortMachineryRequests, fetchCaighdeanTranslation, fetchGoogleTranslation, - fetchMicrosoftTerminology, fetchMicrosoftTranslation, fetchSystranTranslation, fetchTranslationMemory,