Swig uses JSON reference for locales