mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-03 04:37:40 +01:00
Add English language option
This commit is contained in:
parent
eb81c4807a
commit
8470acda41
@ -2371,6 +2371,7 @@
|
||||
<option value="" data-i18n="Browser default">
|
||||
Browser default
|
||||
</option>
|
||||
<option value="en">en</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2068,17 +2068,12 @@ $(document).ready(() => {
|
||||
|
||||
if (language) {
|
||||
localStorage.setItem(storage_keys.ui_language, language);
|
||||
window["applyLocale"]();
|
||||
} else {
|
||||
const result = confirm("Are you sure you want to reset the language to default? This will reload the page.")
|
||||
if (result) {
|
||||
localStorage.removeItem(storage_keys.ui_language);
|
||||
location.reload();
|
||||
} else {
|
||||
$(this).val(localStorage.getItem(storage_keys.ui_language));
|
||||
}
|
||||
localStorage.removeItem(storage_keys.ui_language);
|
||||
}
|
||||
})
|
||||
|
||||
location.reload();
|
||||
});
|
||||
|
||||
$(window).on('focus', function () {
|
||||
browser_has_focus = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user