Seeking your advice on XLM-R for NMT

I want to use XLM-R for neural machine translation b/n the same low resource language?
For example: Input-> He sells food(in Catalan) Output-> Food he sells(in Catalan)
Anyone having code example/tutorial please share. Thanks