<commit_before>import Vue from 'vue'
import request from 'util/request'
import template from 'string-template'
import createStore from './create-store'

export default (context, options = {}) => {
  options = {
    scope: 'i18n',
    prefix: '/',
    lang: navigator.language.split('-')[0],
    translations: {},
    ...options
  }

  const {
    scope,
    fallbackLang = 'zh',
    urlPattern = './i18n/{lang}.json'
  } = options<commit_msg>fix app rendering fails under IE10<commit_after>import Vue from 'vue'
import request from 'util/request'
import template from 'string-template'
import createStore from './create-store'

export default (context, options = {}) => {
  options = {
    scope: 'i18n',
    prefix: '/',
    lang: (navigator.language || navigator.browserLanguage).toLowerCase().split('-')[0],
    translations: {},
    ...options
  }

  const {
    scope,
    fallbackLang = 'zh',
    urlPattern = './i18n/{lang}.json'
  } = options
{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.01263157894736842, 'mean_word_length': 3.2837837837837838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6928021', 'n_tokens_mistral': 303, 'n_tokens_neox': 299, 'n_words': 75}