@mpgd/i18n 0.1.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/LICENSE +21 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +36 -0
- package/dist/paraglide/README.md +162 -0
- package/dist/paraglide/messages/_index.d.ts +55 -0
- package/dist/paraglide/messages/_index.js +56 -0
- package/dist/paraglide/messages/action_interstitial_ads.d.ts +16 -0
- package/dist/paraglide/messages/action_interstitial_ads.js +29 -0
- package/dist/paraglide/messages/action_leaderboard.d.ts +16 -0
- package/dist/paraglide/messages/action_leaderboard.js +29 -0
- package/dist/paraglide/messages/action_localization.d.ts +16 -0
- package/dist/paraglide/messages/action_localization.js +29 -0
- package/dist/paraglide/messages/action_purchases.d.ts +16 -0
- package/dist/paraglide/messages/action_purchases.js +29 -0
- package/dist/paraglide/messages/action_reward_ads.d.ts +16 -0
- package/dist/paraglide/messages/action_reward_ads.js +29 -0
- package/dist/paraglide/messages/app_title.d.ts +16 -0
- package/dist/paraglide/messages/app_title.js +29 -0
- package/dist/paraglide/messages/availability_off.d.ts +16 -0
- package/dist/paraglide/messages/availability_off.js +29 -0
- package/dist/paraglide/messages/availability_on.d.ts +16 -0
- package/dist/paraglide/messages/availability_on.js +29 -0
- package/dist/paraglide/messages/availability_unsupported.d.ts +16 -0
- package/dist/paraglide/messages/availability_unsupported.js +29 -0
- package/dist/paraglide/messages/cap_iap.d.ts +16 -0
- package/dist/paraglide/messages/cap_iap.js +29 -0
- package/dist/paraglide/messages/cap_leaderboard.d.ts +16 -0
- package/dist/paraglide/messages/cap_leaderboard.js +29 -0
- package/dist/paraglide/messages/cap_localization.d.ts +16 -0
- package/dist/paraglide/messages/cap_localization.js +29 -0
- package/dist/paraglide/messages/cap_rewarded_ads.d.ts +16 -0
- package/dist/paraglide/messages/cap_rewarded_ads.js +29 -0
- package/dist/paraglide/messages/cap_save.d.ts +16 -0
- package/dist/paraglide/messages/cap_save.js +29 -0
- package/dist/paraglide/messages/effective_config_summary.d.ts +20 -0
- package/dist/paraglide/messages/effective_config_summary.js +29 -0
- package/dist/paraglide/messages/feature_target_disabled.d.ts +18 -0
- package/dist/paraglide/messages/feature_target_disabled.js +29 -0
- package/dist/paraglide/messages/feature_unavailable.d.ts +18 -0
- package/dist/paraglide/messages/feature_unavailable.js +29 -0
- package/dist/paraglide/messages/feature_unsupported.d.ts +18 -0
- package/dist/paraglide/messages/feature_unsupported.js +29 -0
- package/dist/paraglide/messages/leaderboard_action.d.ts +16 -0
- package/dist/paraglide/messages/leaderboard_action.js +29 -0
- package/dist/paraglide/messages/leaderboard_action_unavailable.d.ts +16 -0
- package/dist/paraglide/messages/leaderboard_action_unavailable.js +29 -0
- package/dist/paraglide/messages/leaderboard_opened.d.ts +16 -0
- package/dist/paraglide/messages/leaderboard_opened.js +29 -0
- package/dist/paraglide/messages/leaderboard_unavailable.d.ts +16 -0
- package/dist/paraglide/messages/leaderboard_unavailable.js +29 -0
- package/dist/paraglide/messages/loading_player.d.ts +16 -0
- package/dist/paraglide/messages/loading_player.js +29 -0
- package/dist/paraglide/messages/mock_only.d.ts +16 -0
- package/dist/paraglide/messages/mock_only.js +29 -0
- package/dist/paraglide/messages/opening_purchase.d.ts +16 -0
- package/dist/paraglide/messages/opening_purchase.js +29 -0
- package/dist/paraglide/messages/package.json +4 -0
- package/dist/paraglide/messages/play_again.d.ts +16 -0
- package/dist/paraglide/messages/play_again.js +29 -0
- package/dist/paraglide/messages/player.d.ts +18 -0
- package/dist/paraglide/messages/player.js +29 -0
- package/dist/paraglide/messages/preparing_demo.d.ts +16 -0
- package/dist/paraglide/messages/preparing_demo.js +29 -0
- package/dist/paraglide/messages/purchase_action.d.ts +16 -0
- package/dist/paraglide/messages/purchase_action.js +29 -0
- package/dist/paraglide/messages/purchase_completed.d.ts +16 -0
- package/dist/paraglide/messages/purchase_completed.js +29 -0
- package/dist/paraglide/messages/purchase_status.d.ts +18 -0
- package/dist/paraglide/messages/purchase_status.js +29 -0
- package/dist/paraglide/messages/purchase_unavailable.d.ts +16 -0
- package/dist/paraglide/messages/purchase_unavailable.js +29 -0
- package/dist/paraglide/messages/reward_ad_action.d.ts +16 -0
- package/dist/paraglide/messages/reward_ad_action.js +29 -0
- package/dist/paraglide/messages/reward_ad_unavailable.d.ts +16 -0
- package/dist/paraglide/messages/reward_ad_unavailable.js +29 -0
- package/dist/paraglide/messages/reward_granted.d.ts +16 -0
- package/dist/paraglide/messages/reward_granted.js +29 -0
- package/dist/paraglide/messages/reward_unavailable.d.ts +18 -0
- package/dist/paraglide/messages/reward_unavailable.js +29 -0
- package/dist/paraglide/messages/save_summary.d.ts +19 -0
- package/dist/paraglide/messages/save_summary.js +29 -0
- package/dist/paraglide/messages/saved.d.ts +16 -0
- package/dist/paraglide/messages/saved.js +29 -0
- package/dist/paraglide/messages/saved_and_submitted.d.ts +16 -0
- package/dist/paraglide/messages/saved_and_submitted.js +29 -0
- package/dist/paraglide/messages/saving_result.d.ts +16 -0
- package/dist/paraglide/messages/saving_result.js +29 -0
- package/dist/paraglide/messages/score.d.ts +18 -0
- package/dist/paraglide/messages/score.js +29 -0
- package/dist/paraglide/messages/sdk_summary.d.ts +18 -0
- package/dist/paraglide/messages/sdk_summary.js +29 -0
- package/dist/paraglide/messages/showing_rewarded_ad.d.ts +16 -0
- package/dist/paraglide/messages/showing_rewarded_ad.js +29 -0
- package/dist/paraglide/messages/status_cleared.d.ts +16 -0
- package/dist/paraglide/messages/status_cleared.js +29 -0
- package/dist/paraglide/messages/status_try_again.d.ts +16 -0
- package/dist/paraglide/messages/status_try_again.js +29 -0
- package/dist/paraglide/messages/tap_to_start.d.ts +16 -0
- package/dist/paraglide/messages/tap_to_start.js +29 -0
- package/dist/paraglide/messages/target.d.ts +18 -0
- package/dist/paraglide/messages/target.js +29 -0
- package/dist/paraglide/messages/target_availability_summary.d.ts +19 -0
- package/dist/paraglide/messages/target_availability_summary.js +29 -0
- package/dist/paraglide/messages/target_config_unavailable.d.ts +16 -0
- package/dist/paraglide/messages/target_config_unavailable.js +29 -0
- package/dist/paraglide/messages/target_feature_iap.d.ts +16 -0
- package/dist/paraglide/messages/target_feature_iap.js +29 -0
- package/dist/paraglide/messages/target_feature_interstitial_ads.d.ts +16 -0
- package/dist/paraglide/messages/target_feature_interstitial_ads.js +29 -0
- package/dist/paraglide/messages/target_feature_leaderboard.d.ts +16 -0
- package/dist/paraglide/messages/target_feature_leaderboard.js +29 -0
- package/dist/paraglide/messages/target_feature_localization.d.ts +16 -0
- package/dist/paraglide/messages/target_feature_localization.js +29 -0
- package/dist/paraglide/messages/target_feature_rewarded_ads.d.ts +16 -0
- package/dist/paraglide/messages/target_feature_rewarded_ads.js +29 -0
- package/dist/paraglide/messages.d.ts +2 -0
- package/dist/paraglide/messages.js +4 -0
- package/dist/paraglide/registry.d.ts +34 -0
- package/dist/paraglide/registry.js +46 -0
- package/dist/paraglide/runtime.d.ts +758 -0
- package/dist/paraglide/runtime.js +1852 -0
- package/dist/paraglide/server.d.ts +96 -0
- package/dist/paraglide/server.js +282 -0
- package/dist/paraglideAdapter.d.ts +86 -0
- package/dist/paraglideAdapter.js +2 -0
- package/messages/en.json +57 -0
- package/messages/ko.json +57 -0
- package/package.json +69 -0
- package/project.inlang/settings.json +10 -0
|
@@ -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 {{}} Tap_To_StartInputs */
|
|
7
|
+
|
|
8
|
+
const en_tap_to_start = /** @type {(inputs: Tap_To_StartInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Tap or press Enter`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ko_tap_to_start = /** @type {(inputs: Tap_To_StartInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`탭하거나 Enter`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Tap or press Enter" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Tap_To_StartInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const tap_to_start = /** @type {((inputs?: Tap_To_StartInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Tap_To_StartInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_tap_to_start(inputs)
|
|
28
|
+
return ko_tap_to_start(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Target: {target}" |
|
|
5
|
+
*
|
|
6
|
+
* @param {TargetInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const target: ((inputs: TargetInputs, options?: {
|
|
11
|
+
locale?: "en" | "ko";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<TargetInputs, {
|
|
13
|
+
locale?: "en" | "ko";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type TargetInputs = {
|
|
17
|
+
target: NonNullable<unknown>;
|
|
18
|
+
};
|
|
@@ -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 {{ target: NonNullable<unknown> }} TargetInputs */
|
|
7
|
+
|
|
8
|
+
const en_target = /** @type {(inputs: TargetInputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Target: ${i?.target}`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ko_target = /** @type {(inputs: TargetInputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`타깃: ${i?.target}`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Target: {target}" |
|
|
20
|
+
*
|
|
21
|
+
* @param {TargetInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const target = /** @type {((inputs: TargetInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<TargetInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_target(inputs)
|
|
28
|
+
return ko_target(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Target {target}: {summary}" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Target_Availability_SummaryInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const target_availability_summary: ((inputs: Target_Availability_SummaryInputs, options?: {
|
|
11
|
+
locale?: "en" | "ko";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Target_Availability_SummaryInputs, {
|
|
13
|
+
locale?: "en" | "ko";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Target_Availability_SummaryInputs = {
|
|
17
|
+
target: NonNullable<unknown>;
|
|
18
|
+
summary: NonNullable<unknown>;
|
|
19
|
+
};
|
|
@@ -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 {{ target: NonNullable<unknown>, summary: NonNullable<unknown> }} Target_Availability_SummaryInputs */
|
|
7
|
+
|
|
8
|
+
const en_target_availability_summary = /** @type {(inputs: Target_Availability_SummaryInputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Target ${i?.target}: ${i?.summary}`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ko_target_availability_summary = /** @type {(inputs: Target_Availability_SummaryInputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`타깃 ${i?.target}: ${i?.summary}`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Target {target}: {summary}" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Target_Availability_SummaryInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const target_availability_summary = /** @type {((inputs: Target_Availability_SummaryInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Target_Availability_SummaryInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_target_availability_summary(inputs)
|
|
28
|
+
return ko_target_availability_summary(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Target config: unavailable" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Target_Config_UnavailableInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const target_config_unavailable: ((inputs?: Target_Config_UnavailableInputs, options?: {
|
|
11
|
+
locale?: "en" | "ko";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Target_Config_UnavailableInputs, {
|
|
13
|
+
locale?: "en" | "ko";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Target_Config_UnavailableInputs = {};
|
|
@@ -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 {{}} Target_Config_UnavailableInputs */
|
|
7
|
+
|
|
8
|
+
const en_target_config_unavailable = /** @type {(inputs: Target_Config_UnavailableInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Target config: unavailable`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ko_target_config_unavailable = /** @type {(inputs: Target_Config_UnavailableInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`타깃 설정: 없음`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Target config: unavailable" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Target_Config_UnavailableInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const target_config_unavailable = /** @type {((inputs?: Target_Config_UnavailableInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Target_Config_UnavailableInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_target_config_unavailable(inputs)
|
|
28
|
+
return ko_target_config_unavailable(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "IAP" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Target_Feature_IapInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const target_feature_iap: ((inputs?: Target_Feature_IapInputs, options?: {
|
|
11
|
+
locale?: "en" | "ko";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Target_Feature_IapInputs, {
|
|
13
|
+
locale?: "en" | "ko";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Target_Feature_IapInputs = {};
|
|
@@ -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 {{}} Target_Feature_IapInputs */
|
|
7
|
+
|
|
8
|
+
const en_target_feature_iap = /** @type {(inputs: Target_Feature_IapInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`IAP`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ko_target_feature_iap = /** @type {(inputs: Target_Feature_IapInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`결제`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "IAP" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Target_Feature_IapInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const target_feature_iap = /** @type {((inputs?: Target_Feature_IapInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Target_Feature_IapInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_target_feature_iap(inputs)
|
|
28
|
+
return ko_target_feature_iap(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Inter" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Target_Feature_Interstitial_AdsInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const target_feature_interstitial_ads: ((inputs?: Target_Feature_Interstitial_AdsInputs, options?: {
|
|
11
|
+
locale?: "en" | "ko";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Target_Feature_Interstitial_AdsInputs, {
|
|
13
|
+
locale?: "en" | "ko";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Target_Feature_Interstitial_AdsInputs = {};
|
|
@@ -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 {{}} Target_Feature_Interstitial_AdsInputs */
|
|
7
|
+
|
|
8
|
+
const en_target_feature_interstitial_ads = /** @type {(inputs: Target_Feature_Interstitial_AdsInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Inter`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ko_target_feature_interstitial_ads = /** @type {(inputs: Target_Feature_Interstitial_AdsInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`전면광고`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Inter" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Target_Feature_Interstitial_AdsInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const target_feature_interstitial_ads = /** @type {((inputs?: Target_Feature_Interstitial_AdsInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Target_Feature_Interstitial_AdsInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_target_feature_interstitial_ads(inputs)
|
|
28
|
+
return ko_target_feature_interstitial_ads(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Board" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Target_Feature_LeaderboardInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const target_feature_leaderboard: ((inputs?: Target_Feature_LeaderboardInputs, options?: {
|
|
11
|
+
locale?: "en" | "ko";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Target_Feature_LeaderboardInputs, {
|
|
13
|
+
locale?: "en" | "ko";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Target_Feature_LeaderboardInputs = {};
|
|
@@ -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 {{}} Target_Feature_LeaderboardInputs */
|
|
7
|
+
|
|
8
|
+
const en_target_feature_leaderboard = /** @type {(inputs: Target_Feature_LeaderboardInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Board`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ko_target_feature_leaderboard = /** @type {(inputs: Target_Feature_LeaderboardInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`랭킹`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Board" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Target_Feature_LeaderboardInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const target_feature_leaderboard = /** @type {((inputs?: Target_Feature_LeaderboardInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Target_Feature_LeaderboardInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_target_feature_leaderboard(inputs)
|
|
28
|
+
return ko_target_feature_leaderboard(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Localization" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Target_Feature_LocalizationInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const target_feature_localization: ((inputs?: Target_Feature_LocalizationInputs, options?: {
|
|
11
|
+
locale?: "en" | "ko";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Target_Feature_LocalizationInputs, {
|
|
13
|
+
locale?: "en" | "ko";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Target_Feature_LocalizationInputs = {};
|
|
@@ -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 {{}} Target_Feature_LocalizationInputs */
|
|
7
|
+
|
|
8
|
+
const en_target_feature_localization = /** @type {(inputs: Target_Feature_LocalizationInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Localization`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ko_target_feature_localization = /** @type {(inputs: Target_Feature_LocalizationInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`다국어`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Localization" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Target_Feature_LocalizationInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const target_feature_localization = /** @type {((inputs?: Target_Feature_LocalizationInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Target_Feature_LocalizationInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_target_feature_localization(inputs)
|
|
28
|
+
return ko_target_feature_localization(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Reward" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Target_Feature_Rewarded_AdsInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const target_feature_rewarded_ads: ((inputs?: Target_Feature_Rewarded_AdsInputs, options?: {
|
|
11
|
+
locale?: "en" | "ko";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Target_Feature_Rewarded_AdsInputs, {
|
|
13
|
+
locale?: "en" | "ko";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Target_Feature_Rewarded_AdsInputs = {};
|
|
@@ -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 {{}} Target_Feature_Rewarded_AdsInputs */
|
|
7
|
+
|
|
8
|
+
const en_target_feature_rewarded_ads = /** @type {(inputs: Target_Feature_Rewarded_AdsInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Reward`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const ko_target_feature_rewarded_ads = /** @type {(inputs: Target_Feature_Rewarded_AdsInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`보상광고`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Reward" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Target_Feature_Rewarded_AdsInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "ko" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const target_feature_rewarded_ads = /** @type {((inputs?: Target_Feature_Rewarded_AdsInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Target_Feature_Rewarded_AdsInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_target_feature_rewarded_ads(inputs)
|
|
28
|
+
return ko_target_feature_rewarded_ads(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
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";
|
|
@@ -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
|
+
};
|