<commit_before>/**
 * WSL internationalization settings and methods.
 * Delegating language helper functions from raix:handlebar-helpers@0.2.3
 * @namespace WLS.i18n
 * @type {Object} WSL.i18n
 */

WSL.i18n = Helpers;

/**
 * current Language
 * @type {string} WSL.i18n.currentLanguage
 */

WSL.i18n.currentLanguage = 'en';

/**
 * Function to set the language
 * @param {string} language
 */

WSL.i18n.setLanguage = function (language) {
    if(language && language !== WSL.i18n.currentLanguage) {
        TAPi18n.setLanguage(language)
            .done(function () {
                T9n.setLanguage(language);
            })
            .fail(function (error_message) {
                wAlert.error(error_message);
            });

        WSL.i18n.currentLanguage = language;
    }
};

/**
 * Wrapper for the i18n package
 */

i18n = {};

i18n.t = function (str, options) {
    if (Meteor.isServer) {
        return TAPi18n.__(str, options, WSL.i18n.language());
    } else {
        return TAPi18n.__(str, options);
    }
};

/**
 * Startup
 */<commit_msg>currentlanguage is german<commit_after>/**
 * WSL internationalization settings and methods.
 * Delegating language helper functions from raix:handlebar-helpers@0.2.3
 * @namespace WLS.i18n
 * @type {Object} WSL.i18n
 */

WSL.i18n = Helpers;

/**
 * current Language
 * @type {string} WSL.i18n.currentLanguage
 */

WSL.i18n.currentLanguage = 'de';

/**
 * Function to set the language
 * @param {string} language
 */

WSL.i18n.setLanguage = function (language) {
    if(language && language !== WSL.i18n.currentLanguage) {
        TAPi18n.setLanguage(language)
            .done(function () {
                T9n.setLanguage(language);
            })
            .fail(function (error_message) {
                wAlert.error(error_message);
            });

        WSL.i18n.currentLanguage = language;
    }
};

/**
 * Wrapper for the i18n package
 */

i18n = {};

i18n.t = function (str, options) {
    if (Meteor.isServer) {
        return TAPi18n.__(str, options, WSL.i18n.currentLanguage);
    } else {
        return TAPi18n.__(str, options);
    }
};

/**
 * Startup
 */
{'fraction_non_alphanumeric': 0.1394478240524099, 'fraction_numerical': 0.031820308844174076, 'mean_word_length': 2.4764227642276424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7082469', 'n_tokens_mistral': 760, 'n_tokens_neox': 723, 'n_words': 140}