@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.
Files changed (129) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.d.ts +7 -0
  3. package/dist/index.js +36 -0
  4. package/dist/paraglide/README.md +162 -0
  5. package/dist/paraglide/messages/_index.d.ts +55 -0
  6. package/dist/paraglide/messages/_index.js +56 -0
  7. package/dist/paraglide/messages/action_interstitial_ads.d.ts +16 -0
  8. package/dist/paraglide/messages/action_interstitial_ads.js +29 -0
  9. package/dist/paraglide/messages/action_leaderboard.d.ts +16 -0
  10. package/dist/paraglide/messages/action_leaderboard.js +29 -0
  11. package/dist/paraglide/messages/action_localization.d.ts +16 -0
  12. package/dist/paraglide/messages/action_localization.js +29 -0
  13. package/dist/paraglide/messages/action_purchases.d.ts +16 -0
  14. package/dist/paraglide/messages/action_purchases.js +29 -0
  15. package/dist/paraglide/messages/action_reward_ads.d.ts +16 -0
  16. package/dist/paraglide/messages/action_reward_ads.js +29 -0
  17. package/dist/paraglide/messages/app_title.d.ts +16 -0
  18. package/dist/paraglide/messages/app_title.js +29 -0
  19. package/dist/paraglide/messages/availability_off.d.ts +16 -0
  20. package/dist/paraglide/messages/availability_off.js +29 -0
  21. package/dist/paraglide/messages/availability_on.d.ts +16 -0
  22. package/dist/paraglide/messages/availability_on.js +29 -0
  23. package/dist/paraglide/messages/availability_unsupported.d.ts +16 -0
  24. package/dist/paraglide/messages/availability_unsupported.js +29 -0
  25. package/dist/paraglide/messages/cap_iap.d.ts +16 -0
  26. package/dist/paraglide/messages/cap_iap.js +29 -0
  27. package/dist/paraglide/messages/cap_leaderboard.d.ts +16 -0
  28. package/dist/paraglide/messages/cap_leaderboard.js +29 -0
  29. package/dist/paraglide/messages/cap_localization.d.ts +16 -0
  30. package/dist/paraglide/messages/cap_localization.js +29 -0
  31. package/dist/paraglide/messages/cap_rewarded_ads.d.ts +16 -0
  32. package/dist/paraglide/messages/cap_rewarded_ads.js +29 -0
  33. package/dist/paraglide/messages/cap_save.d.ts +16 -0
  34. package/dist/paraglide/messages/cap_save.js +29 -0
  35. package/dist/paraglide/messages/effective_config_summary.d.ts +20 -0
  36. package/dist/paraglide/messages/effective_config_summary.js +29 -0
  37. package/dist/paraglide/messages/feature_target_disabled.d.ts +18 -0
  38. package/dist/paraglide/messages/feature_target_disabled.js +29 -0
  39. package/dist/paraglide/messages/feature_unavailable.d.ts +18 -0
  40. package/dist/paraglide/messages/feature_unavailable.js +29 -0
  41. package/dist/paraglide/messages/feature_unsupported.d.ts +18 -0
  42. package/dist/paraglide/messages/feature_unsupported.js +29 -0
  43. package/dist/paraglide/messages/leaderboard_action.d.ts +16 -0
  44. package/dist/paraglide/messages/leaderboard_action.js +29 -0
  45. package/dist/paraglide/messages/leaderboard_action_unavailable.d.ts +16 -0
  46. package/dist/paraglide/messages/leaderboard_action_unavailable.js +29 -0
  47. package/dist/paraglide/messages/leaderboard_opened.d.ts +16 -0
  48. package/dist/paraglide/messages/leaderboard_opened.js +29 -0
  49. package/dist/paraglide/messages/leaderboard_unavailable.d.ts +16 -0
  50. package/dist/paraglide/messages/leaderboard_unavailable.js +29 -0
  51. package/dist/paraglide/messages/loading_player.d.ts +16 -0
  52. package/dist/paraglide/messages/loading_player.js +29 -0
  53. package/dist/paraglide/messages/mock_only.d.ts +16 -0
  54. package/dist/paraglide/messages/mock_only.js +29 -0
  55. package/dist/paraglide/messages/opening_purchase.d.ts +16 -0
  56. package/dist/paraglide/messages/opening_purchase.js +29 -0
  57. package/dist/paraglide/messages/package.json +4 -0
  58. package/dist/paraglide/messages/play_again.d.ts +16 -0
  59. package/dist/paraglide/messages/play_again.js +29 -0
  60. package/dist/paraglide/messages/player.d.ts +18 -0
  61. package/dist/paraglide/messages/player.js +29 -0
  62. package/dist/paraglide/messages/preparing_demo.d.ts +16 -0
  63. package/dist/paraglide/messages/preparing_demo.js +29 -0
  64. package/dist/paraglide/messages/purchase_action.d.ts +16 -0
  65. package/dist/paraglide/messages/purchase_action.js +29 -0
  66. package/dist/paraglide/messages/purchase_completed.d.ts +16 -0
  67. package/dist/paraglide/messages/purchase_completed.js +29 -0
  68. package/dist/paraglide/messages/purchase_status.d.ts +18 -0
  69. package/dist/paraglide/messages/purchase_status.js +29 -0
  70. package/dist/paraglide/messages/purchase_unavailable.d.ts +16 -0
  71. package/dist/paraglide/messages/purchase_unavailable.js +29 -0
  72. package/dist/paraglide/messages/reward_ad_action.d.ts +16 -0
  73. package/dist/paraglide/messages/reward_ad_action.js +29 -0
  74. package/dist/paraglide/messages/reward_ad_unavailable.d.ts +16 -0
  75. package/dist/paraglide/messages/reward_ad_unavailable.js +29 -0
  76. package/dist/paraglide/messages/reward_granted.d.ts +16 -0
  77. package/dist/paraglide/messages/reward_granted.js +29 -0
  78. package/dist/paraglide/messages/reward_unavailable.d.ts +18 -0
  79. package/dist/paraglide/messages/reward_unavailable.js +29 -0
  80. package/dist/paraglide/messages/save_summary.d.ts +19 -0
  81. package/dist/paraglide/messages/save_summary.js +29 -0
  82. package/dist/paraglide/messages/saved.d.ts +16 -0
  83. package/dist/paraglide/messages/saved.js +29 -0
  84. package/dist/paraglide/messages/saved_and_submitted.d.ts +16 -0
  85. package/dist/paraglide/messages/saved_and_submitted.js +29 -0
  86. package/dist/paraglide/messages/saving_result.d.ts +16 -0
  87. package/dist/paraglide/messages/saving_result.js +29 -0
  88. package/dist/paraglide/messages/score.d.ts +18 -0
  89. package/dist/paraglide/messages/score.js +29 -0
  90. package/dist/paraglide/messages/sdk_summary.d.ts +18 -0
  91. package/dist/paraglide/messages/sdk_summary.js +29 -0
  92. package/dist/paraglide/messages/showing_rewarded_ad.d.ts +16 -0
  93. package/dist/paraglide/messages/showing_rewarded_ad.js +29 -0
  94. package/dist/paraglide/messages/status_cleared.d.ts +16 -0
  95. package/dist/paraglide/messages/status_cleared.js +29 -0
  96. package/dist/paraglide/messages/status_try_again.d.ts +16 -0
  97. package/dist/paraglide/messages/status_try_again.js +29 -0
  98. package/dist/paraglide/messages/tap_to_start.d.ts +16 -0
  99. package/dist/paraglide/messages/tap_to_start.js +29 -0
  100. package/dist/paraglide/messages/target.d.ts +18 -0
  101. package/dist/paraglide/messages/target.js +29 -0
  102. package/dist/paraglide/messages/target_availability_summary.d.ts +19 -0
  103. package/dist/paraglide/messages/target_availability_summary.js +29 -0
  104. package/dist/paraglide/messages/target_config_unavailable.d.ts +16 -0
  105. package/dist/paraglide/messages/target_config_unavailable.js +29 -0
  106. package/dist/paraglide/messages/target_feature_iap.d.ts +16 -0
  107. package/dist/paraglide/messages/target_feature_iap.js +29 -0
  108. package/dist/paraglide/messages/target_feature_interstitial_ads.d.ts +16 -0
  109. package/dist/paraglide/messages/target_feature_interstitial_ads.js +29 -0
  110. package/dist/paraglide/messages/target_feature_leaderboard.d.ts +16 -0
  111. package/dist/paraglide/messages/target_feature_leaderboard.js +29 -0
  112. package/dist/paraglide/messages/target_feature_localization.d.ts +16 -0
  113. package/dist/paraglide/messages/target_feature_localization.js +29 -0
  114. package/dist/paraglide/messages/target_feature_rewarded_ads.d.ts +16 -0
  115. package/dist/paraglide/messages/target_feature_rewarded_ads.js +29 -0
  116. package/dist/paraglide/messages.d.ts +2 -0
  117. package/dist/paraglide/messages.js +4 -0
  118. package/dist/paraglide/registry.d.ts +34 -0
  119. package/dist/paraglide/registry.js +46 -0
  120. package/dist/paraglide/runtime.d.ts +758 -0
  121. package/dist/paraglide/runtime.js +1852 -0
  122. package/dist/paraglide/server.d.ts +96 -0
  123. package/dist/paraglide/server.js +282 -0
  124. package/dist/paraglideAdapter.d.ts +86 -0
  125. package/dist/paraglideAdapter.js +2 -0
  126. package/messages/en.json +57 -0
  127. package/messages/ko.json +57 -0
  128. package/package.json +69 -0
  129. package/project.inlang/settings.json +10 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 imjlk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,7 @@
1
+ import type { PlatformCapabilities } from '@mpgd/platform';
2
+ import { type Locale } from './paraglideAdapter.js';
3
+ export { baseLocale, locales, m, type Locale } from './paraglideAdapter.js';
4
+ export type MpgdLocale = Locale;
5
+ export declare function isMpgdLocale(input: string): input is MpgdLocale;
6
+ export declare function normalizeMpgdLocale(input: string): MpgdLocale | null;
7
+ export declare function resolveMpgdLocale(capabilities: Pick<PlatformCapabilities, 'localizedContent'>, preferredLocales?: readonly string[]): MpgdLocale;
package/dist/index.js ADDED
@@ -0,0 +1,36 @@
1
+ import { baseLocale, locales } from './paraglideAdapter.js';
2
+ export { baseLocale, locales, m } from './paraglideAdapter.js';
3
+ export function isMpgdLocale(input) {
4
+ return locales.includes(input);
5
+ }
6
+ export function normalizeMpgdLocale(input) {
7
+ const normalized = input.toLowerCase();
8
+ if (isMpgdLocale(normalized)) {
9
+ return normalized;
10
+ }
11
+ const [base] = normalized.split('-');
12
+ if (base !== undefined && isMpgdLocale(base)) {
13
+ return base;
14
+ }
15
+ return null;
16
+ }
17
+ export function resolveMpgdLocale(capabilities, preferredLocales = readPreferredLocales()) {
18
+ if (!capabilities.localizedContent) {
19
+ return baseLocale;
20
+ }
21
+ for (const preferredLocale of preferredLocales) {
22
+ const locale = normalizeMpgdLocale(preferredLocale);
23
+ if (locale !== null) {
24
+ return locale;
25
+ }
26
+ }
27
+ return baseLocale;
28
+ }
29
+ function readPreferredLocales() {
30
+ const navigatorLanguages = globalThis.navigator?.languages;
31
+ if (navigatorLanguages !== undefined && navigatorLanguages.length > 0) {
32
+ return navigatorLanguages;
33
+ }
34
+ const navigatorLanguage = globalThis.navigator?.language;
35
+ return navigatorLanguage === undefined ? [baseLocale] : [navigatorLanguage];
36
+ }
@@ -0,0 +1,162 @@
1
+ # Paraglide JS Compiled Output
2
+
3
+ > Auto-generated i18n message functions. Import `messages.js` to use translated strings.
4
+
5
+ Compiled from: `/Users/imjlk/repos/imjlk/mpgd-kit/packages/i18n/project.inlang`
6
+
7
+
8
+ ## What is this folder?
9
+
10
+ This folder contains compiled [Paraglide JS](https://github.com/opral/paraglide-js) output. Paraglide JS compiles your translation messages into tree-shakeable JavaScript functions.
11
+
12
+ ## At a glance
13
+
14
+ Purpose:
15
+ - This folder stores compiled i18n message functions.
16
+ - Source translations live outside this folder in your inlang project.
17
+
18
+ Safe to import:
19
+ - `messages.js` — all message functions
20
+ - `runtime.js` — locale utilities
21
+ - `server.js` — server-side middleware
22
+
23
+ Do not edit:
24
+ - All files in this folder are auto-generated.
25
+ - Changes will be overwritten on next compilation.
26
+
27
+ ```
28
+ paraglide/
29
+ ├── messages.js # Message exports (import this)
30
+ ├── messages/ # Individual message functions
31
+ ├── runtime.js # Locale detection & configuration
32
+ ├── registry.js # Formatting utilities (plural, number, datetime, relativetime)
33
+ ├── server.js # Server-side middleware
34
+ └── .gitignore # Marks folder as generated
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ ```js
40
+ import * as m from "./paraglide/messages.js";
41
+
42
+ // Messages are functions that return localized strings
43
+ m.hello_world(); // "Hello, World!" (in current locale)
44
+ m.greeting({ name: "Sam" }); // "Hello, Sam!"
45
+
46
+ // Override locale per-call
47
+ m.hello_world({}, { locale: "de" }); // "Hallo, Welt!"
48
+ m.greeting({ name: "Sam" }, { locale: "de" }); // "Hallo, Sam!"
49
+ ```
50
+
51
+ ## Runtime API
52
+
53
+ ```js
54
+ import { getLocale, getTextDirection, setLocale, locales, baseLocale } from "./paraglide/runtime.js";
55
+
56
+ getLocale(); // Current locale, e.g., "en"
57
+ getTextDirection(); // "ltr" | "rtl" for current locale
58
+ setLocale("de"); // Set locale
59
+ locales; // Available locales, e.g., ["en", "de", "fr"]
60
+ baseLocale; // Default locale, e.g., "en"
61
+ ```
62
+
63
+ ## Strategy
64
+
65
+ The strategy determines how the current locale is detected and persisted:
66
+
67
+ - **Cookie**: Stores locale preference in a cookie.
68
+ - **URL**: Derives locale from URL patterns (e.g., `/en/about`, `en.example.com`).
69
+ - **GlobalVariable**: Uses a global variable (client-side only).
70
+ - **BaseLocale**: Always returns the base locale.
71
+
72
+ Strategies can be combined. The order defines precedence:
73
+
74
+ ```js
75
+ await compile({
76
+ project: "./project.inlang",
77
+ outdir: "./src/paraglide",
78
+ strategy: ["url", "cookie", "baseLocale"],
79
+ });
80
+ ```
81
+
82
+ See the [strategy documentation](https://paraglidejs.com/strategy) for details.
83
+
84
+ ## Markup (Rich Text)
85
+
86
+ Messages can contain markup tags for bold, links, and other inline elements. Translators control where tags appear; developers control how they render.
87
+
88
+ Important:
89
+ - Tag names are app-defined. There is no built-in list of HTML tags.
90
+ - `{#b}...{/b}` does not automatically render as `<b>...</b>`.
91
+ - Renderers/snippets are looked up by the same tag name used in the message.
92
+
93
+ ### Message syntax
94
+
95
+ ```json
96
+ {
97
+ "cta": "{#link to=|/docs| rel=$relationship @track}Read the docs{/link}",
98
+ "welcome": "{#b}Hi {name}{/b}{#icon/}"
99
+ }
100
+ ```
101
+
102
+ - `{#tagName}` opens a tag, `{/tagName}` closes it.
103
+ - `{#tagName/}` creates a standalone tag.
104
+ - Options: `to=|/docs|` or `rel=$relationship` (accessed via `options.*`).
105
+ - Attributes: `@track` or `@variant=|hero|` (accessed via `attributes.*`).
106
+
107
+ This is the default inlang message syntax. Paraglide's message format is plugin-based — you can use [ICU MessageFormat 1](https://inlang.com/m/p7c8m1d2/plugin-inlang-icu-messageformat-1), [i18next](https://inlang.com/m/3i8bor92/plugin-inlang-i18next), or other [plugins](https://inlang.com/c/plugins) instead.
108
+
109
+ ### Rendering markup
110
+
111
+ Calling the message function still returns **plain text** (markup stripped):
112
+
113
+ ```js
114
+ m.cta({ relationship: "noopener" }); // "Read the docs"
115
+ ```
116
+
117
+ To render markup, use the framework adapter or the low-level `parts()` API:
118
+
119
+ ```js
120
+ const parts = m.cta.parts({ relationship: "noopener" });
121
+ // [
122
+ // { type: "markup-start", name: "link", options: { to: "/docs", rel: "noopener" }, attributes: { track: true } },
123
+ // { type: "text", value: "Read the docs" },
124
+ // { type: "markup-end", name: "link" }
125
+ // ]
126
+ ```
127
+
128
+ Framework adapters provide a `<ParaglideMessage>` component that accepts markup renderers:
129
+
130
+ - `@inlang/paraglide-js-react`
131
+ - `@inlang/paraglide-js-vue`
132
+ - `@inlang/paraglide-js-svelte`
133
+ - `@inlang/paraglide-js-solid`
134
+
135
+ ```jsx
136
+ import { ParaglideMessage } from "@inlang/paraglide-js-react"; // or -vue, -svelte, -solid
137
+
138
+ <ParaglideMessage
139
+ message={m.welcome}
140
+ inputs={{ name: "Ada" }}
141
+ markup={{
142
+ b: ({ children }) => <b>{children}</b>,
143
+ icon: () => <span aria-hidden="true" className="icon-wave" />,
144
+ }}
145
+ />
146
+ ```
147
+
148
+ The available renderer/snippet names come from the message itself. You can inspect them through `message.parts()`, and TypeScript uses the same names to type-check your markup renderers.
149
+
150
+ See the [markup documentation](https://paraglidejs.com/markup) for details.
151
+
152
+ ## Key concepts
153
+
154
+ - **Tree-shakeable**: Each message is a function, enabling [up to 70% smaller i18n bundle sizes](https://paraglidejs.com/benchmark) than traditional i18n libraries.
155
+ - **Typesafe**: Full TypeScript/JSDoc support with autocomplete.
156
+ - **Variants**: Messages can have variants for pluralization, gender, etc.
157
+ - **Fallbacks**: Missing translations fall back to the base locale.
158
+
159
+ ## Links
160
+
161
+ - [Paraglide JS Documentation](https://paraglidejs.com)
162
+ - [Source Repository](https://github.com/opral/paraglide-js)
@@ -0,0 +1,55 @@
1
+ export * from "./action_localization.js";
2
+ export * from "./action_interstitial_ads.js";
3
+ export * from "./action_leaderboard.js";
4
+ export * from "./action_purchases.js";
5
+ export * from "./action_reward_ads.js";
6
+ export * from "./app_title.js";
7
+ export * from "./availability_off.js";
8
+ export * from "./availability_on.js";
9
+ export * from "./availability_unsupported.js";
10
+ export * from "./cap_localization.js";
11
+ export * from "./cap_iap.js";
12
+ export * from "./cap_leaderboard.js";
13
+ export * from "./cap_rewarded_ads.js";
14
+ export * from "./cap_save.js";
15
+ export * from "./effective_config_summary.js";
16
+ export * from "./feature_target_disabled.js";
17
+ export * from "./feature_unavailable.js";
18
+ export * from "./feature_unsupported.js";
19
+ export * from "./leaderboard_action.js";
20
+ export * from "./leaderboard_action_unavailable.js";
21
+ export * from "./leaderboard_opened.js";
22
+ export * from "./leaderboard_unavailable.js";
23
+ export * from "./loading_player.js";
24
+ export * from "./mock_only.js";
25
+ export * from "./opening_purchase.js";
26
+ export * from "./player.js";
27
+ export * from "./play_again.js";
28
+ export * from "./preparing_demo.js";
29
+ export * from "./purchase_action.js";
30
+ export * from "./purchase_completed.js";
31
+ export * from "./purchase_status.js";
32
+ export * from "./purchase_unavailable.js";
33
+ export * from "./reward_ad_action.js";
34
+ export * from "./reward_ad_unavailable.js";
35
+ export * from "./reward_granted.js";
36
+ export * from "./reward_unavailable.js";
37
+ export * from "./save_summary.js";
38
+ export * from "./saved.js";
39
+ export * from "./saved_and_submitted.js";
40
+ export * from "./saving_result.js";
41
+ export * from "./score.js";
42
+ export * from "./sdk_summary.js";
43
+ export * from "./showing_rewarded_ad.js";
44
+ export * from "./status_cleared.js";
45
+ export * from "./status_try_again.js";
46
+ export * from "./tap_to_start.js";
47
+ export * from "./target.js";
48
+ export * from "./target_availability_summary.js";
49
+ export * from "./target_config_unavailable.js";
50
+ export * from "./target_feature_iap.js";
51
+ export * from "./target_feature_interstitial_ads.js";
52
+ export * from "./target_feature_leaderboard.js";
53
+ export * from "./target_feature_localization.js";
54
+ export * from "./target_feature_rewarded_ads.js";
55
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -0,0 +1,56 @@
1
+ /* eslint-disable */
2
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
+ export * from './action_localization.js'
4
+ export * from './action_interstitial_ads.js'
5
+ export * from './action_leaderboard.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_localization.js'
13
+ export * from './cap_iap.js'
14
+ export * from './cap_leaderboard.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 './player.js'
29
+ export * from './play_again.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'
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Interstitial ads" |
5
+ *
6
+ * @param {Action_Interstitial_AdsInputs} inputs
7
+ * @param {{ locale?: "en" | "ko" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const action_interstitial_ads: ((inputs?: Action_Interstitial_AdsInputs, options?: {
11
+ locale?: "en" | "ko";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Action_Interstitial_AdsInputs, {
13
+ locale?: "en" | "ko";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Action_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 {{}} Action_Interstitial_AdsInputs */
7
+
8
+ const en_action_interstitial_ads = /** @type {(inputs: Action_Interstitial_AdsInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Interstitial ads`)
10
+ };
11
+
12
+ const ko_action_interstitial_ads = /** @type {(inputs: Action_Interstitial_AdsInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`전면광고`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Interstitial ads" |
20
+ *
21
+ * @param {Action_Interstitial_AdsInputs} inputs
22
+ * @param {{ locale?: "en" | "ko" }} options
23
+ * @returns {LocalizedString}
24
+ */
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
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_action_interstitial_ads(inputs)
28
+ return ko_action_interstitial_ads(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Leaderboard" |
5
+ *
6
+ * @param {Action_LeaderboardInputs} inputs
7
+ * @param {{ locale?: "en" | "ko" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const action_leaderboard: ((inputs?: Action_LeaderboardInputs, options?: {
11
+ locale?: "en" | "ko";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Action_LeaderboardInputs, {
13
+ locale?: "en" | "ko";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Action_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 {{}} Action_LeaderboardInputs */
7
+
8
+ const en_action_leaderboard = /** @type {(inputs: Action_LeaderboardInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Leaderboard`)
10
+ };
11
+
12
+ const ko_action_leaderboard = /** @type {(inputs: Action_LeaderboardInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`랭킹`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Leaderboard" |
20
+ *
21
+ * @param {Action_LeaderboardInputs} inputs
22
+ * @param {{ locale?: "en" | "ko" }} options
23
+ * @returns {LocalizedString}
24
+ */
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
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_action_leaderboard(inputs)
28
+ return ko_action_leaderboard(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Localization" |
5
+ *
6
+ * @param {Action_LocalizationInputs} inputs
7
+ * @param {{ locale?: "en" | "ko" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const action_localization: ((inputs?: Action_LocalizationInputs, options?: {
11
+ locale?: "en" | "ko";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Action_LocalizationInputs, {
13
+ locale?: "en" | "ko";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Action_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 {{}} Action_LocalizationInputs */
7
+
8
+ const en_action_localization = /** @type {(inputs: Action_LocalizationInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Localization`)
10
+ };
11
+
12
+ const ko_action_localization = /** @type {(inputs: Action_LocalizationInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`다국어`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Localization" |
20
+ *
21
+ * @param {Action_LocalizationInputs} inputs
22
+ * @param {{ locale?: "en" | "ko" }} options
23
+ * @returns {LocalizedString}
24
+ */
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
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_action_localization(inputs)
28
+ return ko_action_localization(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Purchases" |
5
+ *
6
+ * @param {Action_PurchasesInputs} inputs
7
+ * @param {{ locale?: "en" | "ko" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const action_purchases: ((inputs?: Action_PurchasesInputs, options?: {
11
+ locale?: "en" | "ko";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Action_PurchasesInputs, {
13
+ locale?: "en" | "ko";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Action_PurchasesInputs = {};
@@ -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 {{}} Action_PurchasesInputs */
7
+
8
+ const en_action_purchases = /** @type {(inputs: Action_PurchasesInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Purchases`)
10
+ };
11
+
12
+ const ko_action_purchases = /** @type {(inputs: Action_PurchasesInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`구매`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Purchases" |
20
+ *
21
+ * @param {Action_PurchasesInputs} inputs
22
+ * @param {{ locale?: "en" | "ko" }} options
23
+ * @returns {LocalizedString}
24
+ */
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
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_action_purchases(inputs)
28
+ return ko_action_purchases(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Reward ads" |
5
+ *
6
+ * @param {Action_Reward_AdsInputs} inputs
7
+ * @param {{ locale?: "en" | "ko" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const action_reward_ads: ((inputs?: Action_Reward_AdsInputs, options?: {
11
+ locale?: "en" | "ko";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Action_Reward_AdsInputs, {
13
+ locale?: "en" | "ko";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Action_Reward_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 {{}} Action_Reward_AdsInputs */
7
+
8
+ const en_action_reward_ads = /** @type {(inputs: Action_Reward_AdsInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`Reward ads`)
10
+ };
11
+
12
+ const ko_action_reward_ads = /** @type {(inputs: Action_Reward_AdsInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`보상광고`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Reward ads" |
20
+ *
21
+ * @param {Action_Reward_AdsInputs} inputs
22
+ * @param {{ locale?: "en" | "ko" }} options
23
+ * @returns {LocalizedString}
24
+ */
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
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_action_reward_ads(inputs)
28
+ return ko_action_reward_ads(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "MPGD Kit" |
5
+ *
6
+ * @param {App_TitleInputs} inputs
7
+ * @param {{ locale?: "en" | "ko" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const app_title: ((inputs?: App_TitleInputs, options?: {
11
+ locale?: "en" | "ko";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<App_TitleInputs, {
13
+ locale?: "en" | "ko";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type App_TitleInputs = {};
@@ -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 {{}} App_TitleInputs */
7
+
8
+ const en_app_title = /** @type {(inputs: App_TitleInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`MPGD Kit`)
10
+ };
11
+
12
+ const ko_app_title = /** @type {(inputs: App_TitleInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`MPGD 키트`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "MPGD Kit" |
20
+ *
21
+ * @param {App_TitleInputs} inputs
22
+ * @param {{ locale?: "en" | "ko" }} options
23
+ * @returns {LocalizedString}
24
+ */
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
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_app_title(inputs)
28
+ return ko_app_title(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "off" |
5
+ *
6
+ * @param {Availability_OffInputs} inputs
7
+ * @param {{ locale?: "en" | "ko" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const availability_off: ((inputs?: Availability_OffInputs, options?: {
11
+ locale?: "en" | "ko";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Availability_OffInputs, {
13
+ locale?: "en" | "ko";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Availability_OffInputs = {};