3 ms·
How do these interact with i18n? Can I load a translated t-string with `_(t"")` from a .po file? Can it include variable names and arbitrary code inside lambdas
by fph 1y ago
How do these interact with i18n? Can I load a translated t-string with `_(t"")` from a .po file? Can it include variable names and arbitrary code inside lambdas?
- nhumrich 1y agoI suggest you read the PEP, there is a section on i18n. Short version is it's not designed for this use case. As for variables and arbitrary code/lambdas, yes: t-strings can do that, just like f-strings