{"action":"created","issue":{"url":"https://api.github.com/repos/padrino/padrino-framework/issues/1864","labels_url":"https://api.github.com/repos/padrino/padrino-framework/issues/1864/labels{/name}","comments_url":"https://api.github.com/repos/padrino/padrino-framework/issues/1864/comments","events_url":"https://api.github.com/repos/padrino/padrino-framework/issues/1864/events","html_url":"https://github.com/padrino/padrino-framework/issues/1864","id":54075541,"number":1864,"title":":zh_CN is not a valid locale","user":{"login":"JuoCode","id":3771860,"avatar_url":"https://avatars.githubusercontent.com/u/3771860?v=3","gravatar_id":"","url":"https://api.github.com/users/JuoCode","html_url":"https://github.com/JuoCode","followers_url":"https://api.github.com/users/JuoCode/followers","following_url":"https://api.github.com/users/JuoCode/following{/other_user}","gists_url":"https://api.github.com/users/JuoCode/gists{/gist_id}","starred_url":"https://api.github.com/users/JuoCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuoCode/subscriptions","organizations_url":"https://api.github.com/users/JuoCode/orgs","repos_url":"https://api.github.com/users/JuoCode/repos","events_url":"https://api.github.com/users/JuoCode/events{/privacy}","received_events_url":"https://api.github.com/users/JuoCode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/padrino/padrino-framework/labels/beginners","name":"beginners","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-12T16:38:47Z","updated_at":"2015-01-12T16:49:56Z","closed_at":null,"body":"I add following in `boot.rb`\r\n\r\n```\r\nPadrino.before_load do\r\n  I18n.locale = 'zh_CN'.to_sym\r\nend\r\n```\r\n\r\nGot following error:\r\n\r\n```\r\n/Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/i18n-0.7.0/lib/i18n.rb:284:in `enforce_available_locales!': :zh_CN is not a valid locale (I18n::InvalidLocale)\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/i18n-0.7.0/lib/i18n/config.rb:13:in `locale='\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/i18n-0.7.0/lib/i18n.rb:35:in `locale='\r\n  from /Users/juo/workspace/my_project/config/boot.rb:38:in `block in <top (required)>'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/padrino-core-0.12.4/lib/padrino-core/loader.rb:57:in `call'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/padrino-core-0.12.4/lib/padrino-core/loader.rb:57:in `each'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/padrino-core-0.12.4/lib/padrino-core/loader.rb:57:in `load!'\r\n  from /Users/juo/workspace/my_project/config/boot.rb:47:in `<top (required)>'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/padrino-core-0.12.4/lib/padrino-core/cli/launcher.rb:25:in `require'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/padrino-core-0.12.4/lib/padrino-core/cli/launcher.rb:25:in `start'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/gems/padrino-core-0.12.4/bin/padrino:9:in `<top (required)>'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/bin/padrino:23:in `load'\r\n  from /Users/juo/.rvm/gems/ruby-2.0.0-p247/bin/padrino:23:in `<main>'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/padrino/padrino-framework/issues/comments/69601708","html_url":"https://github.com/padrino/padrino-framework/issues/1864#issuecomment-69601708","issue_url":"https://api.github.com/repos/padrino/padrino-framework/issues/1864","id":69601708,"user":{"login":"JuoCode","id":3771860,"avatar_url":"https://avatars.githubusercontent.com/u/3771860?v=3","gravatar_id":"","url":"https://api.github.com/users/JuoCode","html_url":"https://github.com/JuoCode","followers_url":"https://api.github.com/users/JuoCode/followers","following_url":"https://api.github.com/users/JuoCode/following{/other_user}","gists_url":"https://api.github.com/users/JuoCode/gists{/gist_id}","starred_url":"https://api.github.com/users/JuoCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuoCode/subscriptions","organizations_url":"https://api.github.com/users/JuoCode/orgs","repos_url":"https://api.github.com/users/JuoCode/repos","events_url":"https://api.github.com/users/JuoCode/events{/privacy}","received_events_url":"https://api.github.com/users/JuoCode/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T16:49:56Z","updated_at":"2015-01-12T16:49:56Z","body":"Sorry, it should be `zh_cn`, Thanks"}}