Azure-Samples / aisearch-openai-rag-audio

A simple example implementation of the VoiceRAG pattern to power interactive voice generative AI experiences using RAG with Azure AI Search and Azure OpenAI's gpt-4o-realtime-preview model.
https://azure.microsoft.com/products/search
MIT License
211 stars 105 forks source link

i18n support for multilingual UI #28

Closed tonybaloney closed 5 days ago

tonybaloney commented 6 days ago

Adds browser-based detection for UI language and translations for:

I have not verified the translations with native speakers, will attempt to tag some in this PR.

CleanShot 2024-10-18 at 17 33 58@2x
pamelafox commented 5 days ago

LGTM, requesting review from @chuwik who wrote the frontend.

Enrique, this is using the same package we're using in azure-search-openai-demo, which has worked fairly well. The biggest drawbacks to adding i18n is the increase in packages and the need to get translations when changing the UI, but we do have advocates who speak all the languages that happily review new strings when asked. The i18n makes this demo more usable in AI Tour stops and other international events.

chuwik commented 5 days ago

@pamelafox that's great, @tonybaloney thanks for this contribution! Spanish looks good to me, though there's an odd term there I don't know of a better alternative.