cleanup testing utilities, documentation, and AI commentary

This commit is contained in:
seavor 2026-04-18 15:32:50 -05:00
parent bd2382c94e
commit ef6cea6f6c
150 changed files with 891 additions and 1233 deletions

View file

@ -11,11 +11,8 @@ import './LanguageDropdown.css';
const LanguageDropdown = () => {
const { t, i18n } = useTranslation();
// `resolvedLanguage` can be undefined when i18next hasn't matched the
// active lng against any registered resource yet — most often at the
// first render in tests with a minimal i18n instance. Fall back to
// `i18n.language` (always set to whatever was passed to init) and then
// to empty string so MUI's Select has a concrete, in-range value.
// i18next `resolvedLanguage` is undefined until a registered resource matches;
// MUI Select requires a concrete, in-range value.
const [language, setLanguage] = useState(i18n.resolvedLanguage ?? i18n.language ?? '');
useEffect(() => {