Syntax error in the example

I18n.load_path += Dir["path/to/your/locales/*.{po}")]

should be

I18n.load_path += Dir["path/to/your/locales/*.{po}"]