Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I translate app using Jira Connect?

tomxi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 28, 2019

I am creating an app using Jira Connect and I can't seem to find a way to do i18n.

https://developer.atlassian.com/cloud/jira/platform/internationalization/ - these page clearly states I need to use context parameters, but the one for locale is deprecated because of GDPR.


Is there any way to do this?

1 answer

1 accepted

0 votes
Answer accepted
DPKJ
Community Champion
August 28, 2019

This is currently an issue for all App developer.

Two ways to solve this are,

  • Have a configure for user to set locale, or
  • Fallback to old browser/http header way to determine locale.

Something like this in JS

const getNavigatorLanguage = () => (navigator.languages && navigator.languages.length) ? navigator.languages[0] : navigator.userLanguage || navigator.language || navigator.browserLanguage || 'en';

Suggest an answer

Log in or Sign up to answer