{"action":"created","issue":{"url":"https://api.github.com/repos/i18next/i18next/issues/812","repository_url":"https://api.github.com/repos/i18next/i18next","labels_url":"https://api.github.com/repos/i18next/i18next/issues/812/labels{/name}","comments_url":"https://api.github.com/repos/i18next/i18next/issues/812/comments","events_url":"https://api.github.com/repos/i18next/i18next/issues/812/events","html_url":"https://github.com/i18next/i18next/issues/812","id":172433430,"number":812,"title":"Missing translation key error?","user":{"login":"Monsignor","id":3450421,"avatar_url":"https://avatars.githubusercontent.com/u/3450421?v=3","gravatar_id":"","url":"https://api.github.com/users/Monsignor","html_url":"https://github.com/Monsignor","followers_url":"https://api.github.com/users/Monsignor/followers","following_url":"https://api.github.com/users/Monsignor/following{/other_user}","gists_url":"https://api.github.com/users/Monsignor/gists{/gist_id}","starred_url":"https://api.github.com/users/Monsignor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Monsignor/subscriptions","organizations_url":"https://api.github.com/users/Monsignor/orgs","repos_url":"https://api.github.com/users/Monsignor/repos","events_url":"https://api.github.com/users/Monsignor/events{/privacy}","received_events_url":"https://api.github.com/users/Monsignor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-22T11:49:54Z","updated_at":"2016-08-23T13:29:27Z","closed_at":null,"body":"I am loading the i18next JS before the Javascript that renders HTML, however sometimes it seems that the translation file isn't loaded before rendering takes place, and I get an error like:\r\n\r\n`i18next::translator: missingKey undefined translation popups.notifications popups.notifications`\r\n\r\nIn this example popups.notifications is the key and the correct translation from the file would be \"Account Notifications\". This happens for all keys sometimes. The rendering takes place on document load.\r\n\r\nMy i18 code is:\r\n\r\n```\r\ni18next.use(i18nextXHRBackend).init({\r\n  lng: 'en',\r\n  fallbackLng: \"en\",\r\n  debug: true,\r\n  backend: {\r\n    loadPath: \"/locales/{{lng}}.json\"\r\n  }\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/i18next/i18next/issues/comments/241730314","html_url":"https://github.com/i18next/i18next/issues/812#issuecomment-241730314","issue_url":"https://api.github.com/repos/i18next/i18next/issues/812","id":241730314,"user":{"login":"jamuhl","id":977772,"avatar_url":"https://avatars.githubusercontent.com/u/977772?v=3","gravatar_id":"","url":"https://api.github.com/users/jamuhl","html_url":"https://github.com/jamuhl","followers_url":"https://api.github.com/users/jamuhl/followers","following_url":"https://api.github.com/users/jamuhl/following{/other_user}","gists_url":"https://api.github.com/users/jamuhl/gists{/gist_id}","starred_url":"https://api.github.com/users/jamuhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamuhl/subscriptions","organizations_url":"https://api.github.com/users/jamuhl/orgs","repos_url":"https://api.github.com/users/jamuhl/repos","events_url":"https://api.github.com/users/jamuhl/events{/privacy}","received_events_url":"https://api.github.com/users/jamuhl/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T13:29:27Z","updated_at":"2016-08-23T13:29:27Z","body":"you not only need to remove the xhr but set resoures:\r\n\r\n```\r\ni18next.use(i18nextXHRBackend).init({\r\n  lng: 'en',\r\n  fallbackLng: \"en\",\r\n  debug: true,\r\n  resources: {\r\n    key: \"value\"\r\n  }\r\n});\r\n```"}}
{"actor":{"display_login":"jamuhl"}}