←back to thread

620 points tambourine_man | 2 comments | | HN request time: 0.415s | source
1. fph ◴[] No.43750052[source]
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?
replies(1): >>43751188 #
2. nhumrich ◴[] No.43751188[source]
I 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