{"size": 324, "ext": "js", "max_stars_repo_path": "app/lang/i18nService.js", "max_stars_repo_name": "MS-React/internationalization", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/lang/i18nService.js", "max_issues_repo_name": "MS-React/internationalization", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/lang/i18nService.js", "max_forks_repo_name": "MS-React/internationalization", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.0588235294, "max_line_length": 70, "alphanum_fraction": 0.6481481481}
const I18n = require('react-i18nify-lite').I18n;
const en = require('./en.json');

if (window.i18n === undefined) {
  I18n.setTranslations({
    en: en
  });

  I18n.setLocale('en');

  window.i18n = I18n;
}

export function translate(key, options) {
  return (options) ? window.i18n.t(key, options) : window.i18n.t(key);
}
