{"size": 662, "ext": "js", "max_stars_repo_path": "src/js/utils/I18n.js", "max_stars_repo_name": "Koshila-cd/app-header", "max_stars_repo_stars_event_min_datetime": "2018-05-30T18:14:30.000Z", "max_stars_repo_stars_event_max_datetime": "2018-05-30T18:14:30.000Z", "max_issues_repo_path": "src/js/utils/I18n.js", "max_issues_repo_name": "Koshila-cd/app-header", "max_issues_repo_issues_event_min_datetime": "2016-03-31T23:06:30.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T07:48:16.000Z", "max_forks_repo_path": "src/js/utils/I18n.js", "max_forks_repo_name": "Koshila-cd/app-header", "max_forks_repo_forks_event_min_datetime": "2016-07-20T20:20:50.000Z", "max_forks_repo_forks_event_max_datetime": "2018-06-05T07:33:58.000Z"}
{"max_stars_count": 1, "max_issues_count": 48, "max_forks_count": 5, "avg_line_length": 20.0606060606, "max_line_length": 62, "alphanum_fraction": 0.6344410876}
'use strict';

var assign = require('object-assign/index');

module.exports = I18n;

function I18n(options) {
	var settings = assign({}, this.defaultSettings, options);
	this.keys = this.strings[settings.locale] || this.strings.en;
}

I18n.prototype.defaultSettings = {
	locale: 'en'
};

I18n.prototype.translate = function (key) {
	return this.keys[key] || key;
};

I18n.prototype.strings = {
	en: {
		'All courses': 'All courses',
		'Menu': 'Menu',
		'User account menu': 'User account menu',
		'My Account': 'My Account',
		'Sign In': 'Sign In',
		'Sign Out': 'Sign Out',
    'close': 'close',
    'Pearson - Home': 'Pearson - Home',
    'help': 'help'
	}
};
