<commit_before><commit_msg>very basic test for language translations<commit_after>'use strict';

require('should');

describe('language', function ( ) {

  it('use English by default', function () {
    var language = require('../lib/language')();
    language.translate('Carbs').should.equal('Carbs');
  });

  it('translate to French', function () {
    var language = require('../lib/language')();
    language.set('fr');
    language.translate('Carbs').should.equal('Glucides');
  });

  it('translate to Czech', function () {
    var language = require('../lib/language')();
    language.set('cs');
    language.translate('Carbs').should.equal('Sacharidy');
  });

});
{'fraction_non_alphanumeric': 0.2050520059435364, 'fraction_numerical': 0.0, 'mean_word_length': 4.349206349206349, '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': '2813206', 'n_tokens_mistral': 197, 'n_tokens_neox': 191, 'n_words': 37}