{"_id":"@agape/locale","_rev":"2-35964fa2b3103e6206eac529edfc5d69","name":"@agape/locale","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@agape/locale","version":"0.1.0","keywords":["agape","locale","i18n","internationalization"],"author":{"name":"Maverik Minett","email":"maverik.minett@gmail.com"},"license":"MIT","_id":"@agape/locale@0.1.0","maintainers":[{"name":"maverik.minett","email":"maverik.minett@gmail.com"}],"homepage":"https://agape.dev","bugs":{"url":"https://github.com/AgapeToolkit/AgapeToolkit/issues"},"dist":{"shasum":"14656c7f2f544bbd13f068e4fbeee954d3acfdef","tarball":"https://registry.npmjs.org/@agape/locale/-/locale-0.1.0.tgz","fileCount":8,"integrity":"sha512-/Ez8UGPM/UGA3webjT+kwHKYvbXvkcervCGLIE8ERGXZ7224NVXgTlVzpQBMSmpeNjWT5CCdCvrY3Go5j9NPUg==","signatures":[{"sig":"MEUCIQDkdH5pBipls+ZIpdB9D9U3PMIuUumS3lQeqKUVj44TvwIgZpbhCVt3B1tP/rbQGhYk6wvKmYFbFuVqnexAf7WhUIA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8807},"main":"./cjs/index.js","types":"./cjs/index.d.ts","es2020":"./es2020/index.js","module":"./es2020/index.js","exports":{".":{"node":"./cjs/index.js","es2020":"./es2020/index.js","import":"./es2020/index.js","default":"./es2020/index.js","require":"./cjs/index.js"},"./package.json":{"default":"./package.json"}},"gitHead":"e0419a69ab9ed41faad3ea581d673571ae1932ed","_npmUser":{"name":"maverik.minett","email":"maverik.minett@gmail.com"},"repository":{"url":"git+https://github.com/AgapeToolkit/AgapeToolkit.git","type":"git"},"_npmVersion":"11.6.0","description":"Locale management utilities with global state","directories":{},"_nodeVersion":"24.8.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/locale_0.1.0_1758030621722_0.6772656635545291","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agape/locale","version":"0.1.1","description":"Locale management utilities with global state","main":"./cjs/index.js","module":"./es2020/index.js","author":{"name":"Maverik Minett","email":"maverik.minett@gmail.com"},"license":"MIT","publishConfig":{"access":"public"},"homepage":"https://agape.dev","repository":{"type":"git","url":"git+https://github.com/AgapeToolkit/AgapeToolkit.git"},"keywords":["agape","locale","i18n","internationalization"],"es2020":"./es2020/index.js","exports":{"./package.json":{"default":"./package.json"},".":{"es2020":"./es2020/index.js","node":"./cjs/index.js","default":"./es2020/index.js","require":"./cjs/index.js","import":"./es2020/index.js"}},"_id":"@agape/locale@0.1.1","gitHead":"da5a47ba7027088f9b41f69376cb59910858daf1","types":"./cjs/index.d.ts","bugs":{"url":"https://github.com/AgapeToolkit/AgapeToolkit/issues"},"_nodeVersion":"24.8.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-Zwo+ALshyr6hVhP8wOmw0Q4JVAcrNiEyXIIqNXccF52DBSy9uPfBtxoQNKTHqZ/Ws6GlBEcpIV/QBsj1VKnX0w==","shasum":"c01b3f7f04675965391d58b69f0d75d9818f6956","tarball":"https://registry.npmjs.org/@agape/locale/-/locale-0.1.1.tgz","fileCount":8,"unpackedSize":8500,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDM+9tdtpolRDUTXpESrfHB56qpGphC4Nrl+KfrRtSikwIhAJHsBZkHgHoZkVQ0Ogia73lxJDFX5CsNW8Q30LCEaF60"}]},"_npmUser":{"name":"maverik.minett","email":"maverik.minett@gmail.com"},"directories":{},"maintainers":[{"name":"maverik.minett","email":"maverik.minett@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/locale_0.1.1_1758046008178_0.9706510363000875"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-16T13:50:21.659Z","modified":"2025-09-16T18:06:48.553Z","0.1.0":"2025-09-16T13:50:21.877Z","0.1.1":"2025-09-16T18:06:48.361Z"},"bugs":{"url":"https://github.com/AgapeToolkit/AgapeToolkit/issues"},"author":{"name":"Maverik Minett","email":"maverik.minett@gmail.com"},"license":"MIT","homepage":"https://agape.dev","keywords":["agape","locale","i18n","internationalization"],"repository":{"type":"git","url":"git+https://github.com/AgapeToolkit/AgapeToolkit.git"},"description":"Locale management utilities with global state","maintainers":[{"name":"maverik.minett","email":"maverik.minett@gmail.com"}],"readme":"# @agape/locale\n\nSimple locale management with global state.\n\n## Installation\n\n```bash\nnpm install @agape/locale\n```\n\n## Usage\n\n```typescript\nimport { getLocale, setLocale } from '@agape/locale';\n\n// Get current locale\nconst locale = getLocale(); // \"en-US\"\n\n// Set locale\nsetLocale('fr-FR');\nconsole.log(getLocale()); // \"fr-FR\"\n\n// Reset to system locale\nsetLocale(null);\n```\n\n## API\n\n### `getLocale(): string`\n\nReturns the current locale. If no locale has been set, returns the system locale.\n\n### `setLocale(locale: string | null | undefined): void`\n\nSets the current locale. Pass `null` or `undefined` to reset to system locale.\n\nThrows an error if the locale is invalid.\n\n---\n\n## 📚 Documentation\n\nSee the full API documentation at [agape.dev/api](https://agape.dev/api).\n\n## 📦 Agape Toolkit\n\nThis package is part of the [Agape Toolkit](https://github.com/AgapeToolkit/AgapeToolkit) - a comprehensive collection of TypeScript utilities and libraries for modern web development.\n","readmeFilename":"README.md"}