<commit_before>app.core.i18n = function() {
	var self = this;
	var isLoaded = false;
	var defaultLocale = app.config.localization.defaultLocale;
	var userLocale = defaultLocale;
	var extendLocale = false;
	var localeData = {};

	/**
	 * Change the locale
	 * @param String newLocale
	 */
	this.setLocale = function(newLocale) {
		// Prevent change after files have been loaded
		if (isLoaded) {
			app.core.log.warning('Locale may not be changed after files have been loaded. Locale change should occur in the "loaded" hook.', 'Zeus/Localization');
			return;
		}

		// Make sure locale is supported
		if (!app.config.localization.locales[newLocale]) {
			app.core.log.warning('Locale ' + newLocale + ' does not exist in app.config.localization.locales', 'Zeus/Localization');
			return;
		}

		var userLocaleData = app.config.localization.locales[newLocale];
		extendLocale = (typeof userLocaleData == 'Object') ? userLocaleData.extend : '';

		userLocale = newLocale;
	};

	/**
	 * Check if a locale property exists
	 * @param String locale
	 * @param String file
	 * @param String namespace
	 * @param String subNamespace
	 * @param String property
	 * @return Boolean
	 */<commit_msg>Fixed bug in language inheritance<commit_after>app.core.i18n = function() {
	var self = this;
	var isLoaded = false;
	var defaultLocale = app.config.localization.defaultLocale;
	var userLocale = defaultLocale;
	var extendLocale = false;
	var localeData = {};

	/**
	 * Change the locale
	 * @param String newLocale
	 */
	this.setLocale = function(newLocale) {
		// Prevent change after files have been loaded
		if (isLoaded) {
			app.core.log.warning('Locale may not be changed after files have been loaded. Locale change should occur in the "loaded" hook.', 'Zeus/Localization');
			return;
		}

		// Make sure locale is supported
		if (!app.config.localization.locales[newLocale]) {
			app.core.log.warning('Locale ' + newLocale + ' does not exist in app.config.localization.locales', 'Zeus/Localization');
			return;
		}

		var userLocaleData = app.config.localization.locales[newLocale];
		extendLocale = (typeof userLocaleData != 'string') ? userLocaleData.extend : '';

		userLocale = newLocale;
	};

	/**
	 * Check if a locale property exists
	 * @param String locale
	 * @param String file
	 * @param String namespace
	 * @param String subNamespace
	 * @param String property
	 * @return Boolean
	 */
{'fraction_non_alphanumeric': 0.11352253756260434, 'fraction_numerical': 0.001669449081803005, 'mean_word_length': 3.8036072144288577, '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': '1020107', 'n_tokens_mistral': 764, 'n_tokens_neox': 688, 'n_words': 214}