@wix/himalaya-cli 0.1817.0 → 0.1819.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.
@@ -1,3 +1,5 @@
1
+ import { isPseudoLocale, PSEUDO_LOCALE } from "../../../tools/l10n/pseudo.js";
2
+ export { isPseudoLocale, PSEUDO_LOCALE };
1
3
  export interface CatalogMessage {
2
4
  /** The English text this message was harvested from. Always present. */
3
5
  source: string;
@@ -60,3 +62,19 @@ export declare function duplicateKeys(catalog: Catalog | undefined): {
60
62
  key: string;
61
63
  sources: string[];
62
64
  }[];
65
+ /**
66
+ * The `en-XA` pseudo-locale catalog, derived from the SOURCE locale's catalog: every row's
67
+ * translation is its source string, pseudo-localized. Every row carries one — the keyed
68
+ * runtime-copy rows and the auth-gate rows included, since they live in the same file — so
69
+ * a string that reaches a screen through the catalog paints `⟦…⟧` and one that bypasses it
70
+ * paints plain English (RFC 0054; `pseudo-locale-differential.test.ts`).
71
+ *
72
+ * A pure transform of the input, never a file of its own: nothing to keep fresh, nothing to translate.
73
+ */
74
+ export declare function pseudoCatalog(source: Catalog | undefined): Catalog | undefined;
75
+ /**
76
+ * Whether an `Accept-Language` header asks for the pseudo-locale as its FIRST choice: `en-XA` (or the
77
+ * `qps-ploc` alias) holds the highest q-value, ties broken by order, and its q is above 0. `q=0` means
78
+ * "not acceptable", and `he, en-XA;q=0.5` prefers Hebrew, so neither selects it.
79
+ */
80
+ export declare function prefersPseudoLocale(acceptLanguage: string | undefined | null): boolean;
@@ -0,0 +1,14 @@
1
+ /** The pseudo-locale tag, and the Windows-style alias some hosts send. Compared case-insensitively. */
2
+ export declare const PSEUDO_LOCALE = "en-XA";
3
+ export declare const PSEUDO_LOCALE_ALIASES: readonly string[];
4
+ export declare const PSEUDO_OPEN = "\u27E6";
5
+ export declare const PSEUDO_CLOSE = "\u27E7";
6
+ /** Extra length: translations routinely run 30–40% longer than English. */
7
+ export declare const PSEUDO_EXPANSION = 0.35;
8
+ export declare function isPseudoLocale(tag: string | null | undefined): boolean;
9
+ /**
10
+ * `Sign in` → `⟦Šîĝñ îñ ~~~⟧`. Accents every letter, adds ~35% length and wraps in `⟦…⟧`.
11
+ * ICU `{placeholders}`, `$t:` keys and printf specifiers are preserved. Idempotent: text
12
+ * already wrapped is returned unchanged. An empty string stays empty (nothing to paint).
13
+ */
14
+ export declare function pseudoLocalize(text: string): string;
@@ -2,7 +2,7 @@
2
2
  "files": [
3
3
  {
4
4
  "name": "sw.js",
5
- "bytes": 2620440
5
+ "bytes": 2621480
6
6
  },
7
7
  {
8
8
  "name": "host.html",
@@ -21,7 +21,7 @@
21
21
  "bytes": 24320
22
22
  },
23
23
  {
24
- "name": "preview-deferred/6b75cd09be1a632e3fe09f4c4b24f8faf6da7967bd737d0e834263fdeac9132f.bin",
24
+ "name": "preview-deferred/07b2e5e38ef6723989a20a92ad6fb8739a065fb1c1efda5414180c4d819f93a0.bin",
25
25
  "bytes": 488215
26
26
  },
27
27
  {
@@ -79,10 +79,10 @@
79
79
  ],
80
80
  "deferred": [
81
81
  {
82
- "key": "assets/pdf-hxfZ_Mtv.js",
82
+ "key": "assets/pdf-BgvkxM5D.js",
83
83
  "contentType": "application/javascript; charset=utf-8",
84
- "sha256": "6b75cd09be1a632e3fe09f4c4b24f8faf6da7967bd737d0e834263fdeac9132f",
85
- "file": "preview-deferred/6b75cd09be1a632e3fe09f4c4b24f8faf6da7967bd737d0e834263fdeac9132f.bin"
84
+ "sha256": "07b2e5e38ef6723989a20a92ad6fb8739a065fb1c1efda5414180c4d819f93a0",
85
+ "file": "preview-deferred/07b2e5e38ef6723989a20a92ad6fb8739a065fb1c1efda5414180c4d819f93a0.bin"
86
86
  },
87
87
  {
88
88
  "key": "assets/pdf.worker.min-BGnVRhRG.js",