UNPKG

next-intl

Version:

Internationalization (i18n) for Next.js

2 lines (1 loc) 200 B
import{cache as o}from"react";const n=o((function(){return{locale:void 0}}));function t(){return n().locale}function c(o){n().locale=o}export{t as getCachedRequestLocale,c as setCachedRequestLocale};