Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
blami
1y ago
0 comments
Share
I am not very familiar with Python. How do you localize (translate) first one?
0 comments
default
newest
oldest
wzdd
1y ago
You don't with f-strings because they're substituted eagerly. You could with the new t-strings proposed here because you can get at the individual parts.
BiteCode_dev
1y ago
That's what t-strings are about. They are lazy, so you can mark them for translation "as-is".
j
/
k
navigate · click thread line to collapse