Translation with placeholder


I am experimenting with translating language packages of an application with libretranslate. Here it happens that the texts contain placeholders that are filled by the application at runtime. These can look like this:

Page was last edited by {username} at {date}

Depending on the language, these placeholders are lost or changed after translation.

Is there a solution for this case?

1 Like

the simplest way is to translate in html and use <span translate="no">{username}</span> tags.
it keeps the word


best thanks, this works