mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-03 12:47:35 +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">
|
<option value="" data-i18n="Browser default">
|
||||||
Browser default
|
Browser default
|
||||||
</option>
|
</option>
|
||||||
|
<option value="en">en</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2068,17 +2068,12 @@ $(document).ready(() => {
|
|||||||
|
|
||||||
if (language) {
|
if (language) {
|
||||||
localStorage.setItem(storage_keys.ui_language, language);
|
localStorage.setItem(storage_keys.ui_language, language);
|
||||||
window["applyLocale"]();
|
|
||||||
} else {
|
} 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);
|
localStorage.removeItem(storage_keys.ui_language);
|
||||||
|
}
|
||||||
|
|
||||||
location.reload();
|
location.reload();
|
||||||
} else {
|
});
|
||||||
$(this).val(localStorage.getItem(storage_keys.ui_language));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
$(window).on('focus', function () {
|
$(window).on('focus', function () {
|
||||||
browser_has_focus = true;
|
browser_has_focus = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user