@i18n-micro/types 1.1.7 → 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 +12 -0
- package/package.json +1 -1
- package/src/index.ts +12 -0
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,18 @@ 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;
|
|
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;
|
|
61
73
|
/** Text direction. Reflected in `<html dir>` when the locale is active. */
|
|
62
74
|
dir?: 'ltr' | 'rtl' | 'auto';
|
|
63
75
|
/** Human-readable name shown in language switchers (e.g. `'English'`, `'Deutsch'`). */
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -63,6 +63,18 @@ 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
|
|
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
|
|
66
78
|
/** Text direction. Reflected in `<html dir>` when the locale is active. */
|
|
67
79
|
dir?: 'ltr' | 'rtl' | 'auto'
|
|
68
80
|
/** Human-readable name shown in language switchers (e.g. `'English'`, `'Deutsch'`). */
|