REST API Call: More than one Language in a single call
Wednesday, August 31, 2022 at 01:17pmHi Duo,
Hope you are doing well!
Just a quick question - Is it possible to have both English & French language in a single API call? There is an internal application called as 'AutoHub', and we are implementing OneSpan Sign service through REST API, there are many AutoHub users who may want to use OneSpan Sign designer view in their respective languages, some might want to use it in English, and some in French, therefore, my question is :
Is it possible to have EN and FR parameters in a single API call so that when English users access the designer view, it should come in English, and when French users access the designer view, it should come in French?
Please correct me if I am wrong, but there is always an option to have a sender account set to French to access the designer view in French, and the admin account to English to access the designer view in English, but if there is only the admin account, then can we have the language parameters set to both EN, and FR in one API call so that the designer view would display in a language based on the language of the user?
I hope my question is clear, if not, I can elaborate further, please advise and share your thoughts on this.
Thank you & Regards,
Rajiv
Reply to: REST API Call: More than one Language in a single call
Wednesday, August 31, 2022 at 02:46pmHi Rajiv,
After release 11.37, you can add a language parameter “?lang={language_code}” to the end of the designer URL, and the page will be localized in the language of your choice. For example:
{instance_url}/auth?senderAuthenticationToken={senderToken}&target={instance_url}/a/transaction/{packageId}/designer?profile={profileName}&lang=en
{instance_url}/auth?senderAuthenticationToken={senderToken}&target={instance_url}/a/transaction/{packageId}/designer?profile={profileName}&lang=fr
This parameter won't affect the sender's language preference and you can easily switch between them by passing the different values.
Duo