Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fph
14 days ago
|
parent
|
context
|
favorite
| on:
Python’s new t-strings
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
14 days ago
[–]
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
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: