In a discussion titled ‘Translation keys reference’, user pHneutre reported an issue where a custom site text contained an invalid interpolation key (js.discourse_post_event) following upgrades. While the Discourse Bot suggested checking core client.en.yml and server.en.yml files, the user could not locate the key prefix, suspecting it belonged to the #calendar-and-event plugin. Consequently, they requested a comprehensive reference guide for translation key suffixes to better understand their origins.
User Moin clarified that translation keys are typically nested in YAML files rather than written as full strings, and that core files are insufficient for plugin-specific keys. They identified the key as part of the calendar plugin and provided a direct link to the relevant GitHub file. Moin further recommended using translations.discourse.org as a more efficient search tool than GitHub, noting it offers context, pull request history, and screenshots.
pHneutre expressed surprise that this new resource was not referenced in existing documentation or the Discourse Bot’s suggestions. Moin confirmed the tool is very recent, having been introduced less than a month prior.
Hi, after a batch of upgrades, I got an invalid interpolation key in a customized site text.
I wanted to trace where the text is used. Discourse Bot told me to look in these files :
But I cant find the prefix of my translation key js.discourse_post_event.
As I’m very insightful , I figured it might be linked to the #calendar-and-event plugin, but I can’t find whether it’s in a separate Github repo or not now, and which, so I’m stuck.
Request : it would be great to have a translation keys suffix reference, such as what the bot told me but complete:
It’s very unlikely you will ever find the whole key in a yml file, because they are nested instead of being written as a whole. But if you want to find it, searching only the core files is not enough because as you assumed, this is part of the calendar plugin. The js at the beginning tells you that it’s part of a client file. You can find it here:
Instead of searching on GitHub, it’s easier to search here:
You can even find the pull requests where the text was created or updated there, which often contains screenshots or at least a comment.