glotfox 0.1.0 → 0.1.2
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 +2 -2
- package/dist/{chunk-AQOIF7AF.js → chunk-V7VH3XEQ.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/sync.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# glotfox
|
|
2
2
|
|
|
3
|
-
Command-line tool for [GlotFox](https://glotfox.
|
|
3
|
+
Command-line tool for [GlotFox](https://glotfox.com). It extracts translation keys from React, Next.js and vanilla JS/TS projects into the source-locale files.
|
|
4
4
|
|
|
5
5
|
Requires Node 22+.
|
|
6
6
|
|
|
@@ -52,7 +52,7 @@ npx glotfox pull # write approved translations into the locale files
|
|
|
52
52
|
|
|
53
53
|
| Option | Description |
|
|
54
54
|
|--------|-------------|
|
|
55
|
-
| `--api-url <url>` | Server URL (default `$GLOTFOX_API_URL`, then `https://glotfox.
|
|
55
|
+
| `--api-url <url>` | Server URL (default `$GLOTFOX_API_URL`, then `https://dashboard.glotfox.com`). |
|
|
56
56
|
| `--dry-run` | Report what would happen without uploading (`push`) or writing files (`pull`). |
|
|
57
57
|
|
|
58
58
|
- `push` sends every key of the source-locale files as `namespace:key` with its text and its `*.meta.json` description. It never deletes keys on the server.
|
|
@@ -847,7 +847,7 @@ function generateTypes(opts) {
|
|
|
847
847
|
// src/sync.ts
|
|
848
848
|
import fs6 from "node:fs";
|
|
849
849
|
import path6 from "node:path";
|
|
850
|
-
var DEFAULT_API_URL = "https://glotfox.
|
|
850
|
+
var DEFAULT_API_URL = "https://dashboard.glotfox.com";
|
|
851
851
|
var PUSH_BATCH = 500;
|
|
852
852
|
var MAX_REFERENCES = 50;
|
|
853
853
|
var Api = class {
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/dist/sync.d.ts
CHANGED