{"_id":"@architecturex/utils.i18n","_rev":"1-b8b5ee6f18b946707845770260dc1483","name":"@architecturex/utils.i18n","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@architecturex/utils.i18n","version":"1.0.0","main":"dist/index.js","types":"dist/index.d.ts","jest":{"preset":"ts-jest","testEnvironment":"node","modulePathIgnorePatterns":["<rootDir>/dist/"]},"keywords":["typescript","i18n"],"scripts":{"build":"NODE_ENV=production npm-run-all clean compile webpack:production","clean":"rm -rf ./dist","compile":"tsc","lint":"eslint --ext .tsx,.ts ./src/**","lint:fix":"eslint --ext .tsx,.ts ./src/**","webpack:production":"webpack --config=./webpack.config.ts --env mode=production","prepublishOnly":"npm run lint && npm run build","versioning":"./publish.sh"},"author":{"name":"Carlos Santana"},"license":"MIT","devDependencies":{"@types/jest":"^29.5.5","@types/react":"^18.2.23","eslint":"^8.48.0","eslint-config-airbnb":"^19.0.4","eslint-config-airbnb-typescript":"^17.1.0","eslint-config-prettier":"^9.0.0","eslint-import-resolver-typescript":"^3.6.0","eslint-plugin-import":"^2.28.1","eslint-plugin-jsx-a11y":"^6.7.1","eslint-plugin-prettier":"^5.0.0","jest":"^29.7.0","npm-run-all":"^4.1.5","ts-jest":"^29.1.1","ts-node":"^10.9.1","typescript":"^5.2.2","webpack-cli":"^5.1.4"},"dependencies":{"@architecturex/devtools":"1.0.8","react":"^18.2.0","ts-loader":"^9.4.4","webpack":"^5.88.2","webpack-bundle-analyzer":"^4.9.1","webpack-node-externals":"^3.0.0"},"_id":"@architecturex/utils.i18n@1.0.0","gitHead":"fac36ffacd1e6f915d7a3a3e118b15723e68ee12","description":"","_nodeVersion":"20.8.1","_npmVersion":"10.1.0","dist":{"integrity":"sha512-boXHw19fK9F1BwEu2yAilQW0/IKAYCdDKUnXq41qMC+k48FGulV4Wccdt2CZIeDl/G1VbSEAHmWMEs+cdAfhBg==","shasum":"195ca0e8617f33b138206c1ae6ac6a4b834a5618","tarball":"https://registry.npmjs.org/@architecturex/utils.i18n/-/utils.i18n-1.0.0.tgz","fileCount":8,"unpackedSize":6674,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCO/C6icqtgzf7nEwcZZ2bvoOE2AcYi/4Wf4SlaFhTg+wIgdbvnlM9Rf/yPPAiF/ANYBFwpDODfLBC+pZC4tOoTLtU="}]},"_npmUser":{"name":"architecturex","email":"architecturexxx1@gmail.com"},"directories":{},"maintainers":[{"name":"architecturex","email":"architecturexxx1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils.i18n_1.0.0_1700439704128_0.34800952772010674"},"_hasShrinkwrap":false},"1.0.1":{"name":"@architecturex/utils.i18n","version":"1.0.1","main":"dist/index.js","types":"dist/index.d.ts","jest":{"preset":"ts-jest","testEnvironment":"node","modulePathIgnorePatterns":["<rootDir>/dist/"]},"keywords":["typescript","i18n"],"scripts":{"build":"NODE_ENV=production npm-run-all clean compile webpack:production","clean":"rm -rf ./dist","compile":"tsc","lint":"eslint --ext .tsx,.ts ./src/**","lint:fix":"eslint --ext .tsx,.ts ./src/**","webpack:production":"webpack --config=./webpack.config.ts --env mode=production","prepublishOnly":"npm run lint && npm run build","versioning":"./publish.sh"},"author":{"name":"Carlos Santana"},"license":"MIT","devDependencies":{"@types/jest":"^29.5.5","@types/react":"^18.2.23","eslint":"^8.48.0","eslint-config-airbnb":"^19.0.4","eslint-config-airbnb-typescript":"^17.1.0","eslint-config-prettier":"^9.0.0","eslint-import-resolver-typescript":"^3.6.0","eslint-plugin-import":"^2.28.1","eslint-plugin-jsx-a11y":"^6.7.1","eslint-plugin-prettier":"^5.0.0","jest":"^29.7.0","npm-run-all":"^4.1.5","ts-jest":"^29.1.1","ts-node":"^10.9.1","typescript":"^5.2.2","webpack-cli":"^5.1.4"},"dependencies":{"@architecturex/devtools":"1.0.8","react":"^18.2.0","ts-loader":"^9.4.4","webpack":"^5.88.2","webpack-bundle-analyzer":"^4.9.1","webpack-node-externals":"^3.0.0"},"_id":"@architecturex/utils.i18n@1.0.1","gitHead":"35292d1bade99bd09a1d2d57390a640d2e97315e","description":"This module provides functionalities for handling and managing different language locales in an application. Below is a detailed description of its features and usage.","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-MRUQSAnGvmAGHjx4Z0bPR1r+/NuTn/QdgD+D2AqFzYWwvpGdgX/Ug/AE//j7vGk+510ImT0h175FZGXpHaY/4g==","shasum":"31d6d0e9e8971c4af31550420c40082f9f801795","tarball":"https://registry.npmjs.org/@architecturex/utils.i18n/-/utils.i18n-1.0.1.tgz","fileCount":8,"unpackedSize":8492,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnEdTRo+jBrpBQulEHeyPn/xVvG/D9wnpj4QvmWB7ifQIgO0yr5ZiUsyVrvcISAJMKEhj/9zYjEo4oYIENmmzkI0E="}]},"_npmUser":{"name":"architecturex","email":"architecturexxx1@gmail.com"},"directories":{},"maintainers":[{"name":"architecturex","email":"architecturexxx1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils.i18n_1.0.1_1700440125260_0.8764258713276945"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-20T00:21:44.062Z","1.0.0":"2023-11-20T00:21:44.319Z","modified":"2023-11-20T00:28:45.616Z","1.0.1":"2023-11-20T00:28:45.420Z"},"maintainers":[{"name":"architecturex","email":"architecturexxx1@gmail.com"}],"keywords":["typescript","i18n"],"author":{"name":"Carlos Santana"},"license":"MIT","readme":"# @architecturex/utils.i18n\n\nThis module provides functionalities for handling and managing different language locales in an application. Below is a detailed description of its features and usage.\n\n## Features\n\nSupported Locales: The module supports multiple locales, including German (de-de), English (US) (en-us), Spanish (Mexico) (es-mx), French (fr-fr), Italian (it-it), and Brazilian Portuguese (pt-br).\n\n- **Default Locale:** The default locale is set to English (US) (en-us).\n- **Locale Information:** Each locale is associated with a short language code, a longer language-region code, and a descriptive name.\n- **Locale Listing:** You can retrieve a list of all available locales, either as an array or as a joined string separated by the pipe (|) character.\n- **Locale Validation:** The module includes a function to validate if a given locale is supported.\n- **Locale Conversion:** There is a function to convert short locale formats into their full locale formats, considering the region-specific variations.\n\n### Usage\n\n```javascript\nimport {\n  defaultLocale,\n  currentLocales,\n  availableLocales,\n  isValidLocale,\n  getFullLocale\n} from '@architecturex/utils.i18n'\n```\n\n### Listing Available Locales\n\n```javascript\n// Get a string of available locales\nconst localeString = availableLocales()\n\n// Get an array of available locales\nconst localeArray = availableLocales(false)\n```\n\n### Validating a Locale\n\n```javascript\n// Check if a specific locale is valid\nconst isLocaleValid = isValidLocale('en-us', ['en-us', 'de-de', ...]);\n```\n\n### Getting Full Locale Format\n\n```javascript\n// Convert a short locale format to its full format\nconst fullLocale = getFullLocale('es')\n```\n\n## Contributing\n\nFeel free to suggest improvements, report issues, or contribute to enhancing these utilities. Your feedback and contributions are welcome!\n","readmeFilename":"README.md","description":"This module provides functionalities for handling and managing different language locales in an application. Below is a detailed description of its features and usage."}