To define the languages for the dictionary the package options primary and secondary have to be set.
Use datatool to create database of entries and print them sorted.