                                 entry.date = new Date(rawDate).toLocaleDateString()
                                 entry.time = new Date(rawDate).toLocaleTimeString()
                                 entry.body = entry.body # need sanitization?
-                                entry.locale = locale
                         deferred.resolve entries
                         return deferred.promise
 

            suffix: '.json'
        }
        $translateProvider.useSanitizeValueStrategy null
        $translateProvider.preferredLanguage 'ja'
        $translateProvider.fallbackLanguage 'ja'
]




            .then (entries) ->
                $rootScope.entries = []
                console.log entries
                # sort and flatten
                entries
                    .sort (a, b) ->
                        date = (x) ->
                            Date.parse x.date
                        return date b - date a
                    .forEach (obj) ->
                        obj.forEach (entry) ->
                            $rootScope.entries.push entry

