<commit_before>import * as at from 'fm3/actionTypes';

const initialState = {
  chosenLanguage: null,
  language: 'en',
};

export default function l10n(state = initialState, action) {
  switch (action.type) {
    case at.L10N_SET_CHOSEN_LANGUAGE:
      return { ...state, chosenLanguage: action.payload };
    case at.L10N_SET_LANGUAGE:
      return { ...state, language: action.payload };
    default:
      return state;
  }
}<commit_msg>fixed english language not taking effect on load<commit_after>import * as at from 'fm3/actionTypes';

const initialState = {
  chosenLanguage: null,
  language: 'en-US', // TODO this is hack so that setLanguage will change it in any case on load (eg. to 'en')
};

export default function l10n(state = initialState, action) {
  switch (action.type) {
    case at.L10N_SET_CHOSEN_LANGUAGE:
      return { ...state, chosenLanguage: action.payload };
    case at.L10N_SET_LANGUAGE:
      return { ...state, language: action.payload };
    default:
      return state;
  }
}
{'fraction_non_alphanumeric': 0.11287128712871287, 'fraction_numerical': 0.013861386138613862, 'mean_word_length': 3.4537444933920707, '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': '4771982', 'n_tokens_mistral': 329, 'n_tokens_neox': 322, 'n_words': 93}