I18n Properties for Page Modules not working

Hi there,

we are developing a connect app for Jira Cloud and Jira Service Desk. We need to implement some custom pages, e.g. a “User Settings” page and want to target multiple languages.

The page and the correspoding link in the users options is defined as follows:

{
  ...

  "translations": {
    "paths": {
      "de-DE": "/assets/i18n/de.json",
      "en-US": "/assets/i18n/en.json",
      "es-ES": "/assets/i18n/es.json",
      "fr-FR": "/assets/i18n/fr.json"
    }
  },

  "modules": {
  
	...
  
    "adminPages": [{
      "key": "admin",
      "url": "/configure",
      "name": {
        "value": "myApp.admin.title",
        "i18n": "myApp.admin.title"
      },
      "conditions": [{
        "condition": "user_is_admin"
      }]
    }],

    "configurePage": {
      "key": "configure",
      "url": "/configure",
      "name": {
        "value": "myApp.admin.title",
        "i18n": "myApp.admin.title"
      },
      "conditions": [{
        "condition": "user_is_admin"
      }]
    },

    "postInstallPage": {
      "key": "postinstall",
      "url": "/postInstall",
      "name": {
        "value": "My Post-Install Page"
      },
      "conditions": [{
        "condition": "user_is_admin"
      }]
    },

    "generalPages": [{
      "key": "usersettings",
      "url": "/userSettings",
      "icon": {
        "width": 80,
        "height": 80,
        "url": "/maps/icon.png"
      },
      "name": {
        "value": "myApp.userSettings.title",
        "i18n": "myApp.userSettings.title"
      },
      "location": "none",
      "conditions": [{
        "condition": "user_is_logged_in"
      }]
    }],

    "webItems": [{
      "key": "usersettings-link",
      "url": "/usersettings",
      "location": "system.user.options/personal",
      "name": {
        "value": "myApp.userSettings.title",
        "i18n": "myApp.userSettings.title"
      },
      "context": "page",
      "target": {
        "type": "page"
      },
      "conditions": [{
        "condition": "user_is_logged_in"
      }]
    }],

    "webPanels": [{
      "key": "issuepanelright",
      "cacheable": true,
      "location": "atl.jira.view.issue.right.context",
      "name": {
        "value": "plugin.open",
        "i18n": "plugin.open"
      },
      "url": "/issue"
    }]
  }
}

The i18n strings from our translation-files are not applied to the page title (visible in the browser tab). It always shows only the “value” not the resolved string from out translation files.

The mechanism works for the webitem (e.g. link to user settings) but not for any of the page titles ( also not for AdminPage, ConfigurePage, PostInstall Page).

Any hints what is wrong or if this is a known issue?

Regards
Joe

2 Likes