Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

translate label (Internationalization)

barbaste
New Contributor II
New Contributor II

We are creating an enum attribute with two values: External and Subcontractor in the request user form and we would like to internationalize these values. We would like to use a token in place of the name and have Savyint override that token depending on the browser language. For example, in English we want to display "Internal and Subcontractor" to the user, in French we want to display: "interne and externe".

4 REPLIES 4

sahajranajee
Saviynt Employee
Saviynt Employee

@barbaste 

This functionality is not directly built into the product as of now.

We can try the solutioning the same via SQL query type list Dynamic attribute. 
Keep the dynamic attribute value sql query as below:

select case when locale='en' then 'Internal' when locale is null then 'Internal' when locale='fr' then 'interne' end as ID from users where userkey=${requestee}
union
select case when locale='en' then 'External' when locale is null then 'External' when locale='fr' then 'externe' end as ID from users where userkey=${requestee};

For each value of a dynamic attribute, you need to have a case statement to evaluate the locale . If its a new user creation and locale value is not available, you need to have an initial dynamic attribute for language selection and then use that dynamic in the SQL query that i provided above for locale comparison.

The above statement looks like below on the form :

sahajranajee_0-1662633195469.png

 


Regards,
Sahaj Ranajee
Sr. Product Specialist

Thanks

barbaste
New Contributor II
New Contributor II

Sorry but your solution doesn't work. the locale variable does not exist. My version is 2021.0

Please work with support team using freshdesk


Regards,
Rushikesh Vartak
If you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.