Y
Hacker News
new
|
ask
|
show
|
jobs
by
blami
429 days ago
I am not very familiar with Python. How do you localize (translate) first one?
2 comments
wzdd
428 days 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.
link
BiteCode_dev
422 days ago
That's what t-strings are about. They are lazy, so you can mark them for translation "as-is".
link