@pithy-sh/i18n 0.1.4 → 0.2.0
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/adapters/adapters.d.ts +2 -0
- package/dist/adapters/adapters.js +2 -0
- package/dist/browser/document.d.ts +2 -0
- package/dist/browser/document.js +2 -0
- package/dist/browser/signals.d.ts +2 -0
- package/dist/browser/signals.js +2 -0
- package/dist/capability.d.ts +2 -0
- package/dist/capability.js +2 -0
- package/dist/catalogs/browser.d.ts +2 -0
- package/dist/catalogs/browser.js +2 -0
- package/dist/catalogs/es/errors.d.ts +2 -0
- package/dist/catalogs/es/errors.js +2 -0
- package/dist/catalogs/es/index.d.ts +2 -0
- package/dist/catalogs/es/index.js +2 -0
- package/dist/catalogs/es/screens.d.ts +2 -0
- package/dist/catalogs/es/screens.js +2 -0
- package/dist/catalogs/kit.d.ts +2 -0
- package/dist/catalogs/kit.js +2 -0
- package/dist/client/projection.d.ts +2 -0
- package/dist/client/projection.js +2 -0
- package/dist/config/config.d.ts +2 -0
- package/dist/config/config.js +2 -0
- package/dist/http/middleware.d.ts +2 -0
- package/dist/http/middleware.js +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/react/translator.d.ts +2 -0
- package/dist/react/translator.js +2 -0
- package/dist/react/useNegotiatedLocale.d.ts +2 -0
- package/dist/react/useNegotiatedLocale.js +2 -0
- package/dist/resolve/browser.d.ts +2 -0
- package/dist/resolve/browser.js +2 -0
- package/dist/resolve/chain.d.ts +2 -0
- package/dist/resolve/chain.js +2 -0
- package/dist/resolve/server.d.ts +2 -0
- package/dist/resolve/server.js +2 -0
- package/dist/settings/coverage.d.ts +2 -0
- package/dist/settings/coverage.js +2 -0
- package/dist/version.generated.d.ts +3 -1
- package/dist/version.generated.js +3 -1
- package/package.json +3 -3
- package/src/version.generated.ts +1 -1
package/dist/browser/document.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { recognizedResolvers } from "../resolve/browser.js";
|
|
2
4
|
import { applyDocumentLocale } from "./signals.js";
|
|
3
5
|
import { formattingLocaleOf, localeDirection } from "@pithy-sh/core/src/i18n/locale";
|
package/dist/browser/signals.js
CHANGED
package/dist/capability.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { type Capability } from "@pithy-sh/core/src/capability/capability";
|
|
2
4
|
import type { LocaleCatalogs, MessageCatalog } from "@pithy-sh/core/src/i18n/catalog";
|
|
3
5
|
import { I18nConfig, type I18nConfigInput } from "./config/config";
|
package/dist/capability.js
CHANGED
package/dist/catalogs/browser.js
CHANGED
package/dist/catalogs/kit.d.ts
CHANGED
package/dist/catalogs/kit.js
CHANGED
package/dist/config/config.d.ts
CHANGED
package/dist/config/config.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { PithyMiddleware } from "@pithy-sh/core/src/capability/capability";
|
|
2
4
|
import type { MessageCatalog } from "@pithy-sh/core/src/i18n/catalog";
|
|
3
5
|
import type { I18nConfig } from "../config/config";
|
package/dist/http/middleware.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { BrowserResolver, ServerResolver } from "./config/config.js";
|
|
2
4
|
import { i18n, isI18nCapability } from "./capability.js";
|
|
3
5
|
export { BrowserResolver, ServerResolver, i18n, isI18nCapability };
|
package/dist/react/translator.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { bakedTranslator, createTranslator } from "@pithy-sh/core/src/i18n/translator";
|
|
2
4
|
import { interpolate } from "@pithy-sh/core/src/i18n/catalog";
|
|
3
5
|
import { createContext, useContext, useMemo } from "react";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import { resolveBrowserLocale } from "../resolve/browser.js";
|
|
2
4
|
import { applyDocumentLocale, readBrowserSignals, rememberBrowserLocale } from "../browser/signals.js";
|
|
3
5
|
import { loadKitCatalog } from "../catalogs/browser.js";
|
package/dist/resolve/browser.js
CHANGED
package/dist/resolve/chain.d.ts
CHANGED
package/dist/resolve/chain.js
CHANGED
package/dist/resolve/server.d.ts
CHANGED
package/dist/resolve/server.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
import type { CapabilitySettings } from "@pithy-sh/core/src/capability/settings";
|
|
2
4
|
import type { LocaleCatalogs } from "@pithy-sh/core/src/i18n/catalog";
|
|
3
5
|
import type { I18nConfig } from "../config/config";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
/** This package's npm name — the join key against a release feed. */
|
|
2
4
|
export declare const PACKAGE_NAME = "@pithy-sh/i18n";
|
|
3
5
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
4
|
-
export declare const PACKAGE_VERSION = "0.
|
|
6
|
+
export declare const PACKAGE_VERSION = "0.2.0";
|
|
5
7
|
//# sourceMappingURL=version.generated.d.ts.map
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
1
3
|
//#region src/version.generated.ts
|
|
2
4
|
/** This package's npm name — the join key against a release feed. */
|
|
3
5
|
const PACKAGE_NAME = "@pithy-sh/i18n";
|
|
4
6
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
5
|
-
const PACKAGE_VERSION = "0.
|
|
7
|
+
const PACKAGE_VERSION = "0.2.0";
|
|
6
8
|
//#endregion
|
|
7
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
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"./src/react/translator": "./src/react/translator.tsx"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "tsdown && tsc -p tsconfig.build.json",
|
|
29
|
+
"build": "tsdown && tsc -p tsconfig.build.json && bun ../../tooling/build/src/stampDeclarations.ts",
|
|
30
30
|
"typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.browser.json",
|
|
31
31
|
"test": "vitest run",
|
|
32
32
|
"test:node": "vitest run --project=node --project=dom",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"reset": "bun run clean && rm -rf node_modules"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@pithy-sh/core": "^0.
|
|
38
|
+
"@pithy-sh/core": "^0.2.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"hono": "^4.13.2",
|
package/src/version.generated.ts
CHANGED