@i18n-micro/types 1.2.0 → 1.2.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/index.d.ts CHANGED
@@ -63,6 +63,13 @@ export interface Locale {
63
63
  * If omitted or empty, `iso` is used (then `code`).
64
64
  */
65
65
  og?: string;
66
+ /**
67
+ * When `false`, this locale is omitted from cross-locale SEO tags (`hreflang`,
68
+ * `og:locale:alternate`). If the configured default locale has `seo: false`, the
69
+ * `x-default` hreflang link is not emitted. Routing and translations are unchanged.
70
+ * @default true when omitted.
71
+ */
72
+ seo?: boolean;
66
73
  /** Text direction. Reflected in `<html dir>` when the locale is active. */
67
74
  dir?: 'ltr' | 'rtl' | 'auto';
68
75
  /** Human-readable name shown in language switchers (e.g. `'English'`, `'Deutsch'`). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i18n-micro/types",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "repository": "s00d/nuxt-i18n-micro",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -68,6 +68,13 @@ export interface Locale {
68
68
  * If omitted or empty, `iso` is used (then `code`).
69
69
  */
70
70
  og?: string
71
+ /**
72
+ * When `false`, this locale is omitted from cross-locale SEO tags (`hreflang`,
73
+ * `og:locale:alternate`). If the configured default locale has `seo: false`, the
74
+ * `x-default` hreflang link is not emitted. Routing and translations are unchanged.
75
+ * @default true when omitted.
76
+ */
77
+ seo?: boolean
71
78
  /** Text direction. Reflected in `<html dir>` when the locale is active. */
72
79
  dir?: 'ltr' | 'rtl' | 'auto'
73
80
  /** Human-readable name shown in language switchers (e.g. `'English'`, `'Deutsch'`). */