Add locale data loading for extensions

This commit is contained in:
Cohee
2025-02-27 16:18:10 +00:00
parent c60af6659c
commit e312ae6b3b
3 changed files with 65 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ import {
writeExtensionField,
} from './extensions.js';
import { groups, openGroupChat, selected_group } from './group-chats.js';
import { t, translate } from './i18n.js';
import { addLocaleData, getCurrentLocale, t, translate } from './i18n.js';
import { hideLoader, showLoader } from './loader.js';
import { MacrosParser } from './macros.js';
import { getChatCompletionModel, oai_settings } from './openai.js';
@@ -165,6 +165,8 @@ export function getContext() {
isMobile,
t,
translate,
getCurrentLocale,
addLocaleData,
tags,
tagMap: tag_map,
menuType: menu_type,