Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guidance for multi-lingual dexie database #1975

Open
tacman opened this issue May 1, 2024 · 0 comments
Open

Guidance for multi-lingual dexie database #1975

tacman opened this issue May 1, 2024 · 0 comments

Comments

@tacman
Copy link

tacman commented May 1, 2024

I'm looking for guidance on how to have a multi-lingual database. My idea is to follow how I setup meilisearch, which is also no-sql. That is, I have an array called translatable_fields,

ltranslatable_fields = {
    'title' => {
          'en':  "A book",
          'es': 'Un Libro'
    },
    'description': ...
} 

Obviously, this could also be done as

title = {'es': 'libro', 'en': 'book}
description=...

If someone has done this before and has some guidance, I would welcome it! In particular, if I'm doing a search for 'book' in English, I only want to search the 'en' keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant