@easy-web/i18n 1.5.0 → 1.6.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
@@ -3,7 +3,7 @@
3
3
  * in `@easy-web/core/i18n`; each symbol is re-exported here as a `@deprecated`
4
4
  * alias so editors flag the old import path.
5
5
  */
6
- import { ambientTrailingSlash as coreAmbientTrailingSlash, createI18n as coreCreateI18n, findLocalizedGroup as coreFindLocalizedGroup, formatCurrency as coreFormatCurrency, formatDate as coreFormatDate, formatList as coreFormatList, formatNumber as coreFormatNumber, formatRelativeTime as coreFormatRelativeTime, getAlternateLinks as coreGetAlternateLinks, getCanonicalUrl as coreGetCanonicalUrl, getLocaleFromPath as coreGetLocaleFromPath, localizedHref as coreLocalizedHref, normalizeLocalizedPath as coreNormalizeLocalizedPath, stripQueryAndHash as coreStripQueryAndHash, toServedPath as coreToServedPath, validateLocalizedPaths as coreValidateLocalizedPaths, type AlternateLink as CoreAlternateLink, type I18nConfig as CoreI18nConfig, type LocalizedPathGroup as CoreLocalizedPathGroup, type TrailingSlash as CoreTrailingSlash } from '@easy-web/core/i18n';
6
+ import { UnselectedContentLocaleError as coreUnselectedContentLocaleError, ambientTrailingSlash as coreAmbientTrailingSlash, contentLocaleSchema as coreContentLocaleSchema, createExplicitFormatters as coreCreateExplicitFormatters, createI18n as coreCreateI18n, createLocalizationSchema as coreCreateLocalizationSchema, currencyCodeSchema as coreCurrencyCodeSchema, dateOnlySchema as coreDateOnlySchema, findLocalizedGroup as coreFindLocalizedGroup, formatCurrency as coreFormatCurrency, formatDate as coreFormatDate, formatList as coreFormatList, formatLocaleSchema as coreFormatLocaleSchema, formatLocalesSchema as coreFormatLocalesSchema, formatNumber as coreFormatNumber, formatRelativeTime as coreFormatRelativeTime, getAlternateLinks as coreGetAlternateLinks, getCanonicalUrl as coreGetCanonicalUrl, getLocaleFromPath as coreGetLocaleFromPath, ianaTimeZoneSchema as coreIanaTimeZoneSchema, localizedHref as coreLocalizedHref, normalizeLocalizedPath as coreNormalizeLocalizedPath, optionalCurrencyCodeSchema as coreOptionalCurrencyCodeSchema, parseCreateLocalization as coreParseCreateLocalization, resolveDetectedCliUiLocale as coreResolveDetectedCliUiLocale, resolveFormatContext as coreResolveFormatContext, stripQueryAndHash as coreStripQueryAndHash, toServedPath as coreToServedPath, validateLocalizedPaths as coreValidateLocalizedPaths, type AlternateLink as CoreAlternateLink, type CliUiLocale as CoreCliUiLocale, type ContentLocale as CoreContentLocale, type CreateLocalization as CoreCreateLocalization, type CurrencyCode as CoreCurrencyCode, type CurrencyFormatOptions as CoreCurrencyFormatOptions, type DateOnly as CoreDateOnly, type DateOnlyFormatOptions as CoreDateOnlyFormatOptions, type DecimalFormatOptions as CoreDecimalFormatOptions, type ExplicitFormatContext as CoreExplicitFormatContext, type FormatLocale as CoreFormatLocale, type FormatLocales as CoreFormatLocales, type I18nConfig as CoreI18nConfig, type IanaTimeZone as CoreIanaTimeZone, type InstantFormatOptions as CoreInstantFormatOptions, type LocalizationInterviewLabels as CoreLocalizationInterviewLabels, type LocalizedPathGroup as CoreLocalizedPathGroup, type TrailingSlash as CoreTrailingSlash } from '@easy-web/core/i18n';
7
7
  /** @deprecated Import from `@easy-web/core/i18n` instead. */
8
8
  export declare const createI18n: typeof coreCreateI18n;
9
9
  /** @deprecated Import from `@easy-web/core/i18n` instead. */
@@ -37,6 +37,66 @@ export declare const getAlternateLinks: typeof coreGetAlternateLinks;
37
37
  /** @deprecated Import from `@easy-web/core/i18n` instead. */
38
38
  export declare const getCanonicalUrl: typeof coreGetCanonicalUrl;
39
39
  /** @deprecated Import from `@easy-web/core/i18n` instead. */
40
+ export declare const UnselectedContentLocaleError: typeof coreUnselectedContentLocaleError;
41
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
42
+ export declare const cliUiLocaleSchema: import("astro/zod").ZodEnum<{
43
+ en: "en";
44
+ de: "de";
45
+ }>;
46
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
47
+ export declare const contentLocaleSchema: typeof coreContentLocaleSchema;
48
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
49
+ export declare const createExplicitFormatters: typeof coreCreateExplicitFormatters;
50
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
51
+ export declare const createLocalizationSchema: typeof coreCreateLocalizationSchema;
52
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
53
+ export declare const currencyCodeSchema: typeof coreCurrencyCodeSchema;
54
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
55
+ export declare const dateOnlySchema: typeof coreDateOnlySchema;
56
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
57
+ export declare const formatLocaleSchema: typeof coreFormatLocaleSchema;
58
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
59
+ export declare const formatLocalesSchema: typeof coreFormatLocalesSchema;
60
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
61
+ export declare const ianaTimeZoneSchema: typeof coreIanaTimeZoneSchema;
62
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
63
+ export declare const localizationInterviewCatalogs: {
64
+ readonly en: {
65
+ readonly cliUiLocale: "Interview language";
66
+ readonly contentLocales: "Site content languages (BCP47)";
67
+ readonly defaultContentLocale: "Default content language";
68
+ readonly localizedLabels: "Translated site labels";
69
+ readonly localizedPaths: "Translated public routes (only differing slugs)";
70
+ readonly formatMode: "Shared or per-language regional formatting";
71
+ readonly sharedFormatLocale: "Shared format locale (for example en-GB)";
72
+ readonly perLanguageFormatLocales: "Format locale for each content language";
73
+ readonly timeZone: "IANA timezone (for example Europe/London)";
74
+ readonly moneyCurrency: "Currency for money content (ISO 4217)";
75
+ readonly invalidInput: "Invalid explicit localization input";
76
+ };
77
+ readonly de: {
78
+ readonly cliUiLocale: "Sprache des Interviews";
79
+ readonly contentLocales: "Inhaltssprachen der Website (BCP47)";
80
+ readonly defaultContentLocale: "Standard-Inhaltssprache";
81
+ readonly localizedLabels: "\u00DCbersetzte Website-Beschriftungen";
82
+ readonly localizedPaths: "\u00DCbersetzte \u00F6ffentliche Routen (nur unterschiedliche Slugs)";
83
+ readonly formatMode: "Gemeinsame oder sprachabh\u00E4ngige regionale Formatierung";
84
+ readonly sharedFormatLocale: "Gemeinsames Format-Gebietsschema (zum Beispiel de-AT)";
85
+ readonly perLanguageFormatLocales: "Format-Gebietsschema je Inhaltssprache";
86
+ readonly timeZone: "IANA-Zeitzone (zum Beispiel Europe/Vienna)";
87
+ readonly moneyCurrency: "W\u00E4hrung f\u00FCr Geldinhalte (ISO 4217)";
88
+ readonly invalidInput: "Ung\u00FCltige explizite Lokalisierungseingabe";
89
+ };
90
+ };
91
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
92
+ export declare const optionalCurrencyCodeSchema: typeof coreOptionalCurrencyCodeSchema;
93
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
94
+ export declare const parseCreateLocalization: typeof coreParseCreateLocalization;
95
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
96
+ export declare const resolveDetectedCliUiLocale: typeof coreResolveDetectedCliUiLocale;
97
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
98
+ export declare const resolveFormatContext: typeof coreResolveFormatContext;
99
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
40
100
  export type I18nConfig<L extends string> = CoreI18nConfig<L>;
41
101
  /** @deprecated Import from `@easy-web/core/i18n` instead. */
42
102
  export type LocalizedPathGroup = CoreLocalizedPathGroup;
@@ -44,4 +104,32 @@ export type LocalizedPathGroup = CoreLocalizedPathGroup;
44
104
  export type TrailingSlash = CoreTrailingSlash;
45
105
  /** @deprecated Import from `@easy-web/core/i18n` instead. */
46
106
  export type AlternateLink = CoreAlternateLink;
107
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
108
+ export type CliUiLocale = CoreCliUiLocale;
109
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
110
+ export type ContentLocale = CoreContentLocale;
111
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
112
+ export type FormatLocale = CoreFormatLocale;
113
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
114
+ export type IanaTimeZone = CoreIanaTimeZone;
115
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
116
+ export type CurrencyCode = CoreCurrencyCode;
117
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
118
+ export type FormatLocales = CoreFormatLocales;
119
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
120
+ export type CreateLocalization = CoreCreateLocalization;
121
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
122
+ export type LocalizationInterviewLabels = CoreLocalizationInterviewLabels;
123
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
124
+ export type ExplicitFormatContext = CoreExplicitFormatContext;
125
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
126
+ export type DateOnly = CoreDateOnly;
127
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
128
+ export type DateOnlyFormatOptions = CoreDateOnlyFormatOptions;
129
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
130
+ export type InstantFormatOptions = CoreInstantFormatOptions;
131
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
132
+ export type DecimalFormatOptions = CoreDecimalFormatOptions;
133
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
134
+ export type CurrencyFormatOptions = CoreCurrencyFormatOptions;
47
135
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,oBAAoB,IAAI,wBAAwB,EAChD,UAAU,IAAI,cAAc,EAC5B,kBAAkB,IAAI,sBAAsB,EAC5C,cAAc,IAAI,kBAAkB,EACpC,UAAU,IAAI,cAAc,EAC5B,UAAU,IAAI,cAAc,EAC5B,YAAY,IAAI,gBAAgB,EAChC,kBAAkB,IAAI,sBAAsB,EAC5C,iBAAiB,IAA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
  * in `@easy-web/core/i18n`; each symbol is re-exported here as a `@deprecated`
4
4
  * alias so editors flag the old import path.
5
5
  */
6
- import { ambientTrailingSlash as coreAmbientTrailingSlash, createI18n as coreCreateI18n, findLocalizedGroup as coreFindLocalizedGroup, formatCurrency as coreFormatCurrency, formatDate as coreFormatDate, formatList as coreFormatList, formatNumber as coreFormatNumber, formatRelativeTime as coreFormatRelativeTime, getAlternateLinks as coreGetAlternateLinks, getCanonicalUrl as coreGetCanonicalUrl, getLocaleFromPath as coreGetLocaleFromPath, localizedHref as coreLocalizedHref, normalizeLocalizedPath as coreNormalizeLocalizedPath, stripQueryAndHash as coreStripQueryAndHash, toServedPath as coreToServedPath, validateLocalizedPaths as coreValidateLocalizedPaths, } from '@easy-web/core/i18n';
6
+ import { UnselectedContentLocaleError as coreUnselectedContentLocaleError, ambientTrailingSlash as coreAmbientTrailingSlash, cliUiLocaleSchema as coreCliUiLocaleSchema, contentLocaleSchema as coreContentLocaleSchema, createExplicitFormatters as coreCreateExplicitFormatters, createI18n as coreCreateI18n, createLocalizationSchema as coreCreateLocalizationSchema, currencyCodeSchema as coreCurrencyCodeSchema, dateOnlySchema as coreDateOnlySchema, findLocalizedGroup as coreFindLocalizedGroup, formatCurrency as coreFormatCurrency, formatDate as coreFormatDate, formatList as coreFormatList, formatLocaleSchema as coreFormatLocaleSchema, formatLocalesSchema as coreFormatLocalesSchema, formatNumber as coreFormatNumber, formatRelativeTime as coreFormatRelativeTime, getAlternateLinks as coreGetAlternateLinks, getCanonicalUrl as coreGetCanonicalUrl, getLocaleFromPath as coreGetLocaleFromPath, ianaTimeZoneSchema as coreIanaTimeZoneSchema, localizationInterviewCatalogs as coreLocalizationInterviewCatalogs, localizedHref as coreLocalizedHref, normalizeLocalizedPath as coreNormalizeLocalizedPath, optionalCurrencyCodeSchema as coreOptionalCurrencyCodeSchema, parseCreateLocalization as coreParseCreateLocalization, resolveDetectedCliUiLocale as coreResolveDetectedCliUiLocale, resolveFormatContext as coreResolveFormatContext, stripQueryAndHash as coreStripQueryAndHash, toServedPath as coreToServedPath, validateLocalizedPaths as coreValidateLocalizedPaths, } from '@easy-web/core/i18n';
7
7
  /** @deprecated Import from `@easy-web/core/i18n` instead. */
8
8
  export const createI18n = coreCreateI18n;
9
9
  /** @deprecated Import from `@easy-web/core/i18n` instead. */
@@ -36,4 +36,34 @@ export const getLocaleFromPath = coreGetLocaleFromPath;
36
36
  export const getAlternateLinks = coreGetAlternateLinks;
37
37
  /** @deprecated Import from `@easy-web/core/i18n` instead. */
38
38
  export const getCanonicalUrl = coreGetCanonicalUrl;
39
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
40
+ export const UnselectedContentLocaleError = coreUnselectedContentLocaleError;
41
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
42
+ export const cliUiLocaleSchema = coreCliUiLocaleSchema;
43
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
44
+ export const contentLocaleSchema = coreContentLocaleSchema;
45
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
46
+ export const createExplicitFormatters = coreCreateExplicitFormatters;
47
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
48
+ export const createLocalizationSchema = coreCreateLocalizationSchema;
49
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
50
+ export const currencyCodeSchema = coreCurrencyCodeSchema;
51
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
52
+ export const dateOnlySchema = coreDateOnlySchema;
53
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
54
+ export const formatLocaleSchema = coreFormatLocaleSchema;
55
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
56
+ export const formatLocalesSchema = coreFormatLocalesSchema;
57
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
58
+ export const ianaTimeZoneSchema = coreIanaTimeZoneSchema;
59
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
60
+ export const localizationInterviewCatalogs = coreLocalizationInterviewCatalogs;
61
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
62
+ export const optionalCurrencyCodeSchema = coreOptionalCurrencyCodeSchema;
63
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
64
+ export const parseCreateLocalization = coreParseCreateLocalization;
65
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
66
+ export const resolveDetectedCliUiLocale = coreResolveDetectedCliUiLocale;
67
+ /** @deprecated Import from `@easy-web/core/i18n` instead. */
68
+ export const resolveFormatContext = coreResolveFormatContext;
39
69
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,oBAAoB,IAAI,wBAAwB,EAChD,UAAU,IAAI,cAAc,EAC5B,kBAAkB,IAAI,sBAAsB,EAC5C,cAAc,IAAI,kBAAkB,EACpC,UAAU,IAAI,cAAc,EAC5B,UAAU,IAAI,cAAc,EAC5B,YAAY,IAAI,gBAAgB,EAChC,kBAAkB,IAAI,sBAAsB,EAC5C,iBAAiB,IAAI,qBAAqB,EAC1C,eAAe,IAAI,mBAAmB,EACtC,iBAAiB,IAAI,qBAAqB,EAC1C,aAAa,IAAI,iBAAiB,EAClC,sBAAsB,IAAI,0BAA0B,EACpD,iBAAiB,IAAI,qBAAqB,EAC1C,YAAY,IAAI,gBAAgB,EAChC,sBAAsB,IAAI,0BAA0B,GAKrD,MAAM,qBAAqB,CAAC;AAE7B,6DAA6D;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAC;AACzC,6DAA6D;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,cAAc,CAAC;AACzC,6DAA6D;AAC7D,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAC7C,6DAA6D;AAC7D,MAAM,CAAC,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AACzD,6DAA6D;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,cA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,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AACnE,6DAA6D;AAC7D,MAAM,CAAC,MAAM,0BAA0B,GAAG,8BAA8B,CAAC;AACzE,6DAA6D;AAC7D,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-web/i18n",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@easy-web/core": "1.5.0"
29
+ "@easy-web/core": "1.6.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@inlang/paraglide-js": "^2.0.0",