@turnipxenon/pineapple 5.3.16 → 5.3.17
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/external/paraglide/.prettierignore +3 -0
- package/dist/external/paraglide/messages/_index.d.ts +4 -0
- package/dist/external/paraglide/messages/_index.d.ts.map +1 -0
- package/dist/external/paraglide/messages/_index.js +4 -0
- package/dist/external/paraglide/messages/example_message.d.ts +19 -0
- package/dist/external/paraglide/messages/example_message.d.ts.map +1 -0
- package/dist/external/paraglide/messages/example_message.js +34 -0
- package/dist/external/paraglide/messages/package.json +4 -0
- package/dist/external/paraglide/messages/settings.d.ts +17 -0
- package/dist/external/paraglide/messages/settings.d.ts.map +1 -0
- package/dist/external/paraglide/messages/settings.js +33 -0
- package/dist/external/paraglide/messages.d.ts +3 -0
- package/dist/external/paraglide/messages.d.ts.map +1 -0
- package/dist/external/paraglide/messages.js +4 -0
- package/dist/external/paraglide/registry.d.ts +35 -0
- package/dist/external/paraglide/registry.d.ts.map +1 -0
- package/dist/external/paraglide/registry.js +46 -0
- package/dist/external/paraglide/runtime.d.ts +785 -0
- package/dist/external/paraglide/runtime.d.ts.map +1 -0
- package/dist/external/paraglide/runtime.js +1892 -0
- package/dist/external/paraglide/server.d.ts +97 -0
- package/dist/external/paraglide/server.d.ts.map +1 -0
- package/dist/external/paraglide/server.js +290 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_index.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/_index.js"],"names":[],"mappings":";;8BACc,OAAO,eAAe,EAAE,eAAe"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Hello world {username}" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Example_MessageInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "fr" | "tl" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const example_message: ((inputs: Example_MessageInputs, options?: {
|
|
11
|
+
locale?: "en" | "fr" | "tl";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Example_MessageInputs, {
|
|
13
|
+
locale?: "en" | "fr" | "tl";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Example_MessageInputs = {
|
|
17
|
+
username: NonNullable<unknown>;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=example_message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"example_message.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/example_message.js"],"names":[],"mappings":"AAmBA;;;;;;;;EAQE;AACF,8BAA0C,CAAC,CAAC,MAAM,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,KAAK,eAAe,CAAC,GAAG,OAAO,eAAe,EAAE,eAAe,CAAC,qBAAqB,EAAE;IAAE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,EAAE,EAAE,CAAC,CAK5O;8BA9BW,OAAO,eAAe,EAAE,eAAe;oCAEvC;IAAE,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{ username: NonNullable<unknown> }} Example_MessageInputs */
|
|
7
|
+
|
|
8
|
+
const en_example_message = /** @type {(inputs: Example_MessageInputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Hello world ${i?.username}`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const fr_example_message = /** @type {(inputs: Example_MessageInputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`Bonjour ${i?.username}`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const tl_example_message = /** @type {(inputs: Example_MessageInputs) => LocalizedString} */ (i) => {
|
|
17
|
+
return /** @type {LocalizedString} */ (`Kamusta ${i?.username}`)
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* | output |
|
|
22
|
+
* | --- |
|
|
23
|
+
* | "Hello world {username}" |
|
|
24
|
+
*
|
|
25
|
+
* @param {Example_MessageInputs} inputs
|
|
26
|
+
* @param {{ locale?: "en" | "fr" | "tl" }} options
|
|
27
|
+
* @returns {LocalizedString}
|
|
28
|
+
*/
|
|
29
|
+
export const example_message = /** @type {((inputs: Example_MessageInputs, options?: { locale?: "en" | "fr" | "tl" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Example_MessageInputs, { locale?: "en" | "fr" | "tl" }, {}>} */ ((inputs, options = {}) => {
|
|
30
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
31
|
+
if (locale === "fr") return fr_example_message(inputs)
|
|
32
|
+
if (locale === "tl") return tl_example_message(inputs)
|
|
33
|
+
return en_example_message(inputs)
|
|
34
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Settings" |
|
|
5
|
+
*
|
|
6
|
+
* @param {SettingsInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "fr" | "tl" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const settings: ((inputs?: SettingsInputs, options?: {
|
|
11
|
+
locale?: "en" | "fr" | "tl";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<SettingsInputs, {
|
|
13
|
+
locale?: "en" | "fr" | "tl";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type SettingsInputs = {};
|
|
17
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/lib/external/paraglide/messages/settings.js"],"names":[],"mappings":"AAkBA;;;;;;;;EAQE;AACF,uBAAmC,CAAC,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,KAAK,eAAe,CAAC,GAAG,OAAO,eAAe,EAAE,eAAe,CAAC,cAAc,EAAE;IAAE,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,EAAE,EAAE,CAAC,CAKxN;8BA7BW,OAAO,eAAe,EAAE,eAAe;6BAEvC,EAAE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} SettingsInputs */
|
|
7
|
+
|
|
8
|
+
const en_settings = /** @type {(inputs: SettingsInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Settings`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const fr_settings = /** @type {(inputs: SettingsInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`Paramètres`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @type {(inputs: SettingsInputs) => LocalizedString} */
|
|
17
|
+
const tl_settings = en_settings;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* | output |
|
|
21
|
+
* | --- |
|
|
22
|
+
* | "Settings" |
|
|
23
|
+
*
|
|
24
|
+
* @param {SettingsInputs} inputs
|
|
25
|
+
* @param {{ locale?: "en" | "fr" | "tl" }} options
|
|
26
|
+
* @returns {LocalizedString}
|
|
27
|
+
*/
|
|
28
|
+
export const settings = /** @type {((inputs?: SettingsInputs, options?: { locale?: "en" | "fr" | "tl" }) => LocalizedString) & import('../runtime.js').MessageMetadata<SettingsInputs, { locale?: "en" | "fr" | "tl" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
29
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
30
|
+
if (locale === "fr") return fr_settings(inputs)
|
|
31
|
+
if (locale === "tl") return tl_settings(inputs)
|
|
32
|
+
return en_settings(inputs)
|
|
33
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/lib/external/paraglide/messages.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {"year" | "years" | "quarter" | "quarters" | "month" | "months" | "week" | "weeks" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds"} RelativeTimeFormatUnit
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @param {import("./runtime.js").Locale} locale
|
|
6
|
+
* @param {unknown} input
|
|
7
|
+
* @param {Intl.PluralRulesOptions} [options]
|
|
8
|
+
* @returns {string}
|
|
9
|
+
*/
|
|
10
|
+
export function plural(locale: import("./runtime.js").Locale, input: unknown, options?: Intl.PluralRulesOptions): string;
|
|
11
|
+
/**
|
|
12
|
+
* @param {import("./runtime.js").Locale} locale
|
|
13
|
+
* @param {unknown} input
|
|
14
|
+
* @param {Intl.NumberFormatOptions} [options]
|
|
15
|
+
* @returns {string}
|
|
16
|
+
*/
|
|
17
|
+
export function number(locale: import("./runtime.js").Locale, input: unknown, options?: Intl.NumberFormatOptions): string;
|
|
18
|
+
/**
|
|
19
|
+
* @param {import("./runtime.js").Locale} locale
|
|
20
|
+
* @param {unknown} input
|
|
21
|
+
* @param {Intl.DateTimeFormatOptions} [options]
|
|
22
|
+
* @returns {string}
|
|
23
|
+
*/
|
|
24
|
+
export function datetime(locale: import("./runtime.js").Locale, input: unknown, options?: Intl.DateTimeFormatOptions): string;
|
|
25
|
+
/**
|
|
26
|
+
* @param {import("./runtime.js").Locale} locale
|
|
27
|
+
* @param {unknown} input
|
|
28
|
+
* @param {Intl.RelativeTimeFormatOptions & { unit: RelativeTimeFormatUnit }} options
|
|
29
|
+
* @returns {string}
|
|
30
|
+
*/
|
|
31
|
+
export function relativetime(locale: import("./runtime.js").Locale, input: unknown, options: Intl.RelativeTimeFormatOptions & {
|
|
32
|
+
unit: RelativeTimeFormatUnit;
|
|
33
|
+
}): string;
|
|
34
|
+
export type RelativeTimeFormatUnit = "year" | "years" | "quarter" | "quarters" | "month" | "months" | "week" | "weeks" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds";
|
|
35
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/lib/external/paraglide/registry.js"],"names":[],"mappings":"AAEA;;GAEG;AAEH;;;;;GAKG;AACH,+BALW,OAAO,cAAc,EAAE,MAAM,SAC7B,OAAO,YACP,IAAI,CAAC,kBAAkB,GACrB,MAAM,CAIlB;AAED;;;;;GAKG;AACH,+BALW,OAAO,cAAc,EAAE,MAAM,SAC7B,OAAO,YACP,IAAI,CAAC,mBAAmB,GACtB,MAAM,CAIlB;AAED;;;;;GAKG;AACH,iCALW,OAAO,cAAc,EAAE,MAAM,SAC7B,OAAO,YACP,IAAI,CAAC,qBAAqB,GACxB,MAAM,CAIlB;AAED;;;;;GAKG;AACH,qCALW,OAAO,cAAc,EAAE,MAAM,SAC7B,OAAO,WACP,IAAI,CAAC,yBAAyB,GAAG;IAAE,IAAI,EAAE,sBAAsB,CAAA;CAAE,GAC/D,MAAM,CAKlB;qCA1CY,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @typedef {"year" | "years" | "quarter" | "quarters" | "month" | "months" | "week" | "weeks" | "day" | "days" | "hour" | "hours" | "minute" | "minutes" | "second" | "seconds"} RelativeTimeFormatUnit
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @param {import("./runtime.js").Locale} locale
|
|
9
|
+
* @param {unknown} input
|
|
10
|
+
* @param {Intl.PluralRulesOptions} [options]
|
|
11
|
+
* @returns {string}
|
|
12
|
+
*/
|
|
13
|
+
export function plural(locale, input, options) {
|
|
14
|
+
return new Intl.PluralRules(locale, options).select(Number(input))
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @param {import("./runtime.js").Locale} locale
|
|
19
|
+
* @param {unknown} input
|
|
20
|
+
* @param {Intl.NumberFormatOptions} [options]
|
|
21
|
+
* @returns {string}
|
|
22
|
+
*/
|
|
23
|
+
export function number(locale, input, options) {
|
|
24
|
+
return new Intl.NumberFormat(locale, options).format(Number(input))
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @param {import("./runtime.js").Locale} locale
|
|
29
|
+
* @param {unknown} input
|
|
30
|
+
* @param {Intl.DateTimeFormatOptions} [options]
|
|
31
|
+
* @returns {string}
|
|
32
|
+
*/
|
|
33
|
+
export function datetime(locale, input, options) {
|
|
34
|
+
return new Intl.DateTimeFormat(locale, options).format(new Date(/** @type {string} */ (input)))
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @param {import("./runtime.js").Locale} locale
|
|
39
|
+
* @param {unknown} input
|
|
40
|
+
* @param {Intl.RelativeTimeFormatOptions & { unit: RelativeTimeFormatUnit }} options
|
|
41
|
+
* @returns {string}
|
|
42
|
+
*/
|
|
43
|
+
export function relativetime(locale, input, options) {
|
|
44
|
+
const { unit, ...intlOptions } = options;
|
|
45
|
+
return new Intl.RelativeTimeFormat(locale, intlOptions).format(Number(input), unit);
|
|
46
|
+
};
|