Hacker News new | past | comments | ask | show | jobs | submit login

This breaks gettext translations:

  _(f"English {a} words {b} here {a}")
The interpolation is done before the string is passed to gettext which can't retrieve the translated string any more.



Correct, don't use it with i18n, the same as with any other string formatting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: