Is there any API to get GIMP3 UI language?

It seems that if I use gettext, it is needed to provide the translation file as mo binary file.

I would like to use use plain text file as translation file because users can make their own translation files much easyer, so I tried other Implementation of translation in following program.