<commit_before>import {LangId, MultiLangStringSet} from "../../definitions/auxillary/MultiLang"
import {store} from "../main"

const fallbackLangList: LangId[] = ["en", "fr"]

export function text(
    s: MultiLangStringSet | string | null | undefined,
    lang: LangId = store.getState().ui.lang,
    fallbackLangs = fallbackLangList): string {<commit_msg>Add simplified Chinese to fallback list<commit_after>import {LangId, MultiLangStringSet} from "../../definitions/auxillary/MultiLang"
import {store} from "../main"

const fallbackLangList: LangId[] = ["en", "fr", "zh_hans"]

export function text(
    s: MultiLangStringSet | string | null | undefined,
    lang: LangId = store.getState().ui.lang,
    fallbackLangs = fallbackLangList): string {
{'fraction_non_alphanumeric': 0.14247669773635152, 'fraction_numerical': 0.0, 'mean_word_length': 4.740458015267175, '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': '5246532', 'n_tokens_mistral': 230, 'n_tokens_neox': 228, 'n_words': 62}