@mpgd/i18n 0.5.7 → 0.6.1
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/index.d.ts +6 -0
- package/dist/index.js +18 -9
- package/dist/paraglide/messages/_index.d.ts +59 -58
- package/dist/paraglide/messages/_index.js +6 -6
- package/dist/paraglide/messages/action_interstitial_ads.d.ts +4 -4
- package/dist/paraglide/messages/action_interstitial_ads.js +2 -2
- package/dist/paraglide/messages/action_leaderboard.d.ts +4 -4
- package/dist/paraglide/messages/action_leaderboard.js +2 -2
- package/dist/paraglide/messages/action_localization.d.ts +4 -4
- package/dist/paraglide/messages/action_localization.js +2 -2
- package/dist/paraglide/messages/action_purchases.d.ts +4 -4
- package/dist/paraglide/messages/action_purchases.js +2 -2
- package/dist/paraglide/messages/action_reward_ads.d.ts +4 -4
- package/dist/paraglide/messages/action_reward_ads.js +2 -2
- package/dist/paraglide/messages/app_title.d.ts +4 -4
- package/dist/paraglide/messages/app_title.js +2 -2
- package/dist/paraglide/messages/availability_off.d.ts +4 -4
- package/dist/paraglide/messages/availability_off.js +2 -2
- package/dist/paraglide/messages/availability_on.d.ts +4 -4
- package/dist/paraglide/messages/availability_on.js +2 -2
- package/dist/paraglide/messages/availability_unsupported.d.ts +4 -4
- package/dist/paraglide/messages/availability_unsupported.js +2 -2
- package/dist/paraglide/messages/cap_iap.d.ts +4 -4
- package/dist/paraglide/messages/cap_iap.js +2 -2
- package/dist/paraglide/messages/cap_leaderboard.d.ts +4 -4
- package/dist/paraglide/messages/cap_leaderboard.js +2 -2
- package/dist/paraglide/messages/cap_localization.d.ts +4 -4
- package/dist/paraglide/messages/cap_localization.js +2 -2
- package/dist/paraglide/messages/cap_rewarded_ads.d.ts +4 -4
- package/dist/paraglide/messages/cap_rewarded_ads.js +2 -2
- package/dist/paraglide/messages/cap_save.d.ts +4 -4
- package/dist/paraglide/messages/cap_save.js +2 -2
- package/dist/paraglide/messages/effective_config_summary.d.ts +8 -8
- package/dist/paraglide/messages/effective_config_summary.js +2 -2
- package/dist/paraglide/messages/feature_target_disabled.d.ts +6 -6
- package/dist/paraglide/messages/feature_target_disabled.js +2 -2
- package/dist/paraglide/messages/feature_unavailable.d.ts +6 -6
- package/dist/paraglide/messages/feature_unavailable.js +2 -2
- package/dist/paraglide/messages/feature_unsupported.d.ts +6 -6
- package/dist/paraglide/messages/feature_unsupported.js +2 -2
- package/dist/paraglide/messages/leaderboard_action.d.ts +4 -4
- package/dist/paraglide/messages/leaderboard_action.js +2 -2
- package/dist/paraglide/messages/leaderboard_action_unavailable.d.ts +4 -4
- package/dist/paraglide/messages/leaderboard_action_unavailable.js +2 -2
- package/dist/paraglide/messages/leaderboard_opened.d.ts +4 -4
- package/dist/paraglide/messages/leaderboard_opened.js +2 -2
- package/dist/paraglide/messages/leaderboard_unavailable.d.ts +4 -4
- package/dist/paraglide/messages/leaderboard_unavailable.js +2 -2
- package/dist/paraglide/messages/loading_player.d.ts +4 -4
- package/dist/paraglide/messages/loading_player.js +2 -2
- package/dist/paraglide/messages/mock_only.d.ts +4 -4
- package/dist/paraglide/messages/mock_only.js +2 -2
- package/dist/paraglide/messages/opening_purchase.d.ts +4 -4
- package/dist/paraglide/messages/opening_purchase.js +2 -2
- package/dist/paraglide/messages/play_again.d.ts +4 -4
- package/dist/paraglide/messages/play_again.js +2 -2
- package/dist/paraglide/messages/player.d.ts +6 -6
- package/dist/paraglide/messages/player.js +2 -2
- package/dist/paraglide/messages/preparing_demo.d.ts +4 -4
- package/dist/paraglide/messages/preparing_demo.js +2 -2
- package/dist/paraglide/messages/purchase_action.d.ts +4 -4
- package/dist/paraglide/messages/purchase_action.js +2 -2
- package/dist/paraglide/messages/purchase_completed.d.ts +4 -4
- package/dist/paraglide/messages/purchase_completed.js +2 -2
- package/dist/paraglide/messages/purchase_status.d.ts +6 -6
- package/dist/paraglide/messages/purchase_status.js +2 -2
- package/dist/paraglide/messages/purchase_unavailable.d.ts +4 -4
- package/dist/paraglide/messages/purchase_unavailable.js +2 -2
- package/dist/paraglide/messages/reward_ad_action.d.ts +4 -4
- package/dist/paraglide/messages/reward_ad_action.js +2 -2
- package/dist/paraglide/messages/reward_ad_unavailable.d.ts +4 -4
- package/dist/paraglide/messages/reward_ad_unavailable.js +2 -2
- package/dist/paraglide/messages/reward_granted.d.ts +4 -4
- package/dist/paraglide/messages/reward_granted.js +2 -2
- package/dist/paraglide/messages/reward_unavailable.d.ts +6 -6
- package/dist/paraglide/messages/reward_unavailable.js +2 -2
- package/dist/paraglide/messages/save_summary.d.ts +7 -7
- package/dist/paraglide/messages/save_summary.js +2 -2
- package/dist/paraglide/messages/saved.d.ts +4 -4
- package/dist/paraglide/messages/saved.js +2 -2
- package/dist/paraglide/messages/saved_and_submitted.d.ts +4 -4
- package/dist/paraglide/messages/saved_and_submitted.js +2 -2
- package/dist/paraglide/messages/saving_result.d.ts +4 -4
- package/dist/paraglide/messages/saving_result.js +2 -2
- package/dist/paraglide/messages/score.d.ts +6 -6
- package/dist/paraglide/messages/score.js +2 -2
- package/dist/paraglide/messages/sdk_summary.d.ts +6 -6
- package/dist/paraglide/messages/sdk_summary.js +2 -2
- package/dist/paraglide/messages/showing_rewarded_ad.d.ts +4 -4
- package/dist/paraglide/messages/showing_rewarded_ad.js +2 -2
- package/dist/paraglide/messages/status_cleared.d.ts +4 -4
- package/dist/paraglide/messages/status_cleared.js +2 -2
- package/dist/paraglide/messages/status_try_again.d.ts +4 -4
- package/dist/paraglide/messages/status_try_again.js +2 -2
- package/dist/paraglide/messages/tap_to_start.d.ts +4 -4
- package/dist/paraglide/messages/tap_to_start.js +2 -2
- package/dist/paraglide/messages/target.d.ts +6 -6
- package/dist/paraglide/messages/target.js +2 -2
- package/dist/paraglide/messages/target_availability_summary.d.ts +7 -7
- package/dist/paraglide/messages/target_availability_summary.js +2 -2
- package/dist/paraglide/messages/target_config_unavailable.d.ts +4 -4
- package/dist/paraglide/messages/target_config_unavailable.js +2 -2
- package/dist/paraglide/messages/target_feature_iap.d.ts +4 -4
- package/dist/paraglide/messages/target_feature_iap.js +2 -2
- package/dist/paraglide/messages/target_feature_interstitial_ads.d.ts +4 -4
- package/dist/paraglide/messages/target_feature_interstitial_ads.js +2 -2
- package/dist/paraglide/messages/target_feature_leaderboard.d.ts +4 -4
- package/dist/paraglide/messages/target_feature_leaderboard.js +2 -2
- package/dist/paraglide/messages/target_feature_localization.d.ts +4 -4
- package/dist/paraglide/messages/target_feature_localization.js +2 -2
- package/dist/paraglide/messages/target_feature_rewarded_ads.d.ts +4 -4
- package/dist/paraglide/messages/target_feature_rewarded_ads.js +2 -2
- package/dist/paraglide/messages/viewport.d.ts +8 -8
- package/dist/paraglide/messages/viewport.js +2 -2
- package/dist/paraglide/messages/viewport_orientation_mismatch.d.ts +7 -7
- package/dist/paraglide/messages/viewport_orientation_mismatch.js +2 -2
- package/dist/paraglide/messages/viewport_orientation_policy.d.ts +6 -6
- package/dist/paraglide/messages/viewport_orientation_policy.js +2 -2
- package/dist/paraglide/messages.d.ts +2 -2
- package/dist/paraglide/registry.d.ts +5 -5
- package/dist/paraglide/runtime.d.ts +548 -283
- package/dist/paraglide/runtime.js +545 -86
- package/dist/paraglide/server.d.ts +1 -1
- package/dist/paraglide/server.js +20 -8
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,14 @@ export interface ResolveTargetMpgdLocaleInput {
|
|
|
8
8
|
readonly preferredLocales?: readonly string[];
|
|
9
9
|
readonly fallbackLocale: MpgdLocale;
|
|
10
10
|
}
|
|
11
|
+
export interface MpgdLocaleEnvironment {
|
|
12
|
+
readonly language?: string;
|
|
13
|
+
readonly languages?: readonly string[];
|
|
14
|
+
}
|
|
11
15
|
export declare function isMpgdLocale(input: string): input is MpgdLocale;
|
|
12
16
|
export declare function normalizeMpgdLocale(input: string): MpgdLocale | null;
|
|
13
17
|
export declare function resolveMpgdLocale(capabilities: Pick<PlatformCapabilities, 'localizedContent'>, preferredLocales?: readonly string[]): MpgdLocale;
|
|
14
18
|
/** Resolves locale policy without assigning defaults to specific platform names. */
|
|
15
19
|
export declare function resolveTargetMpgdLocale(input: ResolveTargetMpgdLocaleInput): MpgdLocale;
|
|
20
|
+
/** Read an ordered, de-duplicated browser or WebView language preference list. */
|
|
21
|
+
export declare function readMpgdPreferredLocales(environment?: MpgdLocaleEnvironment | undefined): readonly string[];
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export function normalizeMpgdLocale(input) {
|
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
|
-
export function resolveMpgdLocale(capabilities, preferredLocales =
|
|
17
|
+
export function resolveMpgdLocale(capabilities, preferredLocales = readMpgdPreferredLocales()) {
|
|
18
18
|
return resolveTargetMpgdLocale({
|
|
19
19
|
capabilities,
|
|
20
20
|
preferredLocales,
|
|
@@ -33,7 +33,7 @@ export function resolveTargetMpgdLocale(input) {
|
|
|
33
33
|
return savedLocale;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
for (const preferredLocale of input.preferredLocales ??
|
|
36
|
+
for (const preferredLocale of input.preferredLocales ?? readMpgdPreferredLocales()) {
|
|
37
37
|
const locale = normalizeMpgdLocale(preferredLocale);
|
|
38
38
|
if (locale !== null) {
|
|
39
39
|
return locale;
|
|
@@ -41,11 +41,20 @@ export function resolveTargetMpgdLocale(input) {
|
|
|
41
41
|
}
|
|
42
42
|
return fallbackLocale;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
/** Read an ordered, de-duplicated browser or WebView language preference list. */
|
|
45
|
+
export function readMpgdPreferredLocales(environment = globalThis.navigator) {
|
|
46
|
+
const candidates = [
|
|
47
|
+
...(environment?.languages ?? []),
|
|
48
|
+
...(environment?.language === undefined ? [] : [environment.language]),
|
|
49
|
+
];
|
|
50
|
+
const seen = new Set();
|
|
51
|
+
const preferredLocales = candidates.filter((locale) => {
|
|
52
|
+
const key = locale.toLowerCase();
|
|
53
|
+
if (locale.length === 0 || seen.has(key)) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
seen.add(key);
|
|
57
|
+
return true;
|
|
58
|
+
});
|
|
59
|
+
return Object.freeze(preferredLocales);
|
|
51
60
|
}
|
|
@@ -1,58 +1,59 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
46
|
-
export * from
|
|
47
|
-
export * from
|
|
48
|
-
export * from
|
|
49
|
-
export * from
|
|
50
|
-
export * from
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
54
|
-
export * from
|
|
55
|
-
export * from
|
|
56
|
-
export * from
|
|
57
|
-
export * from
|
|
58
|
-
export
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
3
|
+
export * from './action_interstitial_ads.js';
|
|
4
|
+
export * from './action_leaderboard.js';
|
|
5
|
+
export * from './action_localization.js';
|
|
6
|
+
export * from './action_purchases.js';
|
|
7
|
+
export * from './action_reward_ads.js';
|
|
8
|
+
export * from './app_title.js';
|
|
9
|
+
export * from './availability_off.js';
|
|
10
|
+
export * from './availability_on.js';
|
|
11
|
+
export * from './availability_unsupported.js';
|
|
12
|
+
export * from './cap_iap.js';
|
|
13
|
+
export * from './cap_leaderboard.js';
|
|
14
|
+
export * from './cap_localization.js';
|
|
15
|
+
export * from './cap_rewarded_ads.js';
|
|
16
|
+
export * from './cap_save.js';
|
|
17
|
+
export * from './effective_config_summary.js';
|
|
18
|
+
export * from './feature_target_disabled.js';
|
|
19
|
+
export * from './feature_unavailable.js';
|
|
20
|
+
export * from './feature_unsupported.js';
|
|
21
|
+
export * from './leaderboard_action.js';
|
|
22
|
+
export * from './leaderboard_action_unavailable.js';
|
|
23
|
+
export * from './leaderboard_opened.js';
|
|
24
|
+
export * from './leaderboard_unavailable.js';
|
|
25
|
+
export * from './loading_player.js';
|
|
26
|
+
export * from './mock_only.js';
|
|
27
|
+
export * from './opening_purchase.js';
|
|
28
|
+
export * from './play_again.js';
|
|
29
|
+
export * from './player.js';
|
|
30
|
+
export * from './preparing_demo.js';
|
|
31
|
+
export * from './purchase_action.js';
|
|
32
|
+
export * from './purchase_completed.js';
|
|
33
|
+
export * from './purchase_status.js';
|
|
34
|
+
export * from './purchase_unavailable.js';
|
|
35
|
+
export * from './reward_ad_action.js';
|
|
36
|
+
export * from './reward_ad_unavailable.js';
|
|
37
|
+
export * from './reward_granted.js';
|
|
38
|
+
export * from './reward_unavailable.js';
|
|
39
|
+
export * from './save_summary.js';
|
|
40
|
+
export * from './saved.js';
|
|
41
|
+
export * from './saved_and_submitted.js';
|
|
42
|
+
export * from './saving_result.js';
|
|
43
|
+
export * from './score.js';
|
|
44
|
+
export * from './sdk_summary.js';
|
|
45
|
+
export * from './showing_rewarded_ad.js';
|
|
46
|
+
export * from './status_cleared.js';
|
|
47
|
+
export * from './status_try_again.js';
|
|
48
|
+
export * from './tap_to_start.js';
|
|
49
|
+
export * from './target.js';
|
|
50
|
+
export * from './target_availability_summary.js';
|
|
51
|
+
export * from './target_config_unavailable.js';
|
|
52
|
+
export * from './target_feature_iap.js';
|
|
53
|
+
export * from './target_feature_interstitial_ads.js';
|
|
54
|
+
export * from './target_feature_leaderboard.js';
|
|
55
|
+
export * from './target_feature_localization.js';
|
|
56
|
+
export * from './target_feature_rewarded_ads.js';
|
|
57
|
+
export * from './viewport.js';
|
|
58
|
+
export * from './viewport_orientation_mismatch.js';
|
|
59
|
+
export * from './viewport_orientation_policy.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
3
|
-
export * from './action_localization.js'
|
|
4
3
|
export * from './action_interstitial_ads.js'
|
|
5
4
|
export * from './action_leaderboard.js'
|
|
5
|
+
export * from './action_localization.js'
|
|
6
6
|
export * from './action_purchases.js'
|
|
7
7
|
export * from './action_reward_ads.js'
|
|
8
8
|
export * from './app_title.js'
|
|
9
9
|
export * from './availability_off.js'
|
|
10
10
|
export * from './availability_on.js'
|
|
11
11
|
export * from './availability_unsupported.js'
|
|
12
|
-
export * from './cap_localization.js'
|
|
13
12
|
export * from './cap_iap.js'
|
|
14
13
|
export * from './cap_leaderboard.js'
|
|
14
|
+
export * from './cap_localization.js'
|
|
15
15
|
export * from './cap_rewarded_ads.js'
|
|
16
16
|
export * from './cap_save.js'
|
|
17
17
|
export * from './effective_config_summary.js'
|
|
@@ -25,10 +25,8 @@ export * from './leaderboard_unavailable.js'
|
|
|
25
25
|
export * from './loading_player.js'
|
|
26
26
|
export * from './mock_only.js'
|
|
27
27
|
export * from './opening_purchase.js'
|
|
28
|
-
export * from './viewport_orientation_policy.js'
|
|
29
|
-
export * from './viewport_orientation_mismatch.js'
|
|
30
|
-
export * from './player.js'
|
|
31
28
|
export * from './play_again.js'
|
|
29
|
+
export * from './player.js'
|
|
32
30
|
export * from './preparing_demo.js'
|
|
33
31
|
export * from './purchase_action.js'
|
|
34
32
|
export * from './purchase_completed.js'
|
|
@@ -56,4 +54,6 @@ export * from './target_feature_interstitial_ads.js'
|
|
|
56
54
|
export * from './target_feature_leaderboard.js'
|
|
57
55
|
export * from './target_feature_localization.js'
|
|
58
56
|
export * from './target_feature_rewarded_ads.js'
|
|
59
|
-
export * from './viewport.js'
|
|
57
|
+
export * from './viewport.js'
|
|
58
|
+
export * from './viewport_orientation_mismatch.js'
|
|
59
|
+
export * from './viewport_orientation_policy.js'
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Action_Interstitial_AdsInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const action_interstitial_ads: ((inputs?: Action_Interstitial_AdsInputs, options?: {
|
|
12
|
+
export declare const action_interstitial_ads: ((inputs?: Action_Interstitial_AdsInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_Interstitial_AdsInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Action_Interstitial_AdsInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_action_interstitial_ads = /** @type {(inputs: Action_Interstitial_AdsIn
|
|
|
24
24
|
*/
|
|
25
25
|
export const action_interstitial_ads = /** @type {((inputs?: Action_Interstitial_AdsInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_Interstitial_AdsInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_action_interstitial_ads(inputs)
|
|
28
|
+
return en_action_interstitial_ads(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Action_LeaderboardInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const action_leaderboard: ((inputs?: Action_LeaderboardInputs, options?: {
|
|
12
|
+
export declare const action_leaderboard: ((inputs?: Action_LeaderboardInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_LeaderboardInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Action_LeaderboardInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_action_leaderboard = /** @type {(inputs: Action_LeaderboardInputs) => L
|
|
|
24
24
|
*/
|
|
25
25
|
export const action_leaderboard = /** @type {((inputs?: Action_LeaderboardInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_LeaderboardInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_action_leaderboard(inputs)
|
|
28
|
+
return en_action_leaderboard(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Action_LocalizationInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const action_localization: ((inputs?: Action_LocalizationInputs, options?: {
|
|
12
|
+
export declare const action_localization: ((inputs?: Action_LocalizationInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_LocalizationInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Action_LocalizationInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_action_localization = /** @type {(inputs: Action_LocalizationInputs) =>
|
|
|
24
24
|
*/
|
|
25
25
|
export const action_localization = /** @type {((inputs?: Action_LocalizationInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_LocalizationInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_action_localization(inputs)
|
|
28
|
+
return en_action_localization(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Action_PurchasesInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const action_purchases: ((inputs?: Action_PurchasesInputs, options?: {
|
|
12
|
+
export declare const action_purchases: ((inputs?: Action_PurchasesInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_PurchasesInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Action_PurchasesInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_action_purchases = /** @type {(inputs: Action_PurchasesInputs) => Local
|
|
|
24
24
|
*/
|
|
25
25
|
export const action_purchases = /** @type {((inputs?: Action_PurchasesInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_PurchasesInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_action_purchases(inputs)
|
|
28
|
+
return en_action_purchases(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Action_Reward_AdsInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const action_reward_ads: ((inputs?: Action_Reward_AdsInputs, options?: {
|
|
12
|
+
export declare const action_reward_ads: ((inputs?: Action_Reward_AdsInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_Reward_AdsInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Action_Reward_AdsInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_action_reward_ads = /** @type {(inputs: Action_Reward_AdsInputs) => Loc
|
|
|
24
24
|
*/
|
|
25
25
|
export const action_reward_ads = /** @type {((inputs?: Action_Reward_AdsInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Action_Reward_AdsInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_action_reward_ads(inputs)
|
|
28
|
+
return en_action_reward_ads(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type App_TitleInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const app_title: ((inputs?: App_TitleInputs, options?: {
|
|
12
|
+
export declare const app_title: ((inputs?: App_TitleInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<App_TitleInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type App_TitleInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_app_title = /** @type {(inputs: App_TitleInputs) => LocalizedString} */
|
|
|
24
24
|
*/
|
|
25
25
|
export const app_title = /** @type {((inputs?: App_TitleInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<App_TitleInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_app_title(inputs)
|
|
28
|
+
return en_app_title(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Availability_OffInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const availability_off: ((inputs?: Availability_OffInputs, options?: {
|
|
12
|
+
export declare const availability_off: ((inputs?: Availability_OffInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Availability_OffInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Availability_OffInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_availability_off = /** @type {(inputs: Availability_OffInputs) => Local
|
|
|
24
24
|
*/
|
|
25
25
|
export const availability_off = /** @type {((inputs?: Availability_OffInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Availability_OffInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_availability_off(inputs)
|
|
28
|
+
return en_availability_off(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Availability_OnInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const availability_on: ((inputs?: Availability_OnInputs, options?: {
|
|
12
|
+
export declare const availability_on: ((inputs?: Availability_OnInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Availability_OnInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Availability_OnInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_availability_on = /** @type {(inputs: Availability_OnInputs) => Localiz
|
|
|
24
24
|
*/
|
|
25
25
|
export const availability_on = /** @type {((inputs?: Availability_OnInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Availability_OnInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_availability_on(inputs)
|
|
28
|
+
return en_availability_on(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Availability_UnsupportedInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const availability_unsupported: ((inputs?: Availability_UnsupportedInputs, options?: {
|
|
12
|
+
export declare const availability_unsupported: ((inputs?: Availability_UnsupportedInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Availability_UnsupportedInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Availability_UnsupportedInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_availability_unsupported = /** @type {(inputs: Availability_Unsupported
|
|
|
24
24
|
*/
|
|
25
25
|
export const availability_unsupported = /** @type {((inputs?: Availability_UnsupportedInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Availability_UnsupportedInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_availability_unsupported(inputs)
|
|
28
|
+
return en_availability_unsupported(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Cap_IapInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const cap_iap: ((inputs?: Cap_IapInputs, options?: {
|
|
12
|
+
export declare const cap_iap: ((inputs?: Cap_IapInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Cap_IapInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Cap_IapInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_cap_iap = /** @type {(inputs: Cap_IapInputs) => LocalizedString} */ ()
|
|
|
24
24
|
*/
|
|
25
25
|
export const cap_iap = /** @type {((inputs?: Cap_IapInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cap_IapInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_cap_iap(inputs)
|
|
28
|
+
return en_cap_iap(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Cap_LeaderboardInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const cap_leaderboard: ((inputs?: Cap_LeaderboardInputs, options?: {
|
|
12
|
+
export declare const cap_leaderboard: ((inputs?: Cap_LeaderboardInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Cap_LeaderboardInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Cap_LeaderboardInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_cap_leaderboard = /** @type {(inputs: Cap_LeaderboardInputs) => Localiz
|
|
|
24
24
|
*/
|
|
25
25
|
export const cap_leaderboard = /** @type {((inputs?: Cap_LeaderboardInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cap_LeaderboardInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_cap_leaderboard(inputs)
|
|
28
|
+
return en_cap_leaderboard(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Cap_LocalizationInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const cap_localization: ((inputs?: Cap_LocalizationInputs, options?: {
|
|
12
|
+
export declare const cap_localization: ((inputs?: Cap_LocalizationInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Cap_LocalizationInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Cap_LocalizationInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_cap_localization = /** @type {(inputs: Cap_LocalizationInputs) => Local
|
|
|
24
24
|
*/
|
|
25
25
|
export const cap_localization = /** @type {((inputs?: Cap_LocalizationInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cap_LocalizationInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_cap_localization(inputs)
|
|
28
|
+
return en_cap_localization(inputs)
|
|
29
29
|
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type LocalizedString = import('../runtime.js').LocalizedString;
|
|
2
|
+
export type Cap_Rewarded_AdsInputs = {};
|
|
1
3
|
/**
|
|
2
4
|
* | output |
|
|
3
5
|
* | --- |
|
|
@@ -7,10 +9,8 @@
|
|
|
7
9
|
* @param {{ locale?: "en" | "ko" }} options
|
|
8
10
|
* @returns {LocalizedString}
|
|
9
11
|
*/
|
|
10
|
-
export const cap_rewarded_ads: ((inputs?: Cap_Rewarded_AdsInputs, options?: {
|
|
12
|
+
export declare const cap_rewarded_ads: ((inputs?: Cap_Rewarded_AdsInputs, options?: {
|
|
11
13
|
locale?: "en" | "ko";
|
|
12
|
-
}) => LocalizedString) & import(
|
|
14
|
+
}) => LocalizedString) & import('../runtime.js').MessageMetadata<Cap_Rewarded_AdsInputs, {
|
|
13
15
|
locale?: "en" | "ko";
|
|
14
16
|
}, {}>;
|
|
15
|
-
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
-
export type Cap_Rewarded_AdsInputs = {};
|
|
@@ -24,6 +24,6 @@ const ko_cap_rewarded_ads = /** @type {(inputs: Cap_Rewarded_AdsInputs) => Local
|
|
|
24
24
|
*/
|
|
25
25
|
export const cap_rewarded_ads = /** @type {((inputs?: Cap_Rewarded_AdsInputs, options?: { locale?: "en" | "ko" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cap_Rewarded_AdsInputs, { locale?: "en" | "ko" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
26
|
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
-
if (locale === "
|
|
28
|
-
return
|
|
27
|
+
if (locale === "ko") return ko_cap_rewarded_ads(inputs)
|
|
28
|
+
return en_cap_rewarded_ads(inputs)
|
|
29
29
|
});
|