mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-28 01:08:47 +00:00
Only render tree when locale has finished loading
This commit is contained in:
@@ -16,7 +16,7 @@ import { cleanUrl } from './Utils'
|
||||
const VERSIONS_IN_TITLE = 3
|
||||
|
||||
function Main() {
|
||||
const [lang, setLanguage] = useState<string>('en')
|
||||
const [lang, setLanguage] = useState<string>('none')
|
||||
const changeLanguage = async (language: string) => {
|
||||
if (!Locales[language]) {
|
||||
await loadLocale(language)
|
||||
|
||||
Reference in New Issue
Block a user