
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
generaltranslation
Advanced tools
This is the core library for General Translation. It is used in gt-react
and gt-next
.
See our docs for more information including guides, examples, and API references.
npm install
This project uses Vitest for testing with two types of tests:
__tests__/
): Fast, isolated tests with mocking# Run all tests (unit + e2e)
npm test
# Run only unit tests
npm test -- __tests__
# Run tests in watch mode
npm run test:watch
# Run specific test file
npm test -- __tests__/logging/logger.test.ts
# Run tests matching a pattern
npm test -- -t "should handle translation"
Create a .env
file in the project root with:
# GT API Configuration
VITE_GT_API_KEY="your-dev-api-key"
VITE_GT_PROJECT_ID="your-project-id"
VITE_GT_RUNTIME_URL="http://localhost:10000"
Note: E2E tests require a running GT runtime server at the specified URL. Without proper configuration, e2e tests will skip gracefully.
# Set logging level for development/debugging
_GT_LOG_LEVEL=debug # Options: debug, info, warn, error (default: warn)
# Development workflow
_GT_LOG_LEVEL=debug npm test --reporter=verbose
# Quick unit test validation
npm test -- __tests__
# Test specific functionality
npm test -- -t "logger" --reporter=verbose
# Watch mode for development
npm run test:watch -- __tests__/
__tests__/ # Unit tests with mocking
├── logging/ # Logger functionality tests
└── translate/ # Translation logic tests
We welcome any contributions to our libraries. Please submit a pull request!
npm install
npm test
FAQs
A language toolkit for AI developers
The npm package generaltranslation receives a total of 2,063 weekly downloads. As such, generaltranslation popularity was classified as popular.
We found that generaltranslation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.