Best way to print in another language?

Hi, I need all my documents to print in Spanish, but I want to keep my UI in English. What is the best way to accomplish this?

Peter

Hello Peter,

You should create new Print Format, and have field labels/names in Spanish.

Frappe Cloud (check help on Print Format builder)

One Print Format is generated from Print Format builder, you can edit field label in the HTML generated for this Print Format. For this, you should go to:

Setup >> Customize >> Print Format >> (Select Custom Print Format saved) >> Edit field names in HTML

The data in the print format will render in the language it was entered. For now, data in the transaction is not translated.

in your jinja2 template you can use

frappe[“form_dict”][‘_lang’]

lang changes based on languge selected

Hey ! can you tell me how to use this in jinja2 template ? like some example or something