<commit_before>import i18n from 'i18next';
import BrowserLanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from "react-i18next";

import en from './en';
import fi from './fi';


export type Translations = typeof en;

const resources: i18n.Resource = { fi, en };


export default i18n
  .use(initReactI18next)
  .use(BrowserLanguageDetector)
  .init({
    fallbackLng: 'en',
    resources,
  });<commit_msg>frontend: fix browser-languagedetector typings<commit_after>import i18n from 'i18next';
import BrowserLanguageDetector from 'i18next-browser-languagedetector';
import { initReactI18next } from "react-i18next";

import en from './en';
import fi from './fi';


export type Translations = typeof en;

const resources: i18n.Resource = { fi, en };


export default i18n
  .use(initReactI18next)
  .use(new BrowserLanguageDetector())
  .init({
    fallbackLng: 'en',
    resources,
  });
{'fraction_non_alphanumeric': 0.11917659804983749, 'fraction_numerical': 0.03466955579631636, 'mean_word_length': 4.703703703703703, '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': '4208909', 'n_tokens_mistral': 331, 'n_tokens_neox': 309, 'n_words': 82}