No, Localization is not designed for translating dynamic content it is used to store and load different languages for your app based on your target audience.
If you want to translate your PDF, you’ll need to extract the data using an LLM or an OCR and a translation API. Then, you’ll need to re-create the whole receipt using the PDF package.
thank you for response, i found solution for this issues the solution is donwload font for arabic language i am used (Amiri-Regular.ttf) and i use this font for each text in the pdf.
Oh wow I see, you created the original receipt! I originally thought it was an image .
Then yes, it’s definitely the right thing to use a locale for the translation.
Gratz it worked