@i18n-micro/types 1.1.7 → 1.2.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/index.d.ts CHANGED
@@ -58,6 +58,11 @@ export interface Locale {
58
58
  disabled?: boolean;
59
59
  /** ISO 639-1 / BCP-47 tag for `<html lang>` and `hreflang` SEO attributes (e.g. `'en-US'`). */
60
60
  iso?: string;
61
+ /**
62
+ * Open Graph locale for `og:locale` / `og:locale:alternate` meta `content` (e.g. `ar_AE`).
63
+ * If omitted or empty, `iso` is used (then `code`).
64
+ */
65
+ og?: string;
61
66
  /** Text direction. Reflected in `<html dir>` when the locale is active. */
62
67
  dir?: 'ltr' | 'rtl' | 'auto';
63
68
  /** 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.1.7",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "repository": "s00d/nuxt-i18n-micro",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -63,6 +63,11 @@ export interface Locale {
63
63
  disabled?: boolean
64
64
  /** ISO 639-1 / BCP-47 tag for `<html lang>` and `hreflang` SEO attributes (e.g. `'en-US'`). */
65
65
  iso?: string
66
+ /**
67
+ * Open Graph locale for `og:locale` / `og:locale:alternate` meta `content` (e.g. `ar_AE`).
68
+ * If omitted or empty, `iso` is used (then `code`).
69
+ */
70
+ og?: string
66
71
  /** Text direction. Reflected in `<html dir>` when the locale is active. */
67
72
  dir?: 'ltr' | 'rtl' | 'auto'
68
73
  /** Human-readable name shown in language switchers (e.g. `'English'`, `'Deutsch'`). */