# Referencing with Devanagari in biblatex

This is my MWE -

\begin{filecontents}{test.bib}
@BOOK{म्हणी,
TITLE={मराठी भाषेतील असभ्य म्हणी व वाक्प्रचार},
AUTHOR={मराठे, अश्विनीकुमार दत्तात्रेय},
YEAR={2012},
PUBLISHER={ग्रंथाली}
}
\end{filecontents}

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{marathi}
\usepackage{lipsum}
\usepackage[backend=biber,style=apa]{biblatex}
\setmainfont[Script=Devanagari,Mapping=devanagarinumenrals]{Yashomudra} %Replace with any Devanagari font.

\begin{document}
\lipsum[1-2]
\cite{म्हणी}
\printbibliography
\end{document}


This MWE results in some error messages, e.g.:

! Undefined control sequence.
<argument> \datecircaprint \mkbibdateapalongextra
{labelyear}{labelmonth}{la...
l.19 ^^I\cite{म्हणी}


See the full .log file for further details. What could be the possible reason? How to solve this?

• Where do you see an error message? The messages are all marked as INFO. – Ralf Stubner Dec 3 '19 at 13:05
• Probably not in the .blg file, but I have errors in the log. See line 736, 749 of the log file. I pasted blg file just in case it was needed. – Niranjan Dec 3 '19 at 13:10
• that's a biblatex-apa problem. You are missing the language files. – Ulrike Fischer Dec 3 '19 at 14:09
• How to solve it @UlrikeFischer? – Niranjan Dec 3 '19 at 14:29
• As Ulrike says, you need an .lbx file for your language, see for example tex.stackexchange.com/q/310471/35864 and links. Since APA style is a bit tricky and the definitions needed by biblatex-apa need some work I would urge you to check out whether it would be possible to use one of the standard styles (style=authoryear, for example) instead of the highly specialised and American-centric APA style. – moewe Dec 4 '19 at 21:22

@Niranjan, replacing \printbibliography with \bibliography{test} and \bibliographystyle{apalike} helps. However, notice that the initials written in Devanagari are not properly recognised by the bibtex.

\begin{filecontents}{test.bib}
@BOOK{म्हणी,
TITLE={मराठी भाषेतील असभ्य म्हणी व वाक्प्रचार},
AUTHOR={मराठे, अश्विनीकुमार दत्तात्रेय},
YEAR={2012},
PUBLISHER={ग्रंथाली}
}
\end{filecontents}

\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{marathi}
\usepackage{lipsum}
%\usepackage[backend=biber,style=apa]{biblatex}