[Glitch] Fix Vite build warning
Port a95254147442fa3e46228559eeb13d7f765b4b01 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
1403e66c6e
commit
3220a3270b
@ -5,6 +5,7 @@ import type { ApiCustomEmojiJSON } from '@/flavours/glitch/api_types/custom_emoj
|
|||||||
|
|
||||||
import { openEmojiDB } from './db-schema';
|
import { openEmojiDB } from './db-schema';
|
||||||
import type { Database } from './db-schema';
|
import type { Database } from './db-schema';
|
||||||
|
import { importEmojiData } from './loader';
|
||||||
import { localeToSegmenter, toSupportedLocale } from './locale';
|
import { localeToSegmenter, toSupportedLocale } from './locale';
|
||||||
import {
|
import {
|
||||||
extractTokens,
|
extractTokens,
|
||||||
@ -437,7 +438,6 @@ async function toLoadedLocale(localeString: string) {
|
|||||||
}
|
}
|
||||||
if (!loadedLocales.has(locale)) {
|
if (!loadedLocales.has(locale)) {
|
||||||
log('Locale %s not loaded, importing...', locale);
|
log('Locale %s not loaded, importing...', locale);
|
||||||
const { importEmojiData } = await import('./loader');
|
|
||||||
await importEmojiData(locale);
|
await importEmojiData(locale);
|
||||||
return locale;
|
return locale;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user