@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/pixi.d.ts CHANGED
@@ -513,7 +513,7 @@ declare class ShellController extends EventEmitter<ShellEvents> implements Shell
513
513
  tokens: ShellTokens;
514
514
  layout: ShellLayoutMode;
515
515
  soundOn: boolean;
516
- readonly engineVersion = "0.6.3";
516
+ readonly engineVersion = "0.6.4";
517
517
  readonly actions: ShellActions;
518
518
  private renderer;
519
519
  private i18n;
@@ -595,7 +595,7 @@ interface I18n {
595
595
  declare function createI18n(opts: I18nOptions): I18n;
596
596
 
597
597
  /** The @energy8platform/shell package version, stamped into the game-info footer. */
598
- declare const PACKAGE_VERSION = "0.6.3";
598
+ declare const PACKAGE_VERSION = "0.6.4";
599
599
 
600
600
  /** A shell: the renderer-agnostic controller plus the surface facade (safeArea/barHeight/setVisible)
601
601
  * an embedding host reads. `createShell`, `createGameShell` and `createPixiShell` all return this. */
package/dist/pixi.esm.js CHANGED
@@ -1219,12 +1219,19 @@ function normalizeLang(code) {
1219
1219
  return (LANG_SET.has(base) ? base : 'en');
1220
1220
  }
1221
1221
  function createI18n(opts) {
1222
- // Social is the `en-social` pseudo-locale: it rewrites the English source. Non-English locales are
1223
- // authored social-safe already, so `socialize` only runs on the English source string.
1222
+ // Social is the `en-social` pseudo-locale: it rewrites the English source into social-safe
1223
+ // vocabulary. The replacement dictionary only exists for English, so social mode FORCES English
1224
+ // the requested `language` is ignored, matching the `isSocial` contract ("…derived from English…
1225
+ // regardless of `language`"). Rendering a non-English locale in social mode would leak untranslated
1226
+ // restricted terms, so we never do it.
1227
+ if (opts.isSocial) {
1228
+ const t = (src) => socialize(src);
1229
+ return { lang: 'en', t };
1230
+ }
1224
1231
  const lang = normalizeLang(opts.language);
1225
1232
  const t = (src) => {
1226
1233
  if (lang === 'en')
1227
- return opts.isSocial ? socialize(src) : src;
1234
+ return src;
1228
1235
  return opts.messages?.[lang]?.[src] ?? LOCALES[lang]?.[src] ?? src;
1229
1236
  };
1230
1237
  return { lang, t };
@@ -1447,7 +1454,7 @@ class KeyboardController {
1447
1454
 
1448
1455
  // AUTO-GENERATED by scripts/gen-version.mjs — do not edit. Mirrors package.json "version".
1449
1456
  /** The @energy8platform/shell package version, stamped into the game-info footer. */
1450
- const PACKAGE_VERSION = '0.6.3';
1457
+ const PACKAGE_VERSION = '0.6.4';
1451
1458
 
1452
1459
  /** Apply defaults to the raw config (the mount target lives on the renderer, not here). */
1453
1460
  function resolveConfig(config) {