zeeguu / api

API for tracking a learner's progress when reading materials in a foreign language and recommending further personalized exercises and readings.
https://zeeguu.org
MIT License
8 stars 24 forks source link

Dev Mock Translations Support #232

Closed tfnribeiro closed 1 month ago

tfnribeiro commented 1 month ago

I have a branch that I use to allow to get translations into the Dev system which is useful to test new accounts and exercises if a user doesn't have any bookmarks yet. Is this something we want to merge into the main branch?

It works by adding an environment variable DEV_SKIP_TRANSLATION: 1, and it's check at the time of providing a translation to instead return the mock translation.

mircealungu commented 1 month ago

Yes, let's! That's very useful for anybody that wants to do development!