{"action":"created","issue":{"url":"https://api.github.com/repos/svenfuchs/i18n/issues/338","repository_url":"https://api.github.com/repos/svenfuchs/i18n","labels_url":"https://api.github.com/repos/svenfuchs/i18n/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/svenfuchs/i18n/issues/338/comments","events_url":"https://api.github.com/repos/svenfuchs/i18n/issues/338/events","html_url":"https://github.com/svenfuchs/i18n/issues/338","id":150381097,"number":338,"title":"Don't include default_locale in list of fallbacks","user":{"login":"kiramclean","id":11531673,"avatar_url":"https://avatars.githubusercontent.com/u/11531673?v=3","gravatar_id":"","url":"https://api.github.com/users/kiramclean","html_url":"https://github.com/kiramclean","followers_url":"https://api.github.com/users/kiramclean/followers","following_url":"https://api.github.com/users/kiramclean/following{/other_user}","gists_url":"https://api.github.com/users/kiramclean/gists{/gist_id}","starred_url":"https://api.github.com/users/kiramclean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiramclean/subscriptions","organizations_url":"https://api.github.com/users/kiramclean/orgs","repos_url":"https://api.github.com/users/kiramclean/repos","events_url":"https://api.github.com/users/kiramclean/events{/privacy}","received_events_url":"https://api.github.com/users/kiramclean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-04-22T14:16:57Z","updated_at":"2016-10-16T06:36:43Z","closed_at":null,"body":"Hi everyone, \r\n\r\nIs it currently possible to not include the default locale in the list of fallbacks? I'm working on a Rails app and right now I have this in my app config: \r\n```ruby\r\nconfig.i18n.fallbacks = {'en-CA' => 'en',\r\n                         'en-US' => 'en',\r\n                         'fr-CA' => 'fr',\r\n                         'ja-JP' => 'ja'}\r\nconfig.default_locale = 'en-CA'\r\n```\r\nBut the the fallback for 'fr-CA' is actually:\r\n```ruby\r\n[\r\n    [0] :\"fr-CA\",\r\n    [1] :fr,\r\n    [2] :\"en-CA\",\r\n    [3] :en\r\n]\r\n```\r\n\r\nI don't want `en-CA` or `en` to be there, because I want i18n to raise a `MissingTranslationData` exception so that I know where I have translations missing (`actionview` wraps these in a `.translation-missing` span which makes it easy to find the missing translations).\r\n\r\nIs this currently possible? Or would it require a custom implementation of the `Fallbacks` class?\r\n"},"comment":{"url":"https://api.github.com/repos/svenfuchs/i18n/issues/comments/254030477","html_url":"https://github.com/svenfuchs/i18n/issues/338#issuecomment-254030477","issue_url":"https://api.github.com/repos/svenfuchs/i18n/issues/338","id":254030477,"user":{"login":"ngan","id":16579,"avatar_url":"https://avatars.githubusercontent.com/u/16579?v=3","gravatar_id":"","url":"https://api.github.com/users/ngan","html_url":"https://github.com/ngan","followers_url":"https://api.github.com/users/ngan/followers","following_url":"https://api.github.com/users/ngan/following{/other_user}","gists_url":"https://api.github.com/users/ngan/gists{/gist_id}","starred_url":"https://api.github.com/users/ngan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngan/subscriptions","organizations_url":"https://api.github.com/users/ngan/orgs","repos_url":"https://api.github.com/users/ngan/repos","events_url":"https://api.github.com/users/ngan/events{/privacy}","received_events_url":"https://api.github.com/users/ngan/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T06:36:43Z","updated_at":"2016-10-16T06:36:43Z","body":"@kiramclean a possible solution is to set the `default_locale` to a dummy/empty locale:\r\n```\r\nconfig.i18n.default_locale = :empty\r\n```\r\n\r\nThen create the empty locale file (config/locales/empty.yml):\r\n```\r\n# This is purposefully empty so that this can be the final fallback locale. Since it's empty, anything hitting this locale would raise a MissingTranslationData exception.\r\nempty:\r\n```"}}
{"actor":{"display_login":"ngan"}}