Localized errors

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

require 'enolib'
require 'enolib/locales'

document = Enolib.parse('field: value', locale=Enolib::Locales::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