So, now you can enter the
Translation Superman mode and see something like this:
What can we do with this?
Match translated strings and their translation keys right in the GUI, which I hope is a good news for translators.
Quickly find where a particular piece of HTML is rendered in Handlebards templates since almost every text is internationalized. This, I believe, is a good news for those who want to learn Discourse and contribute but finds it difficult to understand what is where. So you just get the translation key and find it in the Discourse codebase quickly in your favorite IDE.
This functionality is gone as soon as the Discourse tab is reloaded in your browser.
How to become the
For a permanent setting, go to site settings and enable
For one-time session, enable it in console:
From that point on when you reload the page you will get a localization session. Once you close the tab, it will go away.
From now on, each time a single string is translated, 2 things will happen:
a. The used translation key and corresponding translation options are logged in the browser console with a unique incremental number.
b. The incremental number is appended to the translated string.