Localized errors

enolib's messages are fully localized, this is how you provide a different locale:

const enolib = require('enolib');
const { es } = require('enolib/locales');

const document = enolib.parse('field: value', { locale: es });

The currently available locales are de, en and es, you are very welcome to contribute additional locales at https://github.com/eno-lang/enolib/tree/master/locales. It's a fairly simple process but you can also get in touch directly via mail to request the strings that need translation and send them back if you'd rather not deal with the technicalities.


Next page: Error formats