I'm trying to add some multi language support for a custom data model in biblatex.
I'm following this answer. And have a functional prototype. However, when I started migrating the fields, it seems that it is quite repetitive to put different languages to each one of them, like
\DeclareDatamodelFields[type=field, datatype=literal]{
organization,%
title,%
country,%
country-es,%
country-en,%
description,%
description-es,%
description-en%
}
I'm looking for a way to put a loop in there (somehow), such that I can automatically create the different versions of each field.
\DeclareDatamodelFields[type=field, datatype=literal]{
organization,%
title,
% some language to support the following
foreach f in (country, description)
foreach l in (, -es, -en)
print f l,
}
I didn't find information on what language biblatex uses to process this .dbx files.
I know that I can use some external program to generate the .dbx file and then just use it. But I was looking for something that could be maintained and compiled automatically with the project in LaTeX.
Any suggestions?

.dbxis going to be (used as) an external file anyway most of the time, I would just go with automatic creation by your favourite script language. I don't think that theDeclareDatamodelFields-syntax allows for programming-like structures. I might be wrong here, but it could just be a list parser behind it. – moewe Aug 25 '16 at 07:25.dbx. (Why don't you want to create the.dbxfrom a script?) – moewe Sep 04 '16 at 07:39biblatexdoes natively. But I ended up doing it with an script outside, and used the generated files. – adn Sep 04 '16 at 22:25biblatexdoes natively". There is a big fileblx-dm.defwith all the known fields, there is no shortcut in there. BTW If you managed to solve your problem, you might want to post a self-answer so future readers with a similar problem can see your solution. – moewe Sep 05 '16 at 04:07latexcode that produces some entries, maybe I didn't understand it well. But, my solution is not a solution, is a patch actually. As I did it by hand. In that case the answer will be 'no, there is no way of doing it automatically'. – adn Sep 05 '16 at 12:46