\documentclass{article}
\usepackage{xepersian}
\begin{document}
\begin{latin}
This is typeset by \textsf{\XePersian} package,\xepersianversion,
\xepersiandate.
\begin{figure}[h]
\resetlatinfont
\label{test}
\caption{This is a test}
\end{figure}
\end{latin}
\section{عنوان قسمت}
\end{document}