Skip to content

Commit 2d8ad29

Browse files
authored
chore: remove legacy webL10n library and 1.2MB of dead assets (#5416)
1 parent 3ace5e0 commit 2d8ad29

File tree

6 files changed

+2
-19671
lines changed

6 files changed

+2
-19671
lines changed

index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
setTimeout(fixAutocompletePosition, 1000);
8080
});
8181
</script>
82-
<script src="lib/webL10n.js" defer></script>
8382
<script src="lib/Tone.js" defer></script>
8483
<script src="lib/midi.js" defer></script>
8584
<script src="lib/jquery.ruler.js" defer></script>
@@ -109,7 +108,6 @@
109108

110109
<script src="lib/acorn.min.js" defer></script>
111110

112-
<link rel="prefetch" type="application/l10n" href="./localization.ini" />
113111

114112
<script data-main="js/loader" src="lib/require.js" defer></script>
115113
<link type="text/css" href="fonts/material-icons.css" rel="stylesheet">

js/utils/__tests__/utils.test.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ describe("Utility Functions (logic-only)", () => {
6565
getContext: jest.fn(() => ({ measureText: () => ({ width: 42 }) }))
6666
};
6767
}),
68-
webL10n: {
69-
get: jest.fn(str => str),
70-
getLanguage: jest.fn(() => "en")
71-
},
7268
body: { innerHTML: "" },
7369
createElement: jest.fn(() => {
7470
return {

lib/sw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ var urlsToCache = [
215215
'lib/reqwest.js',
216216
'lib/text.js',
217217
'lib/Tone.js',
218-
'lib/tweenjs.min.js',
219-
'lib/webL10n.js',
218+
'lib/i18next.min.js',
219+
'lib/i18nextHttpBackend.min.js',
220220

221221
'css/activity.css',
222222

lib/webL10n.js

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)