gitlocalize / feedback

:mega: We love feedback :sparkles:
20 stars 8 forks source link

[feature request] exclude parts from translation #125

Open mtdvlpr opened 1 year ago

mtdvlpr commented 1 year ago

I have markdown files that need to be translated and they have a front matter block with a tag, title and ref. While the tag and title need to be translated, the ref needs to be kept the same, because I'm using it to link the different translations of the same file.

It would be great if I could somehow make the ref untranslatable/locked, so that my translators can't accidentally make the mistake of translating them.

svasilenkov commented 1 year ago

@mtdvlpr Thanks for the suggestion. We have added this into our todo list.

svasilenkov commented 1 year ago

@mtdvlpr At the moment you can disable pretranslation (via Machine Translate feature) of specific frontmatter keys by adding .gitlocalize.yml YAML config file to the root of your repository. Keys to ignore can be listed in the config file like in this screenshot:

image