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

Investigate internationalization #44

Open
jzohrab opened this issue Nov 29, 2023 · 1 comment
Open

Investigate internationalization #44

jzohrab opened this issue Nov 29, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@jzohrab
Copy link
Collaborator

jzohrab commented Nov 29, 2023

i18n is a massive undertaking. Had I been smart, I'd have considered it from the start, but it's a learning process.

The grinberg article appears to be the best resource.

References:

@jzohrab
Copy link
Collaborator Author

jzohrab commented Mar 17, 2024

Total long shot, but I submitted a request to https://www.cognition-labs.com/ to use Devin to help with this.


I have written a free, open-source project for language learning called Lute. It's on GitHub at https://github.com/jzohrab/lute-v3. It's written in Python and Flask.

Lute currently has about 600 users on discord, and perhaps thousands of other users (I'm not sure, I haven't been keeping track). My goal is for Lute to become a very popular tool for language learners, similar to Anki. Like Anki, Lute will always be free.

One task that I think would dramatically extend Lute's current reach would be to internationalize the application. Currently, all messages and strings are hardcoded in the Jinja templates, some flash messages, and some javascript files. As shown in the tutorial https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xiii-i18n-and-l10n, Flask does have a plugin called Flask-Babel which is good for i18n, but converting all of the code and extracting the strings would be a high-touch manual effort, which perhaps is something that you, Devin, could tackle.

As a first pass at this effort, the task for Devin would be:

  • pick a UI screen to internationalize (perhaps the index page lute/templates/index.html would be the best, though it has some embedded files like lute/templates/book/tablelisting.html)
  • do the necessary conversion of the Jinja and Python to use Flask-Babel
  • use pybabel to generate a language code file for Spanish
  • provide some guidances as to how to work with these generated files

Thank you very much, let me know if you need further detail.

@jzohrab jzohrab added this to Lute-v3 Apr 1, 2024
@jzohrab jzohrab added the help wanted Extra attention is needed label Oct 30, 2024
@jzohrab jzohrab pinned this issue Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

1 participant