Runtime API
Lunaria can also be used outside of its build process, allowing for integrations and other use cases through its available runtime functions.
lunaria()
The lunaria()
function is a way to get Lunaria’s localization status during runtime. It will validate the configuration, clone your git history (if used in a shallow repository), and return a Promise of your localization status array.