@byline/core 2.6.0 → 2.7.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.
- package/dist/@types/site-config.d.ts +23 -0
- package/package.json +2 -2
|
@@ -55,6 +55,29 @@ export interface BaseConfig {
|
|
|
55
55
|
content: {
|
|
56
56
|
defaultLocale: string;
|
|
57
57
|
locales: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Optional display names for the content locales a document can be
|
|
60
|
+
* published in. Mirrors `interface.localeDefinitions`, but for the
|
|
61
|
+
* *content* dimension rather than the admin chrome.
|
|
62
|
+
*
|
|
63
|
+
* Byline itself does not render these — the content-locale set has
|
|
64
|
+
* no admin switcher. They exist so a host frontend can advertise
|
|
65
|
+
* content languages (hreflang clusters, "read this in…" affordances,
|
|
66
|
+
* sitemap alternates) with author-controlled labels — `Français`
|
|
67
|
+
* rather than the lowercase `français` that CLDR's
|
|
68
|
+
* `Intl.DisplayNames` returns for romance languages — read straight
|
|
69
|
+
* off `getServerConfig().i18n.content.localeDefinitions` instead of
|
|
70
|
+
* maintaining a parallel label map.
|
|
71
|
+
*
|
|
72
|
+
* Hosts that omit this can resolve labels per-code via
|
|
73
|
+
* `Intl.DisplayNames`; hosts that provide it for some codes still
|
|
74
|
+
* fall back for the rest. Entries for codes outside `locales` are
|
|
75
|
+
* silently ignored.
|
|
76
|
+
*/
|
|
77
|
+
localeDefinitions?: ReadonlyArray<{
|
|
78
|
+
code: string;
|
|
79
|
+
nativeName: string;
|
|
80
|
+
}>;
|
|
58
81
|
};
|
|
59
82
|
/**
|
|
60
83
|
* Admin interface translation registry — a `TranslationBundle`
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@byline/core",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.7.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.9.0"
|
|
8
8
|
},
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"sharp": "^0.34.5",
|
|
80
80
|
"uuid": "^14.0.0",
|
|
81
81
|
"zod": "^4.4.3",
|
|
82
|
-
"@byline/auth": "2.
|
|
82
|
+
"@byline/auth": "2.7.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@biomejs/biome": "2.4.15",
|