<commit_before>/**
 * Copyright (c) 2010-present Abixen Systems. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

(function () {
    'use strict';

    angular
        .module('platformField')
        .config(fieldTranslateConfig);

    fieldTranslateConfig.$inject = ['$translateProvider'];
    function fieldTranslateConfig($translateProvider) {

        $translateProvider.useSanitizeValueStrategy('escape');

        $translateProvider.translations('pl', {
            'application.validator.invalid.minlength': 'Min długość pola "{{label}}" wynosi {{min}}',
            'application.validator.invalid.maxlength': 'Max długość pola "{{label}}" wynosi {{max}}',
            'application.validator.invalid.required': '{{label}} jest wymagane',
            'application.validator.invalid.email': '{{label}} ma niepoprawny format'

        });

        $translateProvider.translations('en', {
            'application.validator.invalid.minlength': 'Min length of field "{{label}}" is {{min}}',
            'application.validator.invalid.maxlength': 'Max length of field "{{label}}" is {{max}}',
            'application.validator.invalid.required': '{{label}} is required',
            'application.validator.invalid.email': '{{label}} has invalid format'
        });
    }
})();<commit_msg>Create Russian translations for validators messages. Resolve #196<commit_after>/**
 * Copyright (c) 2010-present Abixen Systems. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

(function () {
    'use strict';

    angular
        .module('platformField')
        .config(fieldTranslateConfig);

    fieldTranslateConfig.$inject = ['$translateProvider'];
    function fieldTranslateConfig($translateProvider) {

        $translateProvider.useSanitizeValueStrategy('escape');

        $translateProvider.translations('pl', {
            'application.validator.invalid.minlength': 'Min długość pola "{{label}}" wynosi {{min}}',
            'application.validator.invalid.maxlength': 'Max długość pola "{{label}}" wynosi {{max}}',
            'application.validator.invalid.required': '{{label}} jest wymagane',
            'application.validator.invalid.email': '{{label}} ma niepoprawny format'

        });

        $translateProvider.translations('en', {
            'application.validator.invalid.minlength': 'Min length of field "{{label}}" is {{min}}',
            'application.validator.invalid.maxlength': 'Max length of field "{{label}}" is {{max}}',
            'application.validator.invalid.required': '{{label}} is required',
            'application.validator.invalid.email': '{{label}} has invalid format'
        });

        $translateProvider.translations('ru', {
            'application.validator.invalid.minlength': 'Длина поля "{{label}}" не менее {{min}}',
            'application.validator.invalid.maxlength': 'Длина поля "{{label}}" не более {{max}}',
            'application.validator.invalid.required': '{{label}} обазательное поле',
            'application.validator.invalid.email': '{{label}} имеет не верный формат'
        });
    }
})();
{'fraction_non_alphanumeric': 0.12900838677849039, 'fraction_numerical': 0.00370004933399112, 'mean_word_length': 3.407608695652174, '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': '2897420', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1069, 'n_words': 334}