UNPKG

react-native-get-device-locale

Version:

react-native-get-device-locale is a lightweight and efficient React Native module that provides easy access to the device's locale.

101 lines (100 loc) 2.95 kB
{ "name": "react-native-get-device-locale", "version": "0.3.0", "description": "react-native-get-device-locale is a lightweight and efficient React Native module that provides easy access to the device's locale.", "source": "./src/index.tsx", "main": "./lib/commonjs/index.js", "module": "./lib/module/index.js", "types": "lib/types/index.d.ts", "exports": { ".": { "import": { "types": "./lib/typescript/module/index.d.ts", "default": "./lib/module/index.js" }, "require": { "types": "./lib/typescript/commonjs/index.d.ts", "default": "./lib/commonjs/index.js" } } }, "files": [ "src", "lib", "android", "ios", "*.podspec", "react-native.config.js", "!**/.*" ], "scripts": { "clean": "del-cli lib android/build android/generated ios/generated", "build:cjs": "babel src --out-dir lib/commonjs --extensions \".js,.jsx,.ts,.tsx\" && npm run build:cjstypes", "build:esm": "babel src --out-dir lib/module --extensions \".js,.jsx,.ts,.tsx\" --env-name esm && npm run build:esmtypes", "build:babel": "npm run build:cjs && npm run build:esm", "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types", "build:cjstypes": "tsc -p tsconfig.commonjs.json", "build:esmtypes": "tsc -p tsconfig.module.json", "codegen": "npx @react-native-community/cli codegen && node utils/patchCodegen.mjs", "build": "npm run build:babel && npm run build:types && npm run codegen", "preprepare": "npm run clean", "prepare": "npm run build" }, "keywords": [ "react-native-module", "native-module", "turbo-module", "react-native", "typescript", "i18n", "locale", "localization", "device-locale" ], "repository": { "type": "git", "url": "git+https://github.com/wneel/react-native-get-device-locale.git" }, "author": "Wayan NEEL <66263633+wneel@users.noreply.github.com> (https://github.com/wneel)", "license": "MIT", "bugs": { "url": "https://github.com/wneel/react-native-get-device-locale/issues" }, "homepage": "https://github.com/wneel/react-native-get-device-locale#readme", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "devDependencies": { "@babel/cli": "^7.25.9", "@babel/core": "^7.26.0", "@babel/plugin-transform-typescript": "^7.25.9", "@babel/preset-env": "^7.26.0", "@babel/preset-typescript": "^7.26.0", "@react-native-community/cli": "15.0.0", "@types/react": "^18.2.44", "del-cli": "^5.1.0", "fs-extra": "^11.2.0", "react": "18.3.1", "react-native": "0.76.1", "typescript": "^5.2.2" }, "resolutions": { "@types/react": "^18.2.44" }, "peerDependencies": { "react-native": ">=0.68" }, "codegenConfig": { "name": "RNGetDeviceLocaleSpec", "type": "modules", "jsSrcsDir": "src", "outputDir": { "ios": "ios/generated", "android": "android/generated" }, "android": { "javaPackageName": "com.getdevicelocale" }, "includesGeneratedCode": true } }