@pigment/auto-translate 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,11 +22,11 @@ A powerful auto-translation plugin for [Payload CMS](https://payloadcms.com) tha
|
|
|
22
22
|
## 🚀 Installation
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npm install auto-translate
|
|
25
|
+
npm install @pigment/auto-translate
|
|
26
26
|
# or
|
|
27
|
-
pnpm add auto-translate
|
|
27
|
+
pnpm add @pigment/auto-translate
|
|
28
28
|
# or
|
|
29
|
-
yarn add auto-translate
|
|
29
|
+
yarn add @pigment/auto-translate
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## ⚙️ Configuration
|
|
@@ -34,7 +34,7 @@ yarn add auto-translate
|
|
|
34
34
|
### Basic Setup
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
|
-
import { autoTranslate } from 'auto-translate'
|
|
37
|
+
import { autoTranslate } from '@pigment/auto-translate'
|
|
38
38
|
import { buildConfig } from 'payload'
|
|
39
39
|
|
|
40
40
|
export default buildConfig({
|
|
@@ -81,7 +81,7 @@ OPENAI_BASE_URL=https://api.openai.com/v1
|
|
|
81
81
|
### Full Configuration Options
|
|
82
82
|
|
|
83
83
|
```typescript
|
|
84
|
-
import { autoTranslate } from 'auto-translate'
|
|
84
|
+
import { autoTranslate } from '@pigment/auto-translate'
|
|
85
85
|
|
|
86
86
|
export default buildConfig({
|
|
87
87
|
plugins: [
|
|
@@ -166,6 +166,7 @@ autoTranslate({
|
|
|
166
166
|
```
|
|
167
167
|
|
|
168
168
|
**When disabled**:
|
|
169
|
+
|
|
169
170
|
- ❌ No translation exclusions collection
|
|
170
171
|
- ❌ No 🌐/🔒 buttons on fields
|
|
171
172
|
- ✅ All localized fields are always translated
|
package/package.json
CHANGED