mirror of
https://github.com/zadam/trilium.git
synced 2026-05-13 00:45:44 +02:00
fix(standalone/setup): current language not restored when going back
This commit is contained in:
@@ -85,9 +85,9 @@ function App() {
|
||||
}
|
||||
|
||||
function SelectLanguage({ setState }: { setState: (state: State) => void }) {
|
||||
const [ currentLocale, setCurrentLocale ] = useState("en");
|
||||
const filteredLocales = useMemo(() => LOCALES.filter(l => !l.contentOnly), []);
|
||||
const { t, i18n } = useTranslation();
|
||||
const [ currentLocale, setCurrentLocale ] = useState(i18n.language);
|
||||
const filteredLocales = useMemo(() => LOCALES.filter(l => !l.contentOnly), []);
|
||||
|
||||
return (
|
||||
<SetupPage
|
||||
|
||||
Reference in New Issue
Block a user