Wikimedia
Flask-JSONLocale: Determine relative MESSAGE_DIR from correct directory
Flask-JSONLocale library is used to localize Flask-based apps. Its users include Watch Translations or Commons Mass Description.
Problem
Flask-JSONLocale currently gets the path to MESSAGES_DIR
config variable from current working directory. That means you need to run the app from the directory app.py is in, otherwise, relative MESSAGES_DIR isn't likely to work.
Proposed solution
Make Flask-JSONLocale always derrive relative MESSAGES_DIR from where app.py is, not from current working directory. Please note absolute MESSAGE_DIR should be allowed.
Student is expected to provide a GitHub pull request against https://github.com/urbanecm/flask-jsonlocale.
Task tags
Students who completed this task
BubblySprout