thombruce / verse

🚀 A universe in progress
Other
8 stars 0 forks source link

Unicode Isolation Characters Shown in Translations #81

Closed thombruce closed 10 months ago

thombruce commented 10 months ago

See image:

image

The squares are missing characters; if I output the string to the console, I can see that these are an FSI and PDI character - these are used to isolate the variable part of the translation text and improve handling of RTL languages.

More info: https://github.com/projectfluent/fluent.js/wiki/Unicode-Isolation

Obviously we don't want to display these, so let's figure out either:

  1. How to hide them in the finalised string (preferable)
  2. How to disable the feature entirely