<commit_before>import { Meteor } from 'meteor/meteor';
import { TAPi18n } from 'meteor/tap:i18n';

let getUserLanguage = function() {
	// Put here the logic for determining the user language
	return 'fr';
};

if (Meteor.isClient) {
	Meteor.startup(function() {
		TAPi18n.setLanguage(getUserLanguage()).fail(function(error_message) {
			return throwError(error_message);
		});
	});
}<commit_msg>Put code into ES6 mode<commit_after>import { Meteor } from 'meteor/meteor';
import { TAPi18n } from 'meteor/tap:i18n';
import { Bert } from 'meteor/themeteorchef:bert';

let getUserLanguage = () => {
	// Put here the logic for determining the user language
	return 'fr';
};

if (Meteor.isClient) {
	Meteor.startup(() => {
		TAPi18n.setLanguage(getUserLanguage()).fail((error_message) => {
			return Bert.alert(error_message, 'danger', 'growl-top-right');
		});
	});
}
{'fraction_non_alphanumeric': 0.15563298490127758, 'fraction_numerical': 0.015098722415795587, 'mean_word_length': 4.986111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2950593', 'n_tokens_mistral': 335, 'n_tokens_neox': 302, 'n_words': 65}