@pithy-sh/i18n 0.3.0 → 0.3.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/dist/catalogs/es/errors.d.ts +13 -7
- package/dist/catalogs/es/errors.d.ts.map +1 -1
- package/dist/catalogs/es/errors.js +14 -8
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/package.json +2 -2
- package/src/catalogs/es/errors.ts +14 -8
- package/src/version.generated.ts +1 -1
|
@@ -15,13 +15,19 @@ import type { MessageCatalog } from "@pithy-sh/core/src/i18n/catalog";
|
|
|
15
15
|
* `action` names `pithy` commands and repository files and never leaves the terminal, so nothing here
|
|
16
16
|
* translates one. Placeholders match the `params` the throw sites pass.
|
|
17
17
|
*
|
|
18
|
-
* **
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
18
|
+
* **One sentence below carries a placeholder, and exactly one may.** `interpolate` leaves a placeholder
|
|
19
|
+
* nobody supplied written out as `{apiAnswer}`, so writing one here is a claim about a *call site*:
|
|
20
|
+
* that every throw of this code passes that name, on the degraded paths too. `core`'s
|
|
21
|
+
* `GUARANTEED_ERROR_PARAMS` is where a throw site makes that promise, and `./errors.test.ts` holds this
|
|
22
|
+
* file to it — a placeholder no code guarantees fails there. For a year the sound gate was the absence
|
|
23
|
+
* of placeholders, because no throw site passed `params` at all; `@pithy-sh/cloudflare`'s
|
|
24
|
+
* `cloudflareRefusal` is the first that does (#534), which is why the pin changed rather than relaxed.
|
|
25
|
+
*
|
|
26
|
+
* `cloudflare/request_failed` is that sentence. Cloudflare's own words are English we did not write and
|
|
27
|
+
* cannot translate, but its numeric code is what an operator quotes into a search, and dropping it left
|
|
28
|
+
* a Spanish reader with strictly less than an English one had. `apiAnswer` carries its own leading
|
|
29
|
+
* separator — `": 10000 Authentication error"`, or `""` when the call never reached Cloudflare — so the
|
|
30
|
+
* one sentence closes on its period both ways. A locale cannot write an `if`; the value can.
|
|
25
31
|
*
|
|
26
32
|
* Peninsular-neutral: one `es` serves es-ES, es-MX and es-AR, so a regionalism that reads as home to
|
|
27
33
|
* one of them and as foreign to the other two is the wrong word even when it is the better word. Where
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/catalogs/es/errors.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/catalogs/es/errors.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,QAAQ,EAAE,cAkKtB,CAAC"}
|
|
@@ -15,13 +15,19 @@
|
|
|
15
15
|
* `action` names `pithy` commands and repository files and never leaves the terminal, so nothing here
|
|
16
16
|
* translates one. Placeholders match the `params` the throw sites pass.
|
|
17
17
|
*
|
|
18
|
-
* **
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
18
|
+
* **One sentence below carries a placeholder, and exactly one may.** `interpolate` leaves a placeholder
|
|
19
|
+
* nobody supplied written out as `{apiAnswer}`, so writing one here is a claim about a *call site*:
|
|
20
|
+
* that every throw of this code passes that name, on the degraded paths too. `core`'s
|
|
21
|
+
* `GUARANTEED_ERROR_PARAMS` is where a throw site makes that promise, and `./errors.test.ts` holds this
|
|
22
|
+
* file to it — a placeholder no code guarantees fails there. For a year the sound gate was the absence
|
|
23
|
+
* of placeholders, because no throw site passed `params` at all; `@pithy-sh/cloudflare`'s
|
|
24
|
+
* `cloudflareRefusal` is the first that does (#534), which is why the pin changed rather than relaxed.
|
|
25
|
+
*
|
|
26
|
+
* `cloudflare/request_failed` is that sentence. Cloudflare's own words are English we did not write and
|
|
27
|
+
* cannot translate, but its numeric code is what an operator quotes into a search, and dropping it left
|
|
28
|
+
* a Spanish reader with strictly less than an English one had. `apiAnswer` carries its own leading
|
|
29
|
+
* separator — `": 10000 Authentication error"`, or `""` when the call never reached Cloudflare — so the
|
|
30
|
+
* one sentence closes on its period both ways. A locale cannot write an `if`; the value can.
|
|
25
31
|
*
|
|
26
32
|
* Peninsular-neutral: one `es` serves es-ES, es-MX and es-AR, so a regionalism that reads as home to
|
|
27
33
|
* one of them and as foreign to the other two is the wrong word even when it is the better word. Where
|
|
@@ -45,7 +51,7 @@ const esErrors = {
|
|
|
45
51
|
"core/workflow_failed": "La operación no se ha completado.",
|
|
46
52
|
"core/webhook_unverified": "La firma de la notificación no es válida.",
|
|
47
53
|
"cloudflare/not_configured": "Este servicio no está disponible ahora.",
|
|
48
|
-
"cloudflare/request_failed": "No se ha podido completar la llamada a Cloudflare.",
|
|
54
|
+
"cloudflare/request_failed": "No se ha podido completar la llamada a Cloudflare{apiAnswer}.",
|
|
49
55
|
"cloudflare/invalid_response": "La respuesta de Cloudflare no tiene el formato esperado.",
|
|
50
56
|
"secrets/not_found": "El secreto solicitado no existe.",
|
|
51
57
|
"secrets/already_exists": "Ya existe un secreto con ese nombre.",
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
/** This package's npm name — the join key against a release feed. */
|
|
4
4
|
export declare const PACKAGE_NAME = "@pithy-sh/i18n";
|
|
5
5
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
6
|
-
export declare const PACKAGE_VERSION = "0.3.
|
|
6
|
+
export declare const PACKAGE_VERSION = "0.3.1";
|
|
7
7
|
//# sourceMappingURL=version.generated.d.ts.map
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
/** This package's npm name — the join key against a release feed. */
|
|
5
5
|
const PACKAGE_NAME = "@pithy-sh/i18n";
|
|
6
6
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
7
|
-
const PACKAGE_VERSION = "0.3.
|
|
7
|
+
const PACKAGE_VERSION = "0.3.1";
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PACKAGE_NAME, PACKAGE_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pithy-sh/i18n",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"reset": "bun run clean && rm -rf node_modules"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@pithy-sh/core": "^0.3.
|
|
38
|
+
"@pithy-sh/core": "^0.3.1"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"hono": "^4.13.2",
|
|
@@ -19,13 +19,19 @@ import type { MessageCatalog } from "@pithy-sh/core/src/i18n/catalog";
|
|
|
19
19
|
* `action` names `pithy` commands and repository files and never leaves the terminal, so nothing here
|
|
20
20
|
* translates one. Placeholders match the `params` the throw sites pass.
|
|
21
21
|
*
|
|
22
|
-
* **
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
22
|
+
* **One sentence below carries a placeholder, and exactly one may.** `interpolate` leaves a placeholder
|
|
23
|
+
* nobody supplied written out as `{apiAnswer}`, so writing one here is a claim about a *call site*:
|
|
24
|
+
* that every throw of this code passes that name, on the degraded paths too. `core`'s
|
|
25
|
+
* `GUARANTEED_ERROR_PARAMS` is where a throw site makes that promise, and `./errors.test.ts` holds this
|
|
26
|
+
* file to it — a placeholder no code guarantees fails there. For a year the sound gate was the absence
|
|
27
|
+
* of placeholders, because no throw site passed `params` at all; `@pithy-sh/cloudflare`'s
|
|
28
|
+
* `cloudflareRefusal` is the first that does (#534), which is why the pin changed rather than relaxed.
|
|
29
|
+
*
|
|
30
|
+
* `cloudflare/request_failed` is that sentence. Cloudflare's own words are English we did not write and
|
|
31
|
+
* cannot translate, but its numeric code is what an operator quotes into a search, and dropping it left
|
|
32
|
+
* a Spanish reader with strictly less than an English one had. `apiAnswer` carries its own leading
|
|
33
|
+
* separator — `": 10000 Authentication error"`, or `""` when the call never reached Cloudflare — so the
|
|
34
|
+
* one sentence closes on its period both ways. A locale cannot write an `if`; the value can.
|
|
29
35
|
*
|
|
30
36
|
* Peninsular-neutral: one `es` serves es-ES, es-MX and es-AR, so a regionalism that reads as home to
|
|
31
37
|
* one of them and as foreign to the other two is the wrong word even when it is the better word. Where
|
|
@@ -54,7 +60,7 @@ export const esErrors: MessageCatalog = {
|
|
|
54
60
|
|
|
55
61
|
// Cloudflare REST. Naming the provider is safe — it is the adopter's own account, not our infrastructure.
|
|
56
62
|
"cloudflare/not_configured": "Este servicio no está disponible ahora.",
|
|
57
|
-
"cloudflare/request_failed": "No se ha podido completar la llamada a Cloudflare.",
|
|
63
|
+
"cloudflare/request_failed": "No se ha podido completar la llamada a Cloudflare{apiAnswer}.",
|
|
58
64
|
"cloudflare/invalid_response": "La respuesta de Cloudflare no tiene el formato esperado.",
|
|
59
65
|
|
|
60
66
|
// Secrets.
|
package/src/version.generated.ts
CHANGED