New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opensea/i18n-extract

Package Overview
Dependencies
Maintainers
10
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opensea/i18n-extract - npm Package Compare versions

Comparing version 0.0.25 to 1.0.0

6

package.json
{
"name": "@opensea/i18n-extract",
"version": "0.0.25",
"version": "1.0.0",
"description": "Package for i18n key extractions",

@@ -21,6 +21,6 @@ "license": "MIT",

"dependencies": {
"@babel/parser": "7.22.13",
"@babel/parser": "7.22.14",
"@babel/traverse": "7.22.11",
"commander": "11.0.0",
"glob": "10.3.3",
"glob": "10.3.4",
"lodash.get": "4.4.2",

@@ -27,0 +27,0 @@ "lodash.isequal": "4.5.0",

# extract
## Install
`@opensea/i18n-extract` analyzes and extracts translation keys with their default values from source files. Extracted translation keys are meant to be uploaded to a translation management system for translation into other languages.
**How?**
Program looks for references to the `useTranslation()` and `<Trans />` from [next-translate](https://github.com/aralroca/next-translate) using `@babel/parser` and `@babel/traverse`. Note that wrapping these into custom hooks/components will break the translation key extraction.
## Getting started
### Install
```sh

@@ -9,6 +17,16 @@ npm install --save-dev @opensea/i18n-extract

## Running tests
### Usage
Published packages comes with a `i18n-extract` binary.
```sh
npm run i18n-extract --directory ./ --out locales/en-US
```
## Local development
### Running tests
```sh
yarn test
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc