@nr1e/commons 0.4.8 → 0.4.9

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.
Files changed (49) hide show
  1. package/dist/paraglide/messages/_index.d.ts +5 -0
  2. package/dist/paraglide/messages/_index.d.ts.map +1 -0
  3. package/dist/paraglide/messages/_index.js +6 -0
  4. package/dist/paraglide/messages/_index.js.map +1 -0
  5. package/dist/paraglide/messages/v_atleast1.d.ts +20 -0
  6. package/dist/paraglide/messages/v_atleast1.d.ts.map +1 -0
  7. package/dist/paraglide/messages/v_atleast1.js +72 -0
  8. package/dist/paraglide/messages/v_atleast1.js.map +1 -0
  9. package/dist/paraglide/messages/v_atmost1.d.ts +20 -0
  10. package/dist/paraglide/messages/v_atmost1.d.ts.map +1 -0
  11. package/dist/paraglide/messages/v_atmost1.js +72 -0
  12. package/dist/paraglide/messages/v_atmost1.js.map +1 -0
  13. package/dist/paraglide/messages/v_nan2.d.ts +18 -0
  14. package/dist/paraglide/messages/v_nan2.d.ts.map +1 -0
  15. package/dist/paraglide/messages/v_nan2.js +72 -0
  16. package/dist/paraglide/messages/v_nan2.js.map +1 -0
  17. package/dist/paraglide/messages.d.ts +3 -0
  18. package/dist/paraglide/messages.d.ts.map +1 -0
  19. package/dist/paraglide/messages.js +5 -0
  20. package/dist/paraglide/messages.js.map +1 -0
  21. package/dist/paraglide/registry.d.ts +22 -0
  22. package/dist/paraglide/registry.d.ts.map +1 -0
  23. package/dist/paraglide/registry.js +32 -0
  24. package/dist/paraglide/registry.js.map +1 -0
  25. package/dist/paraglide/runtime.d.ts +731 -0
  26. package/dist/paraglide/runtime.d.ts.map +1 -0
  27. package/dist/paraglide/runtime.js +1782 -0
  28. package/dist/paraglide/runtime.js.map +1 -0
  29. package/dist/paraglide/server.d.ts +93 -0
  30. package/dist/paraglide/server.d.ts.map +1 -0
  31. package/dist/paraglide/server.js +239 -0
  32. package/dist/paraglide/server.js.map +1 -0
  33. package/dist/valibot/index.d.ts +1 -0
  34. package/dist/valibot/index.d.ts.map +1 -1
  35. package/dist/valibot/index.js +1 -0
  36. package/dist/valibot/index.js.map +1 -1
  37. package/dist/valibot/locale.d.ts +4 -0
  38. package/dist/valibot/locale.d.ts.map +1 -0
  39. package/dist/valibot/locale.js +3 -0
  40. package/dist/valibot/locale.js.map +1 -0
  41. package/dist/valibot/string-number.d.ts +37 -16
  42. package/dist/valibot/string-number.d.ts.map +1 -1
  43. package/dist/valibot/string-number.js +53 -32
  44. package/dist/valibot/string-number.js.map +1 -1
  45. package/dist/valibot/string-number.test.d.ts +2 -0
  46. package/dist/valibot/string-number.test.d.ts.map +1 -0
  47. package/dist/valibot/string-number.test.js +39 -0
  48. package/dist/valibot/string-number.test.js.map +1 -0
  49. package/package.json +7 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/paraglide/runtime.js"],"names":[],"mappings":"AAAA,oBAAoB;AAEpB,kBAAkB;AAClB,MAAM,UAAU,GAAG,EAAE,CAAA;AAErB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;AAC/B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,oBAAoB,CAAC,CAAC,CAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,CAAC,CAAC,CAAC;AACzH,qBAAqB;AACrB,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAC7C,qBAAqB;AACrB,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC;AACrC,qBAAqB;AACrB,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAC/B,qBAAqB;AACrB,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAClD;;GAEG;AACH,MAAM,CAAC,MAAM,Q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AC;AACD;;;;;;;;;GASG;AACH,MAAM,UAAU,0BAA0B,CAAC,QAAQ,EAAE,OAAO;IACxD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,6BAA6B,QAAQ,iEAAiE,CAAC,CAAC;IAC5H,CAAC;IACD,sBAAsB,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;AACD;;;;;;;;;GASG;AACH,MAAM,UAAU,0BAA0B,CAAC,QAAQ,EAAE,OAAO;IACxD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CAAC,6BAA6B,QAAQ,iEAAiE,CAAC,CAAC;IAC5H,CAAC;IACD,sBAAsB,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;AAID;;;;;;;GAOG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH;;;;;;;GAOG;AACH;;;;;;;GAOG;AACH;;;;GAIG;AACH;;;;GAIG;AACH;;;;;;;;GAQG;AACH;;;;GAIG;AACH;;;;;;;;;;;;;GAaG;AACH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;;;;;;;GAOG;AACH;;;;;;;;;;;GAWG"}
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Server middleware that handles locale-based routing and request processing.
3
+ *
4
+ * Configure `disableAsyncLocalStorage` when generating Paraglide with
5
+ * `paraglideVitePlugin()` or `compile()`, not when calling
6
+ * `paraglideMiddleware()`. Keep AsyncLocalStorage enabled by default and
7
+ * only disable it for runtimes that lack `AsyncLocalStorage` support and
8
+ * guarantee request isolation.
9
+ *
10
+ * This middleware performs several key functions:
11
+ *
12
+ * 1. Determines the locale for the incoming request using configured strategies
13
+ * 2. Handles URL localization and redirects (only for document requests)
14
+ * 3. Maintains locale state using AsyncLocalStorage to prevent request interference
15
+ *
16
+ * When URL strategy is used:
17
+ *
18
+ * - The locale is extracted from the URL for all request types
19
+ * - If URL doesn't match the determined locale, redirects to localized URL (only for document requests)
20
+ * - De-localizes URLs before passing to server (e.g., `/fr/about` → `/about`)
21
+ *
22
+ * @see https://inlang.com/m/gerre34r/library-inlang-paraglideJs/middleware
23
+ *
24
+ * @template T - The return type of the resolve function
25
+ *
26
+ * @param {Request} request - The incoming request object
27
+ * @param {(args: { request: Request, locale: import("./runtime.js").Locale }) => T | Promise<T>} resolve - Function to handle the request. The callback receives:
28
+ * - `request`: A modified request with a delocalized URL when the URL strategy is used (e.g., `/fr/about` → `/about`).
29
+ * If your framework handles URL localization itself (e.g., TanStack Router's `rewrite` option), use the original
30
+ * request instead to avoid redirect loops.
31
+ * - `locale`: The determined locale for this request.
32
+ * @param {{ onRedirect:(response: Response) => void }} [callbacks] - Callbacks to handle events from middleware
33
+ * @returns {Promise<Response>}
34
+ *
35
+ * @example
36
+ * ```typescript
37
+ * // Basic usage in metaframeworks like NextJS, SvelteKit, Astro, Nuxt, etc.
38
+ * export const handle = async ({ event, resolve }) => {
39
+ * return paraglideMiddleware(event.request, ({ request, locale }) => {
40
+ * // let the framework further resolve the request
41
+ * return resolve(request);
42
+ * });
43
+ * };
44
+ * ```
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ * // Usage in a framework like Express JS or Hono
49
+ * app.use(async (req, res, next) => {
50
+ * const result = await paraglideMiddleware(req, ({ request, locale }) => {
51
+ * // If a redirect happens this won't be called
52
+ * return next(request);
53
+ * });
54
+ * });
55
+ * ```
56
+ *
57
+ * @example
58
+ * ```typescript
59
+ * // Usage with frameworks that handle URL localization/delocalization themselves
60
+ * //
61
+ * // Some frameworks like TanStack Router handle URL localization and delocalization
62
+ * // themselves via their own rewrite APIs (e.g., `rewrite.input`/`rewrite.output`).
63
+ * //
64
+ * // When the framework handles this, the middleware's URL delocalization is not needed.
65
+ * // Using the modified `request` from the callback would cause a redirect loop because
66
+ * // both the middleware and the framework would attempt to delocalize the URL.
67
+ * //
68
+ * // Solution: Pass the original request to the handler instead of the modified one.
69
+ * // The middleware still handles locale detection, cookies, and AsyncLocalStorage context.
70
+ * //
71
+ * // ❌ WRONG - causes redirect loop when framework handles URL rewriting:
72
+ * // paraglideMiddleware(req, ({ request }) => handler.fetch(request))
73
+ * //
74
+ * // ✅ CORRECT - use original request when framework handles URL localization:
75
+ * // paraglideMiddleware(req, () => handler.fetch(req))
76
+ *
77
+ * * *
78
+ * export default {
79
+ * fetch(req: Request): Promise<Response> {
80
+ * // TanStack Router handles URL rewriting via deLocalizeUrl/localizeUrl
81
+ * // so we pass the original `req` instead of the modified `request`
82
+ * return paraglideMiddleware(req, () => handler.fetch(req))
83
+ * },
84
+ * }
85
+ * ```
86
+ */
87
+ export function paraglideMiddleware<T>(request: Request, resolve: (args: {
88
+ request: Request;
89
+ locale: import("./runtime.js").Locale;
90
+ }) => T | Promise<T>, callbacks?: {
91
+ onRedirect: (response: Response) => void;
92
+ }): Promise<Response>;
93
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/paraglide/server.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,oCA/Da,CAAC,WAEH,OAAO,WACP,CAAC,IAAI,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,cAAc,EAAE,MAAM,CAAA;CAAE,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,cAKrF;IAAE,UAAU,EAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;CAAE,GACzC,OAAO,CAAC,QAAQ,CAAC,CA2I7B"}
@@ -0,0 +1,239 @@
1
+ /* eslint-disable */
2
+ import * as runtime from "./runtime.js";
3
+ /**
4
+ * Server middleware that handles locale-based routing and request processing.
5
+ *
6
+ * Configure `disableAsyncLocalStorage` when generating Paraglide with
7
+ * `paraglideVitePlugin()` or `compile()`, not when calling
8
+ * `paraglideMiddleware()`. Keep AsyncLocalStorage enabled by default and
9
+ * only disable it for runtimes that lack `AsyncLocalStorage` support and
10
+ * guarantee request isolation.
11
+ *
12
+ * This middleware performs several key functions:
13
+ *
14
+ * 1. Determines the locale for the incoming request using configured strategies
15
+ * 2. Handles URL localization and redirects (only for document requests)
16
+ * 3. Maintains locale state using AsyncLocalStorage to prevent request interference
17
+ *
18
+ * When URL strategy is used:
19
+ *
20
+ * - The locale is extracted from the URL for all request types
21
+ * - If URL doesn't match the determined locale, redirects to localized URL (only for document requests)
22
+ * - De-localizes URLs before passing to server (e.g., `/fr/about` → `/about`)
23
+ *
24
+ * @see https://inlang.com/m/gerre34r/library-inlang-paraglideJs/middleware
25
+ *
26
+ * @template T - The return type of the resolve function
27
+ *
28
+ * @param {Request} request - The incoming request object
29
+ * @param {(args: { request: Request, locale: import("./runtime.js").Locale }) => T | Promise<T>} resolve - Function to handle the request. The callback receives:
30
+ * - `request`: A modified request with a delocalized URL when the URL strategy is used (e.g., `/fr/about` → `/about`).
31
+ * If your framework handles URL localization itself (e.g., TanStack Router's `rewrite` option), use the original
32
+ * request instead to avoid redirect loops.
33
+ * - `locale`: The determined locale for this request.
34
+ * @param {{ onRedirect:(response: Response) => void }} [callbacks] - Callbacks to handle events from middleware
35
+ * @returns {Promise<Response>}
36
+ *
37
+ * @example
38
+ * ```typescript
39
+ * // Basic usage in metaframeworks like NextJS, SvelteKit, Astro, Nuxt, etc.
40
+ * export const handle = async ({ event, resolve }) => {
41
+ * return paraglideMiddleware(event.request, ({ request, locale }) => {
42
+ * // let the framework further resolve the request
43
+ * return resolve(request);
44
+ * });
45
+ * };
46
+ * ```
47
+ *
48
+ * @example
49
+ * ```typescript
50
+ * // Usage in a framework like Express JS or Hono
51
+ * app.use(async (req, res, next) => {
52
+ * const result = await paraglideMiddleware(req, ({ request, locale }) => {
53
+ * // If a redirect happens this won't be called
54
+ * return next(request);
55
+ * });
56
+ * });
57
+ * ```
58
+ *
59
+ * @example
60
+ * ```typescript
61
+ * // Usage with frameworks that handle URL localization/delocalization themselves
62
+ * //
63
+ * // Some frameworks like TanStack Router handle URL localization and delocalization
64
+ * // themselves via their own rewrite APIs (e.g., `rewrite.input`/`rewrite.output`).
65
+ * //
66
+ * // When the framework handles this, the middleware's URL delocalization is not needed.
67
+ * // Using the modified `request` from the callback would cause a redirect loop because
68
+ * // both the middleware and the framework would attempt to delocalize the URL.
69
+ * //
70
+ * // Solution: Pass the original request to the handler instead of the modified one.
71
+ * // The middleware still handles locale detection, cookies, and AsyncLocalStorage context.
72
+ * //
73
+ * // ❌ WRONG - causes redirect loop when framework handles URL rewriting:
74
+ * // paraglideMiddleware(req, ({ request }) => handler.fetch(request))
75
+ * //
76
+ * // ✅ CORRECT - use original request when framework handles URL localization:
77
+ * // paraglideMiddleware(req, () => handler.fetch(req))
78
+ *
79
+ * * *
80
+ * export default {
81
+ * fetch(req: Request): Promise<Response> {
82
+ * // TanStack Router handles URL rewriting via deLocalizeUrl/localizeUrl
83
+ * // so we pass the original `req` instead of the modified `request`
84
+ * return paraglideMiddleware(req, () => handler.fetch(req))
85
+ * },
86
+ * }
87
+ * ```
88
+ */
89
+ export async function paraglideMiddleware(request, resolve, callbacks) {
90
+ if (!runtime.disableAsyncLocalStorage && !runtime.serverAsyncLocalStorage) {
91
+ const { AsyncLocalStorage } = await import("async_hooks");
92
+ runtime.overwriteServerAsyncLocalStorage(new AsyncLocalStorage());
93
+ }
94
+ else if (!runtime.serverAsyncLocalStorage) {
95
+ runtime.overwriteServerAsyncLocalStorage(createMockAsyncLocalStorage());
96
+ }
97
+ if (runtime.isExcludedByRouteStrategy(request.url)) {
98
+ const locale = runtime.baseLocale;
99
+ const origin = new URL(request.url).origin;
100
+ const newRequest = cloneRequestWithFallback(request);
101
+ /** @type {Set<string>} */
102
+ const messageCalls = new Set();
103
+ return /** @type {Response} */ (await runtime.serverAsyncLocalStorage?.run({ locale, origin, messageCalls }, () => resolve({ locale, request: newRequest })));
104
+ }
105
+ const strategy = runtime.getStrategyForUrl(request.url);
106
+ const decision = await runtime.shouldRedirect({ request });
107
+ const locale = decision.locale;
108
+ const origin = new URL(request.url).origin;
109
+ // if the client makes a request to a URL that doesn't match
110
+ // the localizedUrl, redirect the client to the localized URL
111
+ if (request.headers.get("Sec-Fetch-Dest") === "document" &&
112
+ decision.shouldRedirect &&
113
+ decision.redirectUrl) {
114
+ // Create headers object with Vary header if preferredLanguage strategy is used
115
+ /** @type {Record<string, string>} */
116
+ const headers = {};
117
+ if (strategy.includes("preferredLanguage")) {
118
+ headers["Vary"] = "Accept-Language";
119
+ }
120
+ const response = new Response(null, {
121
+ status: 307,
122
+ headers: {
123
+ Location: decision.redirectUrl.href,
124
+ ...headers,
125
+ },
126
+ });
127
+ callbacks?.onRedirect(response);
128
+ return response;
129
+ }
130
+ // If the strategy includes "url", we need to de-localize the URL
131
+ // before passing it to the server middleware.
132
+ //
133
+ // The middleware is responsible for mapping a localized URL to the
134
+ // de-localized URL e.g. `/en/about` to `/about`. Otherwise,
135
+ // the server can't render the correct page.
136
+ let newRequest;
137
+ if (strategy.includes("url")) {
138
+ newRequest = new Request(runtime.deLocalizeUrl(request.url), request);
139
+ }
140
+ else {
141
+ newRequest = cloneRequestWithFallback(request);
142
+ }
143
+ // the message functions that have been called in this request
144
+ /** @type {Set<string>} */
145
+ const messageCalls = new Set();
146
+ const response = await runtime.serverAsyncLocalStorage?.run({ locale, origin, messageCalls }, () => resolve({ locale, request: newRequest }));
147
+ // Only modify HTML responses
148
+ if (runtime.experimentalMiddlewareLocaleSplitting &&
149
+ response.headers.get("Content-Type")?.includes("html")) {
150
+ const body = await response.text();
151
+ const messages = [];
152
+ // using .values() to avoid polyfilling in older projects. else the following error is thrown
153
+ // Type 'Set<string>' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.
154
+ for (const messageCall of Array.from(messageCalls)) {
155
+ const [id, locale] =
156
+ /** @type {[string, import("./runtime.js").Locale]} */ (messageCall.split(":"));
157
+ messages.push(`${id}: ${compiledBundles[id]?.[locale]}`);
158
+ }
159
+ // Prevent translated content from terminating the inline script tag.
160
+ const escapedMessages = messages.join(",").replace(/<\/(script)/gi, "<\\/$1");
161
+ const script = `<script>globalThis.__paraglide = globalThis.__paraglide ?? {}; globalThis.__paraglide.ssr = { ${escapedMessages} }</script>`;
162
+ // Insert the script before the closing head tag
163
+ const newBody = body.replace("</head>", `${script}</head>`);
164
+ // Create a new response with the modified body
165
+ // Clone all headers except Content-Length which will be set automatically
166
+ const newHeaders = new Headers(response.headers);
167
+ newHeaders.delete("Content-Length"); // Let the browser calculate the correct length
168
+ return new Response(newBody, {
169
+ status: response.status,
170
+ statusText: response.statusText,
171
+ headers: newHeaders,
172
+ });
173
+ }
174
+ return response;
175
+ }
176
+ /**
177
+ * Some metaframeworks (NextJS) require a new Request object.
178
+ * https://github.com/opral/inlang-paraglide-js/issues/411
179
+ *
180
+ * However, some frameworks (TanStack Start 1.143+) use custom Request
181
+ * implementations that cannot be cloned with `new Request(request)`.
182
+ * https://github.com/opral/paraglide-js/issues/573
183
+ *
184
+ * @param {Request} request
185
+ * @returns {Request}
186
+ */
187
+ function cloneRequestWithFallback(request) {
188
+ try {
189
+ // Clone first so building a new Request does not consume the original body stream.
190
+ return new Request(request.clone());
191
+ }
192
+ catch {
193
+ try {
194
+ return new Request(request);
195
+ }
196
+ catch {
197
+ return request;
198
+ }
199
+ }
200
+ }
201
+ /**
202
+ * Creates a mock AsyncLocalStorage implementation for environments where
203
+ * native AsyncLocalStorage is not available or disabled.
204
+ *
205
+ * This mock implementation mimics the behavior of the native AsyncLocalStorage
206
+ * but doesn't require the async_hooks module. It's used as a fallback when
207
+ * the runtime does not expose AsyncLocalStorage or when it has been disabled.
208
+ *
209
+ * @returns {import("./runtime.js").ParaglideAsyncLocalStorage}
210
+ */
211
+ function createMockAsyncLocalStorage() {
212
+ /** @type {any} */
213
+ let currentStore = undefined;
214
+ return {
215
+ getStore() {
216
+ return currentStore;
217
+ },
218
+ async run(store, callback) {
219
+ currentStore = store;
220
+ try {
221
+ return await callback();
222
+ }
223
+ finally {
224
+ currentStore = undefined;
225
+ }
226
+ },
227
+ };
228
+ }
229
+ // Used in generated server.js when async local storage is disabled.
230
+ void createMockAsyncLocalStorage;
231
+ /**
232
+ * The compiled messages for the server middleware.
233
+ *
234
+ * Only populated if `enableMiddlewareOptimizations` is set to `true`.
235
+ *
236
+ * @type {Record<string, Record<import("./runtime.js").Locale, string>>}
237
+ */
238
+ const compiledBundles = {};
239
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/paraglide/server.js"],"names":[],"mappings":"AAAA,oBAAoB;AAEpB,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS;IACjE,IAAI,CAAC,OAAO,CAAC,wBAAwB,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,CAAC;QAC1E,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;QAC1D,OAAO,CAAC,gCAAgC,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;IACpE,CAAC;SAAM,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,CAAC;QAC5C,OAAO,CAAC,gCAAgC,CAAC,2BAA2B,EAAE,CAAC,CAAC;IAC1E,CAAC;IACD,IAAI,OAAO,CAAC,yBAAyB,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,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2BAA2B;IAChC,kBAAkB;IAClB,IAAI,YAAY,GAAG,SAAS,CAAC;IAC7B,OAAO;QACH,QAAQ;YACJ,OAAO,YAAY,CAAC;QACxB,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ;YACrB,YAAY,GAAG,KAAK,CAAC;YACrB,IAAI,CAAC;gBACD,OAAO,MAAM,QAAQ,EAAE,CAAC;YAC5B,CAAC;oBACO,CAAC;gBACL,YAAY,GAAG,SAAS,CAAC;YAC7B,CAAC;QACL,CAAC;KACJ,CAAC;AACN,CAAC;AACD,oEAAoE;AACpE,KAAK,2BAA2B,CAAC;AACjC;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import * as v from 'valibot';
2
2
  export { v };
3
3
  export * from './string-number.js';
4
+ export * from './locale.js';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/valibot/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAC,CAAC,EAAC,CAAC;AACX,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/valibot/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAC,CAAC,EAAC,CAAC;AACX,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import * as v from 'valibot';
2
2
  export { v };
3
3
  export * from './string-number.js';
4
+ export * from './locale.js';
4
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/valibot/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAC,CAAC,EAAC,CAAC;AACX,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/valibot/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAC,CAAC,EAAC,CAAC;AACX,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { locales, getLocale, setLocale } from '../paraglide/runtime.js';
2
+ export type Locale = (typeof locales)[number];
3
+ export { locales, getLocale, setLocale };
4
+ //# sourceMappingURL=locale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/valibot/locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAEtE,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9C,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { locales, getLocale, setLocale } from '../paraglide/runtime.js';
2
+ export { locales, getLocale, setLocale };
3
+ //# sourceMappingURL=locale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale.js","sourceRoot":"","sources":["../../src/valibot/locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAGtE,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAC,CAAC"}
@@ -1,94 +1,115 @@
1
1
  import * as v from 'valibot';
2
+ import { Locale } from './locale.js';
2
3
  /**
3
4
  * Accepts a number or a string and converts strings to a number.
5
+ *
6
+ * @param locale - The optional locale to use for error messages.
4
7
  */
5
- export declare function stringNumber(): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<undefined>]>;
8
+ export declare function stringNumber(locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>]>;
6
9
  /**
7
10
  * Accepts a number or a string, converts strings to a number, and returns null if the string is empty.
8
11
  *
9
12
  * @param min - The minimum value.
13
+ * @param locale - The optional locale to use for error messages.
10
14
  */
11
- export declare function stringNumberMinimum(min: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.MinValueAction<number, number, `Must be at least ${number}`>]>;
15
+ export declare function stringNumberMinimum(min: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MinValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>;
12
16
  /**
13
17
  * Accepts a number or a string, converts the strings to a number, and returns null if the string is empty.
14
18
  *
15
19
  * @param max - The maximum value.
20
+ * @param locale - The optional locale to use for error messages.
16
21
  */
17
- export declare function stringNumberMaximum(max: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.MaxValueAction<number, number, `May be at most ${number}`>]>;
22
+ export declare function stringNumberMaximum(max: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MaxValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>;
18
23
  /**
19
24
  * Accepts a number or a string, converts the strings to a number, and returns null if the string is empty.
20
25
  *
21
26
  * @param min - The minimum value.
22
27
  * @param max - The maximum value.
28
+ * @param locale - The optional locale to use for error messages.
23
29
  */
24
- export declare function stringNumberRange(min: number | string, max: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.MinValueAction<number, number, `Must be at least ${number}`>, v.MaxValueAction<number, number, `May be at most ${number}`>]>;
30
+ export declare function stringNumberRange(min: number | string, max: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MinValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>, v.MaxValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>;
25
31
  /**
26
32
  * Accepts a number or a string and trims strings and converts strings to a number.
33
+ *
34
+ * @param locale - The optional locale to use for error messages.
27
35
  */
28
- export declare function trimStringNumber(): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<undefined>]>;
36
+ export declare function trimStringNumber(locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>]>;
29
37
  /**
30
38
  * Accepts a number or a string and trims strings and converts strings to a number and returns null if the string is empty.
31
39
  *
32
40
  * @param min - The minimum value.
41
+ * @param locale - The optional locale to use for error messages.
33
42
  */
34
- export declare function trimStringNumberMinimum(min: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.MinValueAction<number, number, `Must be at least ${number}`>, v.NumberSchema<undefined>]>;
43
+ export declare function trimStringNumberMinimum(min: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MinValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>;
35
44
  /**
36
45
  * Accepts a number or a string and trims strings and converts strings to a number and returns null if the string is empty.
37
46
  *
38
47
  * @param max - The maximum value.
48
+ * @param locale - The optional locale to use for error messages.
39
49
  */
40
- export declare function trimStringNumberMaximum(max: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.MaxValueAction<number, number, `May be at most ${number}`>, v.NumberSchema<undefined>]>;
50
+ export declare function trimStringNumberMaximum(max: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MaxValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>;
41
51
  /**
42
52
  * Accepts a number or a string and trims strings and converts strings to a number and returns null if the string is empty.
43
53
  *
44
54
  * @param min - The minimum value.
45
55
  * @param max - The maximum value.
56
+ * @param locale - The optional locale to use for error messages.
46
57
  */
47
- export declare function trimStringNumberRange(min: number | string, max: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.MinValueAction<number, number, `Must be at least ${number}`>, v.MaxValueAction<number, number, `May be at most ${number}`>, v.NumberSchema<undefined>]>;
58
+ export declare function trimStringNumberRange(min: number | string, max: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>, v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MinValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>, v.MaxValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>;
48
59
  /**
49
60
  * Accepts a number or a string, trims strings, converts strings to a number, and returns null if the string is empty.
61
+ *
62
+ * @param locale - The optional locale to use for error messages.
50
63
  */
51
- export declare function stringNumberEmptyNull(): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.NumberSchema<undefined>, undefined>]>;
64
+ export declare function stringNumberEmptyNull(locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, undefined>]>;
52
65
  /**
53
66
  * Accepts a number or a string, trims strings, converts strings to a number, and returns null if the string is empty.
54
67
  *
55
68
  * @param min - The minimum value.
69
+ * @param locale - The optional locale to use for error messages.
56
70
  */
57
- export declare function stringNumberMinimumEmptyNull(min: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, `Must be at leat ${number}`>]>, undefined>]>;
71
+ export declare function stringNumberMinimumEmptyNull(min: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MinValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>, undefined>]>;
58
72
  /**
59
73
  * Accepts a number or a string, trims strings, converts strings to a number, and returns null if the string is empty.
60
74
  *
61
75
  * @param max - The maximum value.
76
+ * @param locale - The optional locale to use for error messages.
62
77
  */
63
- export declare function stringNumberMaximumEmptyNull(max: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MaxValueAction<number, number, `Must be at most ${number}`>]>, undefined>]>;
78
+ export declare function stringNumberMaximumEmptyNull(max: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MaxValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>, undefined>]>;
64
79
  /**
65
80
  * Accepts a number or a string, trims strings, converts strings to a number, and returns null if the string is empty.
66
81
  *
67
82
  * @param min - The minimum value.
68
83
  * @param max - The maximum value.
84
+ * @param locale - The optional locale to use for error messages.
69
85
  */
70
- export declare function stringNumberRangeEmptyNull(min: number | string, max: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, `Must be at leat ${number}`>, v.MaxValueAction<number, number, `May be at most ${number}`>]>, undefined>]>;
86
+ export declare function stringNumberRangeEmptyNull(min: number | string, max: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MinValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>, v.MaxValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>, undefined>]>;
71
87
  /**
72
88
  * Accepts a number or a string, trims strings, converts the string to a number, and returns null if the string is empty.
89
+ *
90
+ * @param locale - The optional locale to use for error messages.
73
91
  */
74
- export declare function trimStringNumberEmptyNull(): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.NumberSchema<undefined>, undefined>]>;
92
+ export declare function trimStringNumberEmptyNull(locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, undefined>]>;
75
93
  /**
76
94
  * Accepts a number or a string, trims strings, converts the string to a number, and returns null if the string is empty.
77
95
  *
78
96
  * @param min - The minimum value.
97
+ * @param locale - The optional locale to use for error messages.
79
98
  */
80
- export declare function trimStringNumberMinimumEmptyNull(min: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, `Must be at leat ${number}`>]>, undefined>]>;
99
+ export declare function trimStringNumberMinimumEmptyNull(min: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MinValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>, undefined>]>;
81
100
  /**
82
101
  * Accepts a number or a string, trims strings, converts the string to a number, and returns null if the string is empty.
83
102
  *
84
103
  * @param max - The maximum value.
104
+ * @param locale - The optional locale to use for error messages.
85
105
  */
86
- export declare function trimStringNumberMaximumEmptyNull(max: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MaxValueAction<number, number, `May be at most ${number}`>]>, undefined>]>;
106
+ export declare function trimStringNumberMaximumEmptyNull(max: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MaxValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>, undefined>]>;
87
107
  /**
88
108
  * Accepts a number or a string, trims strings, converts the string to a number, and returns null if the string is empty.
89
109
  *
90
110
  * @param min - The minimum value.
91
111
  * @param max - The maximum value.
112
+ * @param locale - The optional locale to use for error messages.
92
113
  */
93
- export declare function trimStringNumberRangeEmptyNull(min: number | string, max: number | string): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, `Must be at leat ${number}`>, v.MaxValueAction<number, number, `May be at most ${number}`>]>, undefined>]>;
114
+ export declare function trimStringNumberRangeEmptyNull(min: number | string, max: number | string, locale?: Locale): v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number | null>, v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<import("../paraglide/runtime.js").LocalizedString>, v.MinValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>, v.MaxValueAction<number, number, import("../paraglide/runtime.js").LocalizedString>]>, undefined>]>;
94
115
  //# sourceMappingURL=string-number.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"string-number.d.ts","sourceRoot":"","sources":["../../src/valibot/string-number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B;;GAEG;AACH,wBAAgB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