<commit_before>'use strict';

module.exports = function(grunt) {
    var _ = require('lodash-node');

    grunt.registerTask('i18n-vk', 'Search for missing keys from different locales in translation.json', function(task, param) {
        if (task == 'validate') {
            startValidationTask(param);
        }

        function startValidationTask(param) {
            var baseLocale = 'en-US';
            var translations = grunt.file.readJSON('static/i18n/translation.json');
            var existingLocales = _.keys(translations);
            var locales = param ? param.split(',') : existingLocales;

            var processedTranslations = {};<commit_msg>Grunt i18n task name fix<commit_after>'use strict';

module.exports = function(grunt) {
    var _ = require('lodash-node');

    grunt.registerTask('i18n', 'Search for missing keys from different locales in translation.json', function(task, param) {
        if (task == 'validate') {
            startValidationTask(param);
        }

        function startValidationTask(param) {
            var baseLocale = 'en-US';
            var translations = grunt.file.readJSON('static/i18n/translation.json');
            var existingLocales = _.keys(translations);
            var locales = param ? param.split(',') : existingLocales;

            var processedTranslations = {};
{'fraction_non_alphanumeric': 0.1203288490284006, 'fraction_numerical': 0.007473841554559043, 'mean_word_length': 2.7402234636871508, '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': '7518824', 'n_tokens_mistral': 374, 'n_tokens_neox': 357, 'n_words': 84}