File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
datapackExporter/exporter Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1
1
// @ts -ignore
2
2
import en from '../lang/en.yaml'
3
+ // @ts -ignore
4
+ import de from '../lang/de.yaml'
5
+ // @ts -ignore
6
+ import zh from '../lang/zh_cn.yaml'
3
7
4
8
export function loadTranslations ( ) {
5
9
const { addTranslations, translate } = AnimatedJava . API
6
10
7
11
addTranslations ( 'en' , en as Record < string , string > )
12
+ addTranslations ( 'de' , de as Record < string , string > )
13
+ addTranslations ( 'zh' , zh as Record < string , string > )
8
14
9
15
return {
10
16
target_minecraft_version : {
Original file line number Diff line number Diff line change 1
1
// @ts -ignore
2
2
import en from './lang/en.yaml'
3
+ // @ts -ignore
4
+ import de from './lang/de.yaml'
5
+ // @ts -ignore
6
+ import zh from './lang/zh_cn.yaml'
3
7
import { constructJSON } from './jsonConstructor'
4
8
5
9
export function loadExporter ( ) {
6
10
const API = AnimatedJava . API
7
11
8
12
API . addTranslations ( 'en' , en as Record < string , string > )
13
+ API . addTranslations ( 'de' , de as Record < string , string > )
14
+ API . addTranslations ( 'zh' , zh as Record < string , string > )
9
15
10
16
const TRANSLATIONS = {
11
17
output_file : {
Original file line number Diff line number Diff line change 1
1
// @ts -ignore
2
2
import en from '../lang/en.yaml'
3
+ // @ts -ignore
4
+ import de from '../lang/de.yaml'
5
+ // @ts -ignore
6
+ import zh from '../lang/zh_cn.yaml'
3
7
import { formatStr , FormattingObject } from './misc'
4
8
5
9
const LANGUAGES : Record < string , Record < string , string > > = {
6
10
en,
11
+ de,
12
+ zh,
7
13
}
8
14
9
15
export const currentLanguage = settings . language . value
You can’t perform that action at this time.
0 commit comments