useStatamicI18n

Gitlab
A shortcut composable for getting the i18n object from the runtime config
Added since: v1.0.0
Last changed:
This composable will only be available when the following conditions are met:
  • The @nuxtjs/i18n module is installed and configured in your project.
  • The i18n option is enabled in the statamic module options.

Usage

useStatamicI18n is a composable that returns the i18n object from the runtime config. This is mostly used inside the module, since you should be able to use useI18n in your project.

Type Definition

function 
useStatamicI18n
():
NuxtApp
["$i18n"]

API Reference

Return Value

NuxtApp['$i18n']
The i18n Composer object.

The i18n Composer object is retrieved from the runtime config using the useNuxtApp composable.

Changelog

v1.0.0

on

#407d36db

-

feat: released initial version of nuxt-statamic