Open-Assistant
Open-Assistant copied to clipboard
Add `lang` column to `post` table (ISO 639-1 code)
Add a string(2) lang field to the post model class to specify the language of a given post. This is necessary to query posts in a given language (e.g. which the current user is able to speak).
Don't forget to add the alembic migration scripts.
We need to decide how we handle languages codes in the project, e.g. https://pypi.org/project/langcodes/ ?
@andreaskoepf Looking to pick up something small to get into the project - do you mind if I take this? Would we be looking to force a language on the BE API when creating tasks or leaving that as optional?
@andreaskoepf Looking to pick up something small to get into the project - do you mind if I take this? Would we be looking to force a language on the BE API when creating tasks or leaving that as optional?
I think for now we can just default to english, eventually we could either force it or try to detect the language. I've assigned you
Have a PR up - should be simple enough :)