Use translation keys, not text

Don’t insert literal text in your patterns. Instead, insert a key that can then be translated.

For example, if you want to put “Finish with bias tape” on your pattern, don’t be tempted to do this:

path.seam.attr("data-text", "Finish with bias tape");

That (English) string is now hard-coded in your pattern. As FreeSewing supports translation out of the box, it would be a real shame not to make use of it.

Instead, insert a key to identify the string:

path.seam.attr("data-text", "finishWithBiasTape");

This way, different strings for different languages can be associated with the key, allowing translated text to be used.

You can find and browse the translations and available translation keys in the freesewing/freesewing project on GitHub.