ttag-org / ttag

:orange_book: simple approach for javascript localization
https://ttag.js.org/
MIT License
337 stars 40 forks source link

BUG: Translations are ignored if the same variable is in the formatstring twice #249

Closed kevinlul closed 1 year ago

kevinlul commented 1 year ago

Simplified example based on a bug we found while testing.

t`**Pendulum Scale**: ${card.pendulum_scale}/${card.pendulum_scale}

PO file

msgid "**Pendulum Scale**: ${ card.pendulum_scale }/${ card.pendulum_scale }"
msgstr "**펜듈럼 스케일**: ${ card.pendulum_scale }/${ card.pendulum_scale }"

No matter what the locale is set to, the default English value will be returned.

kevinlul commented 1 year ago

Duplicate of #212