AJS.I18n.getText - "Change password" with Javascript

Robin Peters
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 4, 2020

Hi,

we connected Confluence to some external SAML IDP and connected it with an addon.
Now I want to add a "Change Password" button next to the "Edit Profile" button, where the user is forwarded to the IDP change password page. For this, I will display the label of the button in the user selected language setting.

I tried to find the plugin of that string, so I can load it with the AJS.I18n.getText() Javascript snipplet.

I just found it in the language (for example: tac.confluence.languages.de_DE) plugins, but I cant load them through a 500 Server error.
And asking for the language pack will result in the question "how to get the current users language pack".


Maybe my intention is basically wrong:
How can I get the "change password" phrase in the current user language settings with javascript?

 

Best,

Robin

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events