fileContext for specific language

Hello team,

There is a %fileContext% parameter available for the AI prompt. Saying the “The file context of the current segment (can be provided via the file settings modal in the ‘Files’ tab).”

When I try to update the context via editor this context is applied to all languages in the project. Is there a way to define the context specifically for each language?

Hello,

The %fileContext% parameter is designed to provide context for the AI prompt, but it applies universally across all languages in the project.

Currently, there isn’t a feature that allows you to define the file context specifically for each language within the editor because it’s added on the source string level and usually is useful to all languages (same logic as with comments that are added on the string level).

However, you can provide additional context for translators by adding comments that explain when and where the context should be used.

Got it, thanks! In our case the idea is to have this context for specific language as well, like for example, when translating “scorecard” from English to Spanish, always use the “cuadro de mando” term, not others. It is not specific for a string, but for all occasions when “scorecard” word is used. Is there any native way to do it?

I’d say that Glossary should do the trick:

It’s designed for working with specific terms that should always be translated in a one way. You’re welcome to give it a try!