#community-help

Handling Multilingual Datasets in Application Development

TLDR Joris inquired about handling multilingual datasets. Kishore Nallan suggested having fields suited for each language, using user's app language to present relevant results.

Powered by Struct AI
7
18mo
Solved
Join the chat
May 09, 2022 (18 months ago)
Joris
Photo of md5-94c93df7325e8fde185c76c659656ee9
Joris
07:00 AM
Hi there. I've been searching the docs but I can't find any information about this. How do you handle datasets in multiple languages? We have data in several languages, but when a user searches they should only receive the results relevant to their own language. Do we need to make a collection for each language? Everything I read so far seems to suppose the developer is only dealing with data in a single language
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
07:33 AM
You can have separate fields for each language. However this means that you need to know what the users language is. Is that something you don't have information on?
Joris
Photo of md5-94c93df7325e8fde185c76c659656ee9
Joris
07:36 AM
Yes we do.
07:36
Joris
07:36 AM
It's a mobile app and we can simply take the language the app is running in
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
07:37 AM
Cool then you can just have fields like "name_es" for Spanish, "name_en" for English etc.
Joris
Photo of md5-94c93df7325e8fde185c76c659656ee9
Joris
07:38 AM
ah yes and then just only use the right fields when running the query
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
07:39 AM
Yes, 💯