I’m in the process of upgrading to Middleman 4. I had previously written an extension that would provide i18n support for files in the data directory. In my extension I was referencing app.langs
. This is now not available. I see that extensions can now use the three expose_to_*
methods. The Middleman::CoreExtensions::Internationalization
doesn’t expose anything to the application (i.e. app
object).
I see they are available in a template, but does anyone know how I could gain access to the application’s locales (langs) from within a custom extension in Middleman 4?