@byline/cli 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.
@@ -39,9 +39,18 @@ export const i18n = {
39
39
  interface: {
40
40
  defaultLocale: 'en',
41
41
  locales: interfaceLocales.map((l) => l.code),
42
+ // Optional display names for the admin language switcher. Lets you
43
+ // author `Español` rather than the lowercase `español` that
44
+ // Intl.DisplayNames returns; omit to fall back to Intl per code.
45
+ localeDefinitions: interfaceLocales.map((l) => ({ code: l.code, nativeName: l.label })),
42
46
  },
43
47
  content: {
44
48
  defaultLocale: 'en',
45
49
  locales: contentLocales.map((l) => l.code),
50
+ // Optional display names for content locales. Byline doesn't render
51
+ // these (content has no admin switcher) — a public frontend can read
52
+ // them from getServerConfig().i18n.content.localeDefinitions to label
53
+ // hreflang / "read this in…" affordances without a parallel map.
54
+ localeDefinitions: contentLocales.map((l) => ({ code: l.code, nativeName: l.label })),
46
55
  },
47
56
  }
@@ -39,9 +39,18 @@ export const i18n = {
39
39
  interface: {
40
40
  defaultLocale: 'en',
41
41
  locales: interfaceLocales.map((l) => l.code),
42
+ // Optional display names for the admin language switcher. Lets you
43
+ // author `Español` rather than the lowercase `español` that
44
+ // Intl.DisplayNames returns; omit to fall back to Intl per code.
45
+ localeDefinitions: interfaceLocales.map((l) => ({ code: l.code, nativeName: l.label })),
42
46
  },
43
47
  content: {
44
48
  defaultLocale: 'en',
45
49
  locales: contentLocales.map((l) => l.code),
50
+ // Optional display names for content locales. Byline doesn't render
51
+ // these (content has no admin switcher) — a public frontend can read
52
+ // them from getServerConfig().i18n.content.localeDefinitions to label
53
+ // hreflang / "read this in…" affordances without a parallel map.
54
+ localeDefinitions: contentLocales.map((l) => ({ code: l.code, nativeName: l.label })),
46
55
  },
47
56
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@byline/cli",
3
3
  "private": false,
4
4
  "license": "MPL-2.0",
5
- "version": "2.6.0",
5
+ "version": "2.7.0",
6
6
  "engines": {
7
7
  "node": ">=20.9.0"
8
8
  },