Revert "All the features"

This commit is contained in:
Spicy Marinara
2025-12-05 22:43:56 +01:00
committed by GitHub
parent 275179fa7f
commit bfb63a34cd
35 changed files with 1389 additions and 5894 deletions
+3 -5
View File
@@ -1,6 +1,5 @@
//- No-op in case this is running outside of SillyTavern
// eslint-disable-next-line no-unused-vars
const { extension_settings: _extension_settings } = typeof self.SillyTavern !== 'undefined' ? self.SillyTavern.getContext() : { extension_settings: {} };
const { extension_settings } = typeof self.SillyTavern !== 'undefined' ? self.SillyTavern.getContext() : { extension_settings: {} };
class Internationalization {
constructor() {
@@ -88,9 +87,8 @@ class Internationalization {
});
}
getTranslation(key, fallback = null) {
// Return translation, or fallback, or the key itself (prevents "null" from showing)
return this.translations[key] || fallback || key;
getTranslation(key) {
return this.translations[key] || null;
}
async setLanguage(lang) {