Revert "All the features"
This commit is contained in:
+3
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user