// Import the module
import Localization from "@kyrobot/localization";
// Create a new Localization class
const locale = new Localization({
path: "languages", // Where your languages are stored. You must specify the directory without the root directory.
autoReload: true, // If the module should auto reload the languages.
autoReloadInterval: 3000, // The interval in milliseconds between reloading.
});
await locale.init();
// Now you can get translations! See the directory of the module for the rest of the functions
locale.getKey("en", "some.very.deep.path.object.to.the.translation");