{"action":"created","issue":{"url":"https://api.github.com/repos/lgalfaso/angular-dynamic-locale/issues/93","repository_url":"https://api.github.com/repos/lgalfaso/angular-dynamic-locale","labels_url":"https://api.github.com/repos/lgalfaso/angular-dynamic-locale/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/lgalfaso/angular-dynamic-locale/issues/93/comments","events_url":"https://api.github.com/repos/lgalfaso/angular-dynamic-locale/issues/93/events","html_url":"https://github.com/lgalfaso/angular-dynamic-locale/issues/93","id":145015810,"number":93,"title":"Any examples for loading directly into cache?","user":{"login":"amritk","id":2039539,"avatar_url":"https://avatars.githubusercontent.com/u/2039539?v=3","gravatar_id":"","url":"https://api.github.com/users/amritk","html_url":"https://github.com/amritk","followers_url":"https://api.github.com/users/amritk/followers","following_url":"https://api.github.com/users/amritk/following{/other_user}","gists_url":"https://api.github.com/users/amritk/gists{/gist_id}","starred_url":"https://api.github.com/users/amritk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amritk/subscriptions","organizations_url":"https://api.github.com/users/amritk/orgs","repos_url":"https://api.github.com/users/amritk/repos","events_url":"https://api.github.com/users/amritk/events{/privacy}","received_events_url":"https://api.github.com/users/amritk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-31T20:54:44Z","updated_at":"2016-04-14T22:31:58Z","closed_at":null,"body":"I'll probably create a gulp plugin or something that would load selected locales directly into the cache so there's no need to load a file on language change. Could you provide an example of what to load into the cache?"},"comment":{"url":"https://api.github.com/repos/lgalfaso/angular-dynamic-locale/issues/comments/210187457","html_url":"https://github.com/lgalfaso/angular-dynamic-locale/issues/93#issuecomment-210187457","issue_url":"https://api.github.com/repos/lgalfaso/angular-dynamic-locale/issues/93","id":210187457,"user":{"login":"evilaliv3","id":217034,"avatar_url":"https://avatars.githubusercontent.com/u/217034?v=3","gravatar_id":"","url":"https://api.github.com/users/evilaliv3","html_url":"https://github.com/evilaliv3","followers_url":"https://api.github.com/users/evilaliv3/followers","following_url":"https://api.github.com/users/evilaliv3/following{/other_user}","gists_url":"https://api.github.com/users/evilaliv3/gists{/gist_id}","starred_url":"https://api.github.com/users/evilaliv3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilaliv3/subscriptions","organizations_url":"https://api.github.com/users/evilaliv3/orgs","repos_url":"https://api.github.com/users/evilaliv3/repos","events_url":"https://api.github.com/users/evilaliv3/events{/privacy}","received_events_url":"https://api.github.com/users/evilaliv3/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T22:31:58Z","updated_at":"2016-04-14T22:31:58Z","body":"I think also that something like this would be really valuable.\r\n\r\n@lgalfaso does the library support loading a data uri via in a way like localeLocationPattern(datauri) ?\r\n\r\nif yes one in the build process could simply do a rewrite from localeLocationPattern(/file/path/for/lang) to localeLocationPattern(dataUriOf(/file/path/for/lang))\r\n\r\nWe are doing it in GlobaLeaks in our build process for other reasons and it works great in general: https://github.com/globaleaks/GlobaLeaks/blob/master/client/Gruntfile.js#L9"}}