[Glitch] Fix Vite build warning

Port a95254147442fa3e46228559eeb13d7f765b4b01 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo 2026-06-22 17:37:47 +02:00 committed by Claire
parent 1403e66c6e
commit 3220a3270b

View File

@ -5,6 +5,7 @@ import type { ApiCustomEmojiJSON } from '@/flavours/glitch/api_types/custom_emoj
import { openEmojiDB } from './db-schema';
import type { Database } from './db-schema';
import { importEmojiData } from './loader';
import { localeToSegmenter, toSupportedLocale } from './locale';
import {
extractTokens,
@ -437,7 +438,6 @@ async function toLoadedLocale(localeString: string) {
}
if (!loadedLocales.has(locale)) {
log('Locale %s not loaded, importing...', locale);
const { importEmojiData } = await import('./loader');
await importEmojiData(locale);
return locale;
}