Replies: 2 comments
-
I think we certainly should provide localization and internationalization support. It probably isn't a great deal of work for the core library, but it would mean that folk wouldn't need to roll their own. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sounds great! Is there any ongoing effort for that or a design discussion? If I can help in any way I can dedicate some of my time to it (cannot commit to a lot because of work but I can certainly help). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The problem statement
Textual goal is to be able to generate beautiful tuis with as wide support as possible and following Rich's principle of ease of use.
For this reason it seems kind of off-topic to think about Textual supporting localization internally. However, few interface frameworks do not support this or do not have a way of enabling it.
Python provides options to handle translations (gettext for instance) and I am sure there are other third party options. However, it seems to me that it would be awesome if Textual would add support for internationalization with the same principles and through Textual objects in a way that hides away all the implementations detail. The user would provide translations files with the text that needs to be translated and the App would expose a binding to switch languages seamlessly when requested.
Usecase
I am coming to this proposal because I have an use case for this and while for now I am just working in Spanish I think this would be a nice tool also for non-spanish speakers. I have been thinking about adding support for multiple languages and it always seems that, if Textual had a way of allowing this (as Rails has for instance), it would be so much nicer than any implementation I can build into it.
What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions