I'm utilising Multilingual locales and have an issue with downloading PDFs in the current locale language. The component consistently generates a file with text from the default locale. Is there a solution to obtain a file in the current locale language?
Hi @Viktar Ramaneika,
whatever is your current locale in which you need to print PDF just send that language code to pdf screen and Oninitialize of it just call setLocale action to set your Language.
In my OML file
Step 1 select japanese language at UI from DropDown
Result : message is translated to selected language (ie Japanese) on PDF
Attaching OML file for your help
Note: Please take required dependencies from UltimatePDF.
Kind regards,
Sanjay Kushwah
Great! Thank you, @Sanjay Kushwah!
I've modified the solution for my case a little bit. I'm downloading a file from the PDF preview screen, so I've added the language code as an input parameter, SetLocale action OnInitialize, and sent GetBookmarkableURL() to the PrintToPDF.
Thank you again, and have a great weekend! :)