{"action":"created","issue":{"url":"https://api.github.com/repos/middleman/middleman/issues/1418","labels_url":"https://api.github.com/repos/middleman/middleman/issues/1418/labels{/name}","comments_url":"https://api.github.com/repos/middleman/middleman/issues/1418/comments","events_url":"https://api.github.com/repos/middleman/middleman/issues/1418/events","html_url":"https://github.com/middleman/middleman/issues/1418","id":53217860,"number":1418,"title":"i18n available locales","user":{"login":"alem0lars","id":336957,"avatar_url":"https://avatars.githubusercontent.com/u/336957?v=3","gravatar_id":"","url":"https://api.github.com/users/alem0lars","html_url":"https://github.com/alem0lars","followers_url":"https://api.github.com/users/alem0lars/followers","following_url":"https://api.github.com/users/alem0lars/following{/other_user}","gists_url":"https://api.github.com/users/alem0lars/gists{/gist_id}","starred_url":"https://api.github.com/users/alem0lars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alem0lars/subscriptions","organizations_url":"https://api.github.com/users/alem0lars/orgs","repos_url":"https://api.github.com/users/alem0lars/repos","events_url":"https://api.github.com/users/alem0lars/events{/privacy}","received_events_url":"https://api.github.com/users/alem0lars/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-01T11:22:04Z","updated_at":"2015-01-01T23:59:15Z","closed_at":"2015-01-01T23:59:15Z","body":"There's a discrepance between values returned by the middleman's builtin helper `langs` and the i18n gem's method `I18n.available_languages`.\r\n\r\nI've activated the extension:\r\n```Ruby\r\nactivate :i18n, mount_at_root: :it\r\n```\r\nThis is what `langs` gives me:\r\n```Ruby\r\nlangs\r\n# => [:en, :it]\r\n```\r\nin fact I have yamls only for languages `:it` and `:en`\r\n\r\nThis is the value of `I18n.available_languages`:\r\n```Ruby\r\nI18n.available_locales\r\n# => [:en, :cs, :da, :de, :es, :fr, :hu, :it, :ja, :lv, :nl, :no, :pl, :pt_br, :ro, :ru, :sv, :tr, :uk, :zh_cn, :zh_tw]\r\n```\r\n\r\nMaybe the two values should be kept in sync?\r\nWhy there isn't *only* `I18n.available_locales`?\r\n\r\nTy"},"comment":{"url":"https://api.github.com/repos/middleman/middleman/issues/comments/68502886","html_url":"https://github.com/middleman/middleman/issues/1418#issuecomment-68502886","issue_url":"https://api.github.com/repos/middleman/middleman/issues/1418","id":68502886,"user":{"login":"tdreyno","id":233,"avatar_url":"https://avatars.githubusercontent.com/u/233?v=3","gravatar_id":"","url":"https://api.github.com/users/tdreyno","html_url":"https://github.com/tdreyno","followers_url":"https://api.github.com/users/tdreyno/followers","following_url":"https://api.github.com/users/tdreyno/following{/other_user}","gists_url":"https://api.github.com/users/tdreyno/gists{/gist_id}","starred_url":"https://api.github.com/users/tdreyno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdreyno/subscriptions","organizations_url":"https://api.github.com/users/tdreyno/orgs","repos_url":"https://api.github.com/users/tdreyno/repos","events_url":"https://api.github.com/users/tdreyno/events{/privacy}","received_events_url":"https://api.github.com/users/tdreyno/received_events","type":"User","site_admin":false},"created_at":"2015-01-01T23:59:15Z","updated_at":"2015-01-01T23:59:15Z","body":"I think `I18n.available_locales` refers to all the langs Padrino has localized its helpers in. We can't control `I18n` as it is global. Our `i18n` extension should be considered canonical."}}