@kuncat/avoidant 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/dist/components/AvoidantGame.svelte +1 -1
- package/dist/paraglide/messages/_index.d.ts +42 -0
- package/dist/paraglide/messages/_index.js +43 -0
- package/dist/paraglide/messages/action_back.d.ts +16 -0
- package/dist/paraglide/messages/action_back.js +29 -0
- package/dist/paraglide/messages/action_copy.d.ts +16 -0
- package/dist/paraglide/messages/action_copy.js +29 -0
- package/dist/paraglide/messages/action_exit.d.ts +16 -0
- package/dist/paraglide/messages/action_exit.js +29 -0
- package/dist/paraglide/messages/action_invite.d.ts +16 -0
- package/dist/paraglide/messages/action_invite.js +29 -0
- package/dist/paraglide/messages/action_join.d.ts +16 -0
- package/dist/paraglide/messages/action_join.js +29 -0
- package/dist/paraglide/messages/action_join_game.d.ts +16 -0
- package/dist/paraglide/messages/action_join_game.js +29 -0
- package/dist/paraglide/messages/action_new_game.d.ts +16 -0
- package/dist/paraglide/messages/action_new_game.js +29 -0
- package/dist/paraglide/messages/action_start.d.ts +16 -0
- package/dist/paraglide/messages/action_start.js +29 -0
- package/dist/paraglide/messages/aria_close_invitation.d.ts +16 -0
- package/dist/paraglide/messages/aria_close_invitation.js +29 -0
- package/dist/paraglide/messages/aria_score_summary.d.ts +16 -0
- package/dist/paraglide/messages/aria_score_summary.js +29 -0
- package/dist/paraglide/messages/cells_count.d.ts +19 -0
- package/dist/paraglide/messages/cells_count.js +33 -0
- package/dist/paraglide/messages/default_player_name.d.ts +16 -0
- package/dist/paraglide/messages/default_player_name.js +29 -0
- package/dist/paraglide/messages/error_join_connect_failed.d.ts +16 -0
- package/dist/paraglide/messages/error_join_connect_failed.js +29 -0
- package/dist/paraglide/messages/error_join_failed.d.ts +16 -0
- package/dist/paraglide/messages/error_join_failed.js +29 -0
- package/dist/paraglide/messages/error_join_ticket_invalid.d.ts +16 -0
- package/dist/paraglide/messages/error_join_ticket_invalid.js +29 -0
- package/dist/paraglide/messages/error_join_ticket_required.d.ts +16 -0
- package/dist/paraglide/messages/error_join_ticket_required.js +29 -0
- package/dist/paraglide/messages/field_invitation_url.d.ts +16 -0
- package/dist/paraglide/messages/field_invitation_url.js +29 -0
- package/dist/paraglide/messages/field_map_size.d.ts +16 -0
- package/dist/paraglide/messages/field_map_size.js +29 -0
- package/dist/paraglide/messages/field_player_name.d.ts +16 -0
- package/dist/paraglide/messages/field_player_name.js +29 -0
- package/dist/paraglide/messages/field_relay_servers.d.ts +16 -0
- package/dist/paraglide/messages/field_relay_servers.js +29 -0
- package/dist/paraglide/messages/field_seed.d.ts +16 -0
- package/dist/paraglide/messages/field_seed.js +29 -0
- package/dist/paraglide/messages/field_size.d.ts +16 -0
- package/dist/paraglide/messages/field_size.js +29 -0
- package/dist/paraglide/messages/field_ticket_or_invitation_url.d.ts +16 -0
- package/dist/paraglide/messages/field_ticket_or_invitation_url.js +29 -0
- package/dist/paraglide/messages/label_advanced_settings.d.ts +16 -0
- package/dist/paraglide/messages/label_advanced_settings.js +29 -0
- package/dist/paraglide/messages/label_players.d.ts +19 -0
- package/dist/paraglide/messages/label_players.js +35 -0
- package/dist/paraglide/messages/label_safe_cells_explored.d.ts +19 -0
- package/dist/paraglide/messages/label_safe_cells_explored.js +35 -0
- package/dist/paraglide/messages/label_safe_cells_remaining.d.ts +19 -0
- package/dist/paraglide/messages/label_safe_cells_remaining.js +35 -0
- package/dist/paraglide/messages/label_score.d.ts +16 -0
- package/dist/paraglide/messages/label_score.js +29 -0
- package/dist/paraglide/messages/label_streak.d.ts +16 -0
- package/dist/paraglide/messages/label_streak.js +29 -0
- package/dist/paraglide/messages/label_voids_discovered.d.ts +16 -0
- package/dist/paraglide/messages/label_voids_discovered.js +29 -0
- package/dist/paraglide/messages/preset_custom.d.ts +16 -0
- package/dist/paraglide/messages/preset_custom.js +29 -0
- package/dist/paraglide/messages/preset_large.d.ts +16 -0
- package/dist/paraglide/messages/preset_large.js +29 -0
- package/dist/paraglide/messages/preset_medium.d.ts +16 -0
- package/dist/paraglide/messages/preset_medium.js +29 -0
- package/dist/paraglide/messages/preset_small.d.ts +16 -0
- package/dist/paraglide/messages/preset_small.js +29 -0
- package/dist/paraglide/messages/status_generating_map.d.ts +16 -0
- package/dist/paraglide/messages/status_generating_map.js +29 -0
- package/dist/paraglide/messages/status_initialization_failed.d.ts +16 -0
- package/dist/paraglide/messages/status_initialization_failed.js +29 -0
- package/dist/paraglide/messages/status_joining_game.d.ts +16 -0
- package/dist/paraglide/messages/status_joining_game.js +29 -0
- package/dist/paraglide/messages/status_loading.d.ts +16 -0
- package/dist/paraglide/messages/status_loading.js +29 -0
- package/dist/paraglide/messages/status_preparing.d.ts +16 -0
- package/dist/paraglide/messages/status_preparing.js +29 -0
- package/dist/paraglide/messages/text_avoided.d.ts +16 -0
- package/dist/paraglide/messages/text_avoided.js +29 -0
- package/dist/paraglide/messages/text_relay_servers_hint.d.ts +16 -0
- package/dist/paraglide/messages/text_relay_servers_hint.js +29 -0
- package/dist/paraglide/messages.d.ts +2 -0
- package/dist/paraglide/messages.js +4 -0
- package/dist/paraglide/registry.d.ts +21 -0
- package/dist/paraglide/registry.js +31 -0
- package/dist/paraglide/runtime.d.ts +758 -0
- package/dist/paraglide/runtime.js +1825 -0
- package/dist/paraglide/server.d.ts +96 -0
- package/dist/paraglide/server.js +277 -0
- package/dist/styles/global.css +4 -0
- package/dist/wasm/package.json +1 -3
- package/package.json +4 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Status_LoadingInputs */
|
|
7
|
+
|
|
8
|
+
const en_status_loading = /** @type {(inputs: Status_LoadingInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Loading...`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_status_loading = /** @type {(inputs: Status_LoadingInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`লোড হচ্ছে...`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Loading..." |
|
|
20
|
+
*
|
|
21
|
+
* @param {Status_LoadingInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const status_loading = /** @type {((inputs?: Status_LoadingInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Status_LoadingInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_status_loading(inputs)
|
|
28
|
+
return bn_status_loading(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Preparing..." |
|
|
5
|
+
*
|
|
6
|
+
* @param {Status_PreparingInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const status_preparing: ((inputs?: Status_PreparingInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Status_PreparingInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Status_PreparingInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Status_PreparingInputs */
|
|
7
|
+
|
|
8
|
+
const en_status_preparing = /** @type {(inputs: Status_PreparingInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Preparing...`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_status_preparing = /** @type {(inputs: Status_PreparingInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`প্রস্তুত হচ্ছে...`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Preparing..." |
|
|
20
|
+
*
|
|
21
|
+
* @param {Status_PreparingInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const status_preparing = /** @type {((inputs?: Status_PreparingInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Status_PreparingInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_status_preparing(inputs)
|
|
28
|
+
return bn_status_preparing(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Avoided!" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Text_AvoidedInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const text_avoided: ((inputs?: Text_AvoidedInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Text_AvoidedInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Text_AvoidedInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Text_AvoidedInputs */
|
|
7
|
+
|
|
8
|
+
const en_text_avoided = /** @type {(inputs: Text_AvoidedInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Avoided!`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_text_avoided = /** @type {(inputs: Text_AvoidedInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`এড়ানো গেছে!`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Avoided!" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Text_AvoidedInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const text_avoided = /** @type {((inputs?: Text_AvoidedInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Text_AvoidedInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_text_avoided(inputs)
|
|
28
|
+
return bn_text_avoided(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Enter one relay server URL per line." |
|
|
5
|
+
*
|
|
6
|
+
* @param {Text_Relay_Servers_HintInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const text_relay_servers_hint: ((inputs?: Text_Relay_Servers_HintInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Text_Relay_Servers_HintInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Text_Relay_Servers_HintInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Text_Relay_Servers_HintInputs */
|
|
7
|
+
|
|
8
|
+
const en_text_relay_servers_hint = /** @type {(inputs: Text_Relay_Servers_HintInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Enter one relay server URL per line.`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_text_relay_servers_hint = /** @type {(inputs: Text_Relay_Servers_HintInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`প্রতি লাইনে একটি রিলে সার্ভার URL লিখুন।`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Enter one relay server URL per line." |
|
|
20
|
+
*
|
|
21
|
+
* @param {Text_Relay_Servers_HintInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const text_relay_servers_hint = /** @type {((inputs?: Text_Relay_Servers_HintInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Text_Relay_Servers_HintInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_text_relay_servers_hint(inputs)
|
|
28
|
+
return bn_text_relay_servers_hint(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {import("./runtime.js").Locale} locale
|
|
3
|
+
* @param {unknown} input
|
|
4
|
+
* @param {Intl.PluralRulesOptions} [options]
|
|
5
|
+
* @returns {string}
|
|
6
|
+
*/
|
|
7
|
+
export function plural(locale: import("./runtime.js").Locale, input: unknown, options?: Intl.PluralRulesOptions): string;
|
|
8
|
+
/**
|
|
9
|
+
* @param {import("./runtime.js").Locale} locale
|
|
10
|
+
* @param {unknown} input
|
|
11
|
+
* @param {Intl.NumberFormatOptions} [options]
|
|
12
|
+
* @returns {string}
|
|
13
|
+
*/
|
|
14
|
+
export function number(locale: import("./runtime.js").Locale, input: unknown, options?: Intl.NumberFormatOptions): string;
|
|
15
|
+
/**
|
|
16
|
+
* @param {import("./runtime.js").Locale} locale
|
|
17
|
+
* @param {unknown} input
|
|
18
|
+
* @param {Intl.DateTimeFormatOptions} [options]
|
|
19
|
+
* @returns {string}
|
|
20
|
+
*/
|
|
21
|
+
export function datetime(locale: import("./runtime.js").Locale, input: unknown, options?: Intl.DateTimeFormatOptions): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {import("./runtime.js").Locale} locale
|
|
5
|
+
* @param {unknown} input
|
|
6
|
+
* @param {Intl.PluralRulesOptions} [options]
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
export function plural(locale, input, options) {
|
|
10
|
+
return new Intl.PluralRules(locale, options).select(Number(input))
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @param {import("./runtime.js").Locale} locale
|
|
15
|
+
* @param {unknown} input
|
|
16
|
+
* @param {Intl.NumberFormatOptions} [options]
|
|
17
|
+
* @returns {string}
|
|
18
|
+
*/
|
|
19
|
+
export function number(locale, input, options) {
|
|
20
|
+
return new Intl.NumberFormat(locale, options).format(Number(input))
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @param {import("./runtime.js").Locale} locale
|
|
25
|
+
* @param {unknown} input
|
|
26
|
+
* @param {Intl.DateTimeFormatOptions} [options]
|
|
27
|
+
* @returns {string}
|
|
28
|
+
*/
|
|
29
|
+
export function datetime(locale, input, options) {
|
|
30
|
+
return new Intl.DateTimeFormat(locale, options).format(new Date(/** @type {string} */ (input)))
|
|
31
|
+
};
|