<commit_before>Backbone = require 'backbone'
Polyglot = require 'node-polyglot'
Backbone.$ = require 'jquery'

module.exports =
    initialize: ->
        # Used in inter-app communication
        #SocketListener = require '../lib/socket_listener'

        @locale = window.locale
        delete window.locale

        @polyglot = new Polyglot locale: @locale
        try
            locales = require './locales/'+ @locale
        catch e
            locales = require './locales/en'

        @polyglot.extend locales
        window.t = @polyglot.t.bind @polyglot

        TaskStore = require './stores/TaskStore'
        TagStore = require './stores/TagStore'
<commit_msg>Fixed: app wasn't localized anymore<commit_after>Backbone = require 'backbone'
Polyglot = require 'node-polyglot'
Backbone.$ = require 'jquery'


module.exports =
    initialize: ->
        # Used in inter-app communication
        #SocketListener = require '../lib/socket_listener'

        @locale = window.locale
        delete window.locale

        @polyglot = new Polyglot locale: @locale

        # trick to include all supported localization files with browserify
        localesLoader =
            en: require './locales/en'
            fr: require './locales/fr'
        locales = localesLoader[@locale]
        locales = localesLoadre['en'] unless locales?
        @polyglot.extend locales
        window.t = @polyglot.t.bind @polyglot

        TaskStore = require './stores/TaskStore'
        TagStore = require './stores/TagStore'

{'fraction_non_alphanumeric': 0.10269914417379855, 'fraction_numerical': 0.0, 'mean_word_length': 2.3333333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5774412', 'n_tokens_mistral': 431, 'n_tokens_neox': 418, 'n_words': 112}