Skip to content

Commit 0636d58

Browse files
committed
fix localization in the rawExporter, change when localizations are loaded. switch ts target to ES2021 from ESNEXT
1 parent bc1e8a2 commit 0636d58

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/animatedJava.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ const ANIMATED_JAVA = {
106106
logIntlDifferences(showDefaultValues: boolean) {
107107
intl.diff(showDefaultValues)
108108
},
109+
intl,
110+
tl,
109111
}
110112
delete window['ANIMATED_JAVA']
111113
// Object.defineProperty(window., 'ANIMATED_JAVA', {

src/exporters/rawAnimation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type * as aj from '../animatedJava'
22
import { CustomError } from '../util/customError'
3+
import { tl } from '../util/intl'
34
import { store } from '../util/store'
45

56
interface rawAnimationExporterSettings {

src/mainEntry.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type * as aj from './animatedJava'
2-
31
import { tl, intl } from './util/intl'
42
// @ts-ignore
53
import lang_cz from './lang/cz.yaml'
@@ -46,6 +44,7 @@ intl.register('zh', lang_zh)
4644
// @ts-ignore
4745
import lang_zh_tw from './lang/zh_tw.yaml'
4846
intl.register('zh_tw', lang_zh_tw)
47+
import type * as aj from './animatedJava'
4948

5049
import './lifecycle'
5150
import './rotationSnap'

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"declaration": false,
66
"types": ["node", "blockbench-types"],
77
"lib": ["DOM", "ESNext"],
8-
"target": "ESNext",
8+
"target": "ES2021",
99
"moduleResolution": "node",
1010
"jsx": "react"
1111
}

0 commit comments

Comments
 (0)