@energy8platform/shell 0.6.3 → 0.6.4
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/html.cjs.js +11 -4
- package/dist/html.cjs.js.map +1 -1
- package/dist/html.d.ts +2 -2
- package/dist/html.esm.js +11 -4
- package/dist/html.esm.js.map +1 -1
- package/dist/index.cjs.js +11 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +11 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/pixi.cjs.js +11 -4
- package/dist/pixi.cjs.js.map +1 -1
- package/dist/pixi.d.ts +2 -2
- package/dist/pixi.esm.js +11 -4
- package/dist/pixi.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/core/i18n.ts +10 -3
- package/src/core/version.ts +1 -1
package/dist/pixi.cjs.js
CHANGED
|
@@ -1221,12 +1221,19 @@ function normalizeLang(code) {
|
|
|
1221
1221
|
return (LANG_SET.has(base) ? base : 'en');
|
|
1222
1222
|
}
|
|
1223
1223
|
function createI18n(opts) {
|
|
1224
|
-
// Social is the `en-social` pseudo-locale: it rewrites the English source
|
|
1225
|
-
//
|
|
1224
|
+
// Social is the `en-social` pseudo-locale: it rewrites the English source into social-safe
|
|
1225
|
+
// vocabulary. The replacement dictionary only exists for English, so social mode FORCES English —
|
|
1226
|
+
// the requested `language` is ignored, matching the `isSocial` contract ("…derived from English…
|
|
1227
|
+
// regardless of `language`"). Rendering a non-English locale in social mode would leak untranslated
|
|
1228
|
+
// restricted terms, so we never do it.
|
|
1229
|
+
if (opts.isSocial) {
|
|
1230
|
+
const t = (src) => socialize(src);
|
|
1231
|
+
return { lang: 'en', t };
|
|
1232
|
+
}
|
|
1226
1233
|
const lang = normalizeLang(opts.language);
|
|
1227
1234
|
const t = (src) => {
|
|
1228
1235
|
if (lang === 'en')
|
|
1229
|
-
return
|
|
1236
|
+
return src;
|
|
1230
1237
|
return opts.messages?.[lang]?.[src] ?? LOCALES[lang]?.[src] ?? src;
|
|
1231
1238
|
};
|
|
1232
1239
|
return { lang, t };
|
|
@@ -1449,7 +1456,7 @@ class KeyboardController {
|
|
|
1449
1456
|
|
|
1450
1457
|
// AUTO-GENERATED by scripts/gen-version.mjs — do not edit. Mirrors package.json "version".
|
|
1451
1458
|
/** The @energy8platform/shell package version, stamped into the game-info footer. */
|
|
1452
|
-
const PACKAGE_VERSION = '0.6.
|
|
1459
|
+
const PACKAGE_VERSION = '0.6.4';
|
|
1453
1460
|
|
|
1454
1461
|
/** Apply defaults to the raw config (the mount target lives on the renderer, not here). */
|
|
1455
1462
|
function resolveConfig(config) {
|