@wix/himalaya-cli 0.1738.0 → 0.1740.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.
|
@@ -78,3 +78,16 @@ export declare function collectRenderedServicePaths(descriptor: unknown): string
|
|
|
78
78
|
* an upper bound; the caller decides what to do with that (see RFC 0054 §1).
|
|
79
79
|
*/
|
|
80
80
|
export declare function collectWorkerCopy(descriptor: unknown, services: Record<string, unknown>): string[];
|
|
81
|
+
/** Is this literal a translation key rather than copy? `keys` is the app's `$t:` key set, if known. */
|
|
82
|
+
export declare function isKeyShapedLiteral(s: unknown, keys?: {
|
|
83
|
+
has(key: string): boolean;
|
|
84
|
+
}): s is string;
|
|
85
|
+
/**
|
|
86
|
+
* #5931 — literals on user-visible props that are shaped like a translation key. Such a value
|
|
87
|
+
* paints the key itself: either a `$t:` lost its sigil, a string-table lookup fell back to its key,
|
|
88
|
+
* or (the E07 case) a shell drew an item's id because nothing else named it. Same props as
|
|
89
|
+
* `collectDescriptorStrings`, which drops exactly these values as "identifier-shaped, not copy".
|
|
90
|
+
*/
|
|
91
|
+
export declare function collectKeyShapedLiterals(descriptor: unknown, keys?: {
|
|
92
|
+
has(key: string): boolean;
|
|
93
|
+
}): L10nStringFinding[];
|