botv12/util/mc_lang.js

8 lines
223 B
JavaScript
Raw Permalink Normal View History

2024-10-22 23:11:33 -04:00
import MinecraftData from 'minecraft-data'
2024-12-18 15:04:53 -03:00
const _lang = MinecraftData('1.21.1').language
2024-10-22 23:11:33 -04:00
const lang = Object.create(null) // Without constructor function
for (const i in _lang) {
lang[i] = _lang[i]
}
2024-10-23 22:59:54 -04:00
export default lang