Skip to content

Commit 1080582

Browse files
committed
chore[translation]: validate English is loaded
1 parent 23aa2c3 commit 1080582

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

changelog.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# UnderScript Changelog
22

3+
## Version 0.52.0 (2023-04-03)
4+
### New Features
5+
1. Added setting to disable `Audio Override` (disables undercards Audio fixes)
6+
1. Added setting to disable `April Fools Music` (if you get tired of it)
7+
### Fixes
8+
1. Fixed april fools music not working with underscript
9+
1. Fixed translations thinking they weren't loaded when they were
10+
### Misc.
11+
1. BootstrapDialog `onhide()` return value is no longer ignored
12+
### Plugins
13+
1. EventEmitter is now extendable
14+
1. Throw errors when failing to register settings
15+
1. `appendCard()` is deprecated
16+
1. Settings now have more dynamic values
17+
1. Added [`checkUnderscript(pluginName)`](https://raw.githubusercontent.com/UCProjects/UnderScript/master/src/checker.js) for plugins to utilize in their code
18+
1. `appendCard` events are now all called correctly
19+
320
## Version 0.51.3 (2022-12-13)
421
1. Fix appendCard data
522

src/hooks/translation.loaded.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ eventManager.on(':loaded', () => {
1414
// Fallback for if translation function breaks
1515
eventManager.on(':load', () => {
1616
const translationReady = global(READY, { throws: false });
17-
if (translationReady !== false) return;
17+
if (translationReady !== false || !$.i18n.messageStore.messages.en) return;
1818
globalSet(READY, true);
1919
document.dispatchEvent(global('translationEvent'));
2020
});

0 commit comments

Comments
 (0)