{"action":"created","issue":{"url":"https://api.github.com/repos/mashpie/i18n-node/issues/260","repository_url":"https://api.github.com/repos/mashpie/i18n-node","labels_url":"https://api.github.com/repos/mashpie/i18n-node/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/mashpie/i18n-node/issues/260/comments","events_url":"https://api.github.com/repos/mashpie/i18n-node/issues/260/events","html_url":"https://github.com/mashpie/i18n-node/issues/260","id":168827166,"number":260,"title":"Locales gets overwritten completely","user":{"login":"Mojo90","id":2122156,"avatar_url":"https://avatars.githubusercontent.com/u/2122156?v=3","gravatar_id":"","url":"https://api.github.com/users/Mojo90","html_url":"https://github.com/Mojo90","followers_url":"https://api.github.com/users/Mojo90/followers","following_url":"https://api.github.com/users/Mojo90/following{/other_user}","gists_url":"https://api.github.com/users/Mojo90/gists{/gist_id}","starred_url":"https://api.github.com/users/Mojo90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mojo90/subscriptions","organizations_url":"https://api.github.com/users/Mojo90/orgs","repos_url":"https://api.github.com/users/Mojo90/repos","events_url":"https://api.github.com/users/Mojo90/events{/privacy}","received_events_url":"https://api.github.com/users/Mojo90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-02T08:26:04Z","updated_at":"2016-08-02T08:53:26Z","closed_at":null,"body":"Can I prevent somehow that my complete json-file gets overwritten?\r\nThis is my config:\r\n```\r\nvar i18n = require(\"i18n\");\r\ni18n.configure({\r\n    locales:['en', 'de'],\r\n    defaultLocale: 'de',\r\n    queryParameter: 'lang',\r\n    directory: 'locales',\r\n    objectNotation: true,\r\n    cookie: 'hyphylangcookie',\r\n});\r\n```\r\nWhat happened now is that sometimes my json is overwritten completely. Not sure why?"},"comment":{"url":"https://api.github.com/repos/mashpie/i18n-node/issues/comments/236844114","html_url":"https://github.com/mashpie/i18n-node/issues/260#issuecomment-236844114","issue_url":"https://api.github.com/repos/mashpie/i18n-node/issues/260","id":236844114,"user":{"login":"mashpie","id":118508,"avatar_url":"https://avatars.githubusercontent.com/u/118508?v=3","gravatar_id":"","url":"https://api.github.com/users/mashpie","html_url":"https://github.com/mashpie","followers_url":"https://api.github.com/users/mashpie/followers","following_url":"https://api.github.com/users/mashpie/following{/other_user}","gists_url":"https://api.github.com/users/mashpie/gists{/gist_id}","starred_url":"https://api.github.com/users/mashpie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mashpie/subscriptions","organizations_url":"https://api.github.com/users/mashpie/orgs","repos_url":"https://api.github.com/users/mashpie/repos","events_url":"https://api.github.com/users/mashpie/events{/privacy}","received_events_url":"https://api.github.com/users/mashpie/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T08:53:26Z","updated_at":"2016-08-02T08:53:26Z","body":"you should check with these options:\r\n\r\n```js\r\ni18n.configure({\r\n    // watch for changes in json files to reload locale on updates - defaults to false\r\n    autoReload: true,\r\n\r\n    // whether to write new locale information to disk - defaults to true\r\n    updateFiles: false,\r\n\r\n    // sync locale information accros all files - defaults to false\r\n    syncFiles: false,\r\n});\r\n```\r\n"}}
{"actor":{"display_login":"mashpie"}}