Const
Edge template engine plugin for AdonisJS I18n integration. Adds global helpers and functions for accessing translations in templates.
Provides the following global helpers:
i18n
t()
getDefaultLocale()
getSupportedLocales()
The I18nManager instance to integrate with Edge
Edge plugin function
// In Edge template:{{ t('hello.world', { name: 'John' }) }}{{ getDefaultLocale() }}{{ getSupportedLocales() }} Copy
// In Edge template:{{ t('hello.world', { name: 'John' }) }}{{ getDefaultLocale() }}{{ getSupportedLocales() }}
Edge template engine plugin for AdonisJS I18n integration. Adds global helpers and functions for accessing translations in templates.
Provides the following global helpers:
i18n: Default I18n instance for the default localet(): Translation function that uses the current I18n contextgetDefaultLocale(): Returns the default locale stringgetSupportedLocales(): Returns array of supported locales