strapi-provider-translate-langbly
v1.0.1
Published
Langbly translation provider for strapi-plugin-translate. Context-aware, Google Translate v2 compatible, 5-10x cheaper.
Downloads
209
Maintainers
Readme
strapi-provider-translate-langbly
Langbly translation provider for strapi-plugin-translate.
Context-aware machine translation. Higher quality than Google Translate, 81-90% cheaper.
Installation
npm install strapi-provider-translate-langblyAlso make sure you have strapi-plugin-translate installed:
npm install strapi-plugin-translateConfiguration
Add to your config/plugins.js (or config/plugins.ts):
module.exports = {
translate: {
enabled: true,
config: {
provider: 'langbly',
providerOptions: {
apiKey: process.env.LANGBLY_API_KEY,
// Optional: custom locale mappings
// localeMap: {
// 'zh-Hans': 'zh-CN',
// 'zh-Hant': 'zh-TW',
// },
},
// Optional: field-level translation config
translatedFieldTypes: [
'string',
'text',
'richtext',
'component',
'dynamiczone',
'blocks',
],
},
},
};Getting an API Key
- Sign up at langbly.com/signup (free, no credit card)
- Create an API key in your dashboard
- Add it to your
.envfile:
LANGBLY_API_KEY=your_api_key_hereFeatures
- Context-aware - Translations that understand intent, not just words
- 100+ languages — All major languages supported
- All Strapi field types — Plain text, rich text, markdown, blocks (jsonb)
- Rate limited — Built-in Bottleneck rate limiter (200ms interval, 5 concurrent)
- Chunked requests — Automatically splits large content into API-friendly chunks
- Locale mapping — Configurable Strapi-to-Langbly locale code mapping
- Google Translate v2 compatible — Same proven API format
Supported Formats
| Format | Support | |--------|---------| | Plain text | Full | | HTML | Full | | Markdown | Full (via html conversion) | | Blocks (jsonb) | Full (via html conversion) |
Pricing
| Plan | Price/mo | Characters | |------|----------|------------| | Free | $0 | 500K | | Starter | $19 | 5M | | Growth | $69 | 25M | | Scale | $199 | 100M |
Provider Options
| Option | Type | Default | Description |
|--------|------|---------|-------------|
| apiKey | string | process.env.LANGBLY_API_KEY | Langbly API key |
| apiUrl | string | https://api.langbly.com | API base URL |
| localeMap | object | {} | Custom locale code mappings |
License
MIT
