okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Trial2 merge f-0291-pr-nv (97b3d614f)1306424be

main
606 B10 linesraw
1/** The language choice on the first screen, so a person who cannot read English can change it before anything is downloaded (#3723). */
2import { tr } from '../lib/i18n';
3import { LANGUAGES, type Language } from '../lib/i18n';
4import { setLanguage, useStore } from '../lib/store';
5import { Select } from './ui';
6
7export function FirstRunLanguage() {
8    const language = useStore(s => s.language);
9    return <div className="onboard-language"><Select translateLabels={false} ariaLabel={tr("Language")} value={language} options={[...LANGUAGES]} onChange={value => setLanguage(value as Language)}/></div>;
10}