UNPKG

next-intlayer

Version:

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

1 lines 725 B
{"version":3,"sources":["../../../src/server/getNextVertion.ts"],"sourcesContent":["import { ESMxCJSRequire } from '@intlayer/config';\nimport { readFileSync } from 'fs';\n\nexport const getNextVersion = () => {\n try {\n const nextConfigPath = ESMxCJSRequire.resolve('next/package.json');\n\n const nextPkg = JSON.parse(readFileSync(nextConfigPath, 'utf-8'));\n\n return nextPkg.version;\n } catch (e) {\n return undefined;\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA+B;AAC/B,gBAA6B;AAEtB,MAAM,iBAAiB,MAAM;AAClC,MAAI;AACF,UAAM,iBAAiB,6BAAe,QAAQ,mBAAmB;AAEjE,UAAM,UAAU,KAAK,UAAM,wBAAa,gBAAgB,OAAO,CAAC;AAEhE,WAAO,QAAQ;AAAA,EACjB,SAAS,GAAG;AACV,WAAO;AAAA,EACT;AACF;","names":[]}