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 11// @ts -ignore
22import 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'
37
48export function loadTranslations ( ) {
59 const { addTranslations, translate } = AnimatedJava . API
610
711 addTranslations ( 'en' , en as Record < string , string > )
12+ addTranslations ( 'de' , de as Record < string , string > )
13+ addTranslations ( 'zh' , zh as Record < string , string > )
814
915 return {
1016 target_minecraft_version : {
Original file line number Diff line number Diff line change 11// @ts -ignore
22import 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'
37import { constructJSON } from './jsonConstructor'
48
59export function loadExporter ( ) {
610 const API = AnimatedJava . API
711
812 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 > )
915
1016 const TRANSLATIONS = {
1117 output_file : {
Original file line number Diff line number Diff line change 11// @ts -ignore
22import 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'
37import { formatStr , FormattingObject } from './misc'
48
59const LANGUAGES : Record < string , Record < string , string > > = {
610 en,
11+ de,
12+ zh,
713}
814
915export const currentLanguage = settings . language . value
You can’t perform that action at this time.
0 commit comments