Question
How can I use polyglossia package to translate my document from one language to another?
The documentation and all examples online I have found show polyglossia package being used to product single document containing multiple languages, while I want to produce multiple documents each in a different language.
Example
For example having a document:
\setdefaultlanguage{english} \setotherlanguage{polish} \setotherlanguage{spanish} \begin{document} \textenglish{Hello} \textpolish{Cześć} \textspanish{Hola} \end{document} I'd like to produce 3 outputs:
output-en.pdfcontaining "Hello"output-pl.pdfcontaining "Cześć"output-es.pdfcontaining "Hola"