/inject command to add prompt injections

This commit is contained in:
Cohee
2023-11-28 01:44:13 +02:00
parent 4f9f89c682
commit b0d21659eb
3 changed files with 113 additions and 6 deletions

View File

@ -105,7 +105,7 @@ function addLanguagesToDropdown() {
}
}
jQuery(async () => {
export function initLocales() {
waitUntilCondition(() => !!localeData);
applyLocale();
addLanguagesToDropdown();
@ -124,4 +124,4 @@ jQuery(async () => {
registerDebugFunction('getMissingTranslations', 'Get missing translations', 'Detects missing localization data and dumps the data into the browser console.', getMissingTranslations);
registerDebugFunction('applyLocale', 'Apply locale', 'Reapplies the currently selected locale to the page.', applyLocale);
});
};