Soy Caching breaks i18n in my plugin

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):

  1. Deploy
  2. Fritz opens the page -> German
  3. James opens the Page - > German
  4. Deploy
  5. James opens the Page -> English
  6. Fritz opens the Page -> English

There seem to be issues with 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?

Jira 5.1.8

<component-import key="soyTemplateRenderer" interface=""/>

    <web-resource name="foo" key="foo">

        <!-- transform calls to AJS.getText() inside JS files -->
        <transformation extension="js">
            <transformer key="jsI18n"/>

        <!-- Make available to the client-side in JS as well... -->
        <transformation extension="soy">
            <transformer key="soyTransformer"/>
        <resource type="download" name="" location="/templates/status/"/>


1 answer

This widget could not be displayed.

Hm, I didn't find any difference to the way Atlassian uses Soy besides the missing

<property key="content-type" value="text/javascript"/>

But setting the content-type didn't help.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

134 views 16 7
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you