I have found myself using this quite often in development to have exercises with new test users, without having to rely on existing users in the frontend. It's also useful to test the styling for translations among other functionality.
Changes:
Changed the docker-compose to include an extra environment variable: DEV_SKIP_TRANSLATION
get_one_translation(from_lang_code, to_lang_code) now will check if the flag DEV_SKIP_TRANSLATION is enabled, if so it will generate translations that follow the format T-([translation-language])-'[original_word]'. E.g. "hus" would return T-EN-'hus' if the translation language is English.
I have found myself using this quite often in development to have exercises with new test users, without having to rely on existing users in the frontend. It's also useful to test the styling for translations among other functionality.
Changes:
DEV_SKIP_TRANSLATION
get_one_translation(from_lang_code, to_lang_code)
now will check if the flagDEV_SKIP_TRANSLATION
is enabled, if so it will generate translations that follow the format T-([translation-language])-'[original_word]'. E.g. "hus" would return T-EN-'hus' if the translation language is English.Preview: