Forums

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

Announcement banner depending on users language

Tido_Lorenz February 6, 2024

Hi,

we have some users who are not using Jira in English.

We want them to receive a different announcement banner, (without having to install another plugin)
Sadly I don't know JavaScript well enough.
We know that the Field we are testing for should be named "jira.user.locale".

In Pseudocode, we want to do something like this:
IF "jira.user.locale" = "nl_NL"
THEN "Hoi, User"
ELSE "Hi, User"
END

Could you show me how to implement this logic?

Cheers,
Tido

1 answer

0 votes
Dan Breyen
Community Champion
February 6, 2024

Hi @Tido_Lorenz welcome to the community.  It looks like the functionality you're looking for will be built into the system once this fix is released and you update to that version: JSDSERVER-11991 

I think that's what you're looking for!  

 

Tido_Lorenz February 7, 2024

Hi Dan, thanks for your reply.

This seems to be Jira Service Desk specific - we only have Jira Software.

I should specify what I am talking about, sorry:

Admin > System > User Interface > Announcement Banner

(we show it only after login, so setting is 'private')

TidoL February 15, 2024

Another possible solution path came to my mind:
Is it possible to "read" the menue bar ("Dashboards, Projects, Issues, Boards, Plans...")?

From the way "Projects" is spelled, we can determine the language good enough.
So IF MenueField2 = "Projects" Then "Hello", else if MenueField2 = "Projecten" Then "Hoi"...
And so on?

Suggest an answer

Log in or Sign up to answer