In my soy templates I use
for i18n. The keys are available both in English and German. There seems to be a problem with caching:
If the template is rendered the first time for a user with a German locale, all other users will see the German text. This cache is valid until I reinstall the plugin. This just affects localized texts but not other dynamic data.
Example (with Fritz and James, who use different browsers):
There seem to be issues with caching: https://answers.atlassian.com/questions/108544/disabling-soy-caching
But I can't reproduce this problem with Soy Templates used by Atlassian. It occurs both on a dev and a production system. Am I missing something?
<component-import key="soyTemplateRenderer" interface="com.atlassian.soy.renderer.SoyTemplateRenderer"/> <web-resource name="foo" key="foo"> <!-- transform calls to AJS.getText() inside JS files --> <transformation extension="js"> <transformer key="jsI18n"/> </transformation> <!-- Make available to the client-side in JS as well... --> <transformation extension="soy"> <transformer key="soyTransformer"/> </transformation> <resource type="download" name="MyStatus.soy.js" location="/templates/status/mystatus.soy"/> <context>atl.general</context> </web-resource>
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs