logo

Welcome

Heyaa!! Welcome to the official documentation of HxLang, a haxelib created for translating your game or tool, whatever you are creating, in HaxeFlixel! The 2D (goat) Game Engine!

hxLang is designed to load language data from JSON files and manage multi-language content for your application. It provides simple functions to switch languages, load new language data, and retrieve translated strings based on an identifier.

The library works seamlessly in both Haxe-targeted environments (sys for server-side and js for browser-side), handling the asynchronous loading of language files when necessary.