UNPKG

next-intlayer

Version:

Simplify internationalization i18n in Next.js with context providers, hooks, locale detection, and multilingual content integration.

15 lines 410 B
import { ESMxCJSRequire } from "@intlayer/config"; import { readFileSync } from "fs"; const getNextVersion = () => { try { const nextConfigPath = ESMxCJSRequire.resolve("next/package.json"); const nextPkg = JSON.parse(readFileSync(nextConfigPath, "utf-8")); return nextPkg.version; } catch (e) { return void 0; } }; export { getNextVersion }; //# sourceMappingURL=getNextVertion.mjs.map