@vit-foundation/ui 0.20.0 → 0.20.1
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/config/types.d.ts +8 -1
- package/dist/config/types.js +7 -0
- package/package.json +1 -1
package/dist/config/types.d.ts
CHANGED
|
@@ -9,7 +9,14 @@ import type { EditMessages } from './edit-messages.js';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const LOCALES: readonly ["ca", "en", "es"];
|
|
11
11
|
export type Locale = (typeof LOCALES)[number];
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Declared as the LITERAL, not widened to `Locale`. `Exclude<Locale, typeof
|
|
14
|
+
* BASE_LOCALE>` is how a host names "the locales that are not canonical" —
|
|
15
|
+
* the set a translations editor fills from the canonical one — and the
|
|
16
|
+
* annotation threw that away, resolving it to `never`. A consumer that wants
|
|
17
|
+
* the wide type can still write `const l: Locale = BASE_LOCALE`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const BASE_LOCALE = "ca";
|
|
13
20
|
/** One primary-navigation entry, rendered by Nav and repeated by Footer. */
|
|
14
21
|
export interface SiteLink {
|
|
15
22
|
/** Present only where the nav is editable — structural ops need identity. */
|
package/dist/config/types.js
CHANGED
|
@@ -6,4 +6,11 @@
|
|
|
6
6
|
* consumer option.
|
|
7
7
|
*/
|
|
8
8
|
export const LOCALES = ['ca', 'en', 'es'];
|
|
9
|
+
/**
|
|
10
|
+
* Declared as the LITERAL, not widened to `Locale`. `Exclude<Locale, typeof
|
|
11
|
+
* BASE_LOCALE>` is how a host names "the locales that are not canonical" —
|
|
12
|
+
* the set a translations editor fills from the canonical one — and the
|
|
13
|
+
* annotation threw that away, resolving it to `never`. A consumer that wants
|
|
14
|
+
* the wide type can still write `const l: Locale = BASE_LOCALE`.
|
|
15
|
+
*/
|
|
9
16
|
export const BASE_LOCALE = 'ca';
|