Skip to content

Commit

Permalink
Feature/epmgcip 189 (#23)
Browse files Browse the repository at this point in the history
* Initial commit.

* feature/EPMGCIP-189/Add translation app

* feature/EPMGCIP-189/Add translation app

* feature/EPMGCIP-189/Translator fixes

---------

Co-authored-by: DmitryLukyanov <[email protected]>
Co-authored-by: Siarhei Balonikau <[email protected]>
  • Loading branch information
3 people authored Feb 20, 2025
1 parent 6f34378 commit ab5ec2f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ai-communication-app/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REACT_APP_AI_TRANSLATE_FUNCTION_URL=https://museum-fnapp-staging.azurewebsites.net/api/translate_http_trigger
REACT_APP_AI_TRANSLATE_FUNCTION_CODE=-ULtspVIlFKh61UjP4UxOYqiwN94KS0g_MWjpLafVDIsAzFu1j3bvQ%3D%3D
2 changes: 1 addition & 1 deletion ai-communication-app/src/LanguagesEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ enum LanguagesEnum {
English = 'En',
Russian = 'Ru',
Uzbek = 'Uz',
Karakalpak = 'Kaa'
Karakalpak = 'Ka'
}

export default LanguagesEnum;
7 changes: 6 additions & 1 deletion ai-communication-app/src/locations/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ const Field: React.FC = () => {
}
)
.then((response) => response.json())
.then((response) => ({ lang, text: response["LLM Response"] }))
.then((response) => ({
lang,
text: response["LLM Response"]
.replace("```html\n", "")
.replace("\n```", ""),
}))
)
);

Expand Down

0 comments on commit ab5ec2f

Please sign in to comment.