generaltranslation 8.2.7 → 8.2.9

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{ApiError-4zIP-twr.cjs → ApiError-CZ45tkW6.cjs} +1 -1
  3. package/dist/{ApiError-4zIP-twr.cjs.map → ApiError-CZ45tkW6.cjs.map} +1 -1
  4. package/dist/{ApiError-Bv7vlzyQ.mjs → ApiError-IYfaOR30.mjs} +1 -1
  5. package/dist/{ApiError-Bv7vlzyQ.mjs.map → ApiError-IYfaOR30.mjs.map} +1 -1
  6. package/dist/IntlCache-Ccg_cQPR.mjs +195 -0
  7. package/dist/IntlCache-Ccg_cQPR.mjs.map +1 -0
  8. package/dist/IntlCache-k2qfrDqB.cjs +212 -0
  9. package/dist/IntlCache-k2qfrDqB.cjs.map +1 -0
  10. package/dist/base64-C1sogiix.mjs +70 -0
  11. package/dist/base64-C1sogiix.mjs.map +1 -0
  12. package/dist/base64-CUcEPEC5.cjs +111 -0
  13. package/dist/base64-CUcEPEC5.cjs.map +1 -0
  14. package/dist/core-CJMv4fMa.d.cts +209 -0
  15. package/dist/core-DOrYXXpO.mjs +1487 -0
  16. package/dist/core-DOrYXXpO.mjs.map +1 -0
  17. package/dist/core-DtPj_ruw.d.mts +209 -0
  18. package/dist/core-LS3Pia40.cjs +1666 -0
  19. package/dist/core-LS3Pia40.cjs.map +1 -0
  20. package/dist/core.cjs +8 -0
  21. package/dist/core.d.cts +2 -0
  22. package/dist/core.d.mts +2 -0
  23. package/dist/core.mjs +2 -0
  24. package/dist/errors.cjs +1 -1
  25. package/dist/errors.mjs +1 -1
  26. package/dist/{id-CPbVYREY.mjs → id-BmOyfaug.mjs} +2 -2
  27. package/dist/{id-CPbVYREY.mjs.map → id-BmOyfaug.mjs.map} +1 -1
  28. package/dist/{id-VXBgyXu2.cjs → id-COlX5v3V.cjs} +6 -6
  29. package/dist/{id-VXBgyXu2.cjs.map → id-COlX5v3V.cjs.map} +1 -1
  30. package/dist/id.cjs +1 -1
  31. package/dist/id.d.cts +1 -1
  32. package/dist/id.d.mts +1 -1
  33. package/dist/id.mjs +1 -1
  34. package/dist/index.cjs +91 -1413
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +7 -103
  37. package/dist/index.d.mts +7 -103
  38. package/dist/index.mjs +43 -1342
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/internal.cjs +602 -42
  41. package/dist/internal.cjs.map +1 -0
  42. package/dist/internal.d.cts +23 -2
  43. package/dist/internal.d.mts +23 -2
  44. package/dist/internal.mjs +563 -3
  45. package/dist/internal.mjs.map +1 -0
  46. package/dist/{sha2-DKowBr6H.cjs → isVariable-B08mggBy.cjs} +18 -18
  47. package/dist/isVariable-B08mggBy.cjs.map +1 -0
  48. package/dist/{stableStringify-DgDlE_pD.mjs → isVariable-CYsKFHvR.mjs} +19 -19
  49. package/dist/isVariable-CYsKFHvR.mjs.map +1 -0
  50. package/dist/{types-fUW4_Ole.d.mts → types-Dfy_sRLD.d.mts} +6 -2
  51. package/dist/{types-D2fTTTvZ.d.cts → types-mZeu4HS3.d.cts} +6 -2
  52. package/dist/types.d.cts +1 -1
  53. package/dist/types.d.mts +1 -1
  54. package/package.json +17 -1
  55. package/dist/internal-CTeI8uLd.mjs +0 -774
  56. package/dist/internal-CTeI8uLd.mjs.map +0 -1
  57. package/dist/internal-PCKq4YMW.cjs +0 -1012
  58. package/dist/internal-PCKq4YMW.cjs.map +0 -1
  59. package/dist/sha2-DKowBr6H.cjs.map +0 -1
  60. package/dist/stableStringify-DgDlE_pD.mjs.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
- import { $ as FileReference, A as BranchDataResult, B as FileUpload, C as ProcessMovesOptions, D as FileDataQuery, Dt as StringFormat, F as DownloadFileOptions, H as UploadFilesResponse, I as PublishFileEntry, J as DownloadFileBatchOptions, L as PublishFilesResult, M as TranslationError, Mt as CustomMapping, N as TranslationResult, O as FileDataResult, T as GetOrphanedFilesResult, U as CreateTagOptions, V as UploadFilesOptions, W as CreateTagResult, X as DownloadFileBatchResult, Y as DownloadFileBatchRequest, _ as AwaitJobsResult, at as CheckFileTranslationsOptions, et as FileReferenceIds, g as AwaitJobsOptions, h as SubmitUserEditDiffsPayload, j as TranslateManyResult, jt as LocaleProperties, k as BranchQuery, mt as TranslateOptions, n as FormatVariables, ot as FileQuery, pt as TranslateManyEntry, rt as EnqueueFilesResult, st as FileQueryResult, w as ProcessMovesResponse, x as MoveMapping, y as CheckJobStatusResult } from "./types-D2fTTTvZ.cjs";
1
+ import { a as standardizeLocale, c as CutoffFormatOptions, i as resolveCanonicalLocale, n as formatMessage, o as LocaleConfig, r as isValidLocale, s as LocaleConfigConstructorParams, t as formatCutoff } from "./core-CJMv4fMa.cjs";
2
+ import { $ as FileReference, A as BranchDataResult, B as FileUpload, C as ProcessMovesOptions, D as FileDataQuery, Dt as StringFormat, F as DownloadFileOptions, H as UploadFilesResponse, I as PublishFileEntry, J as DownloadFileBatchOptions, L as PublishFilesResult, M as TranslationError, Mt as CustomMapping, N as TranslationResult, O as FileDataResult, T as GetOrphanedFilesResult, U as CreateTagOptions, V as UploadFilesOptions, W as CreateTagResult, X as DownloadFileBatchResult, Y as DownloadFileBatchRequest, _ as AwaitJobsResult, at as CheckFileTranslationsOptions, et as FileReferenceIds, g as AwaitJobsOptions, h as SubmitUserEditDiffsPayload, j as TranslateManyResult, jt as LocaleProperties, k as BranchQuery, mt as TranslateOptions, n as FormatVariables, ot as FileQuery, pt as TranslateManyEntry, rt as EnqueueFilesResult, st as FileQueryResult, w as ProcessMovesResponse, x as MoveMapping, y as CheckJobStatusResult } from "./types-mZeu4HS3.cjs";
2
3
 
3
4
  //#region src/translate/setupProject.d.ts
4
5
  type SetupProjectResult = {
@@ -53,24 +54,6 @@ type CreateBranchResult = {
53
54
  };
54
55
  };
55
56
  //#endregion
56
- //#region src/formatting/custom-formats/CutoffFormat/types.d.ts
57
- /** Type of terminator */
58
- type CutoffFormatStyle = 'none' | 'ellipsis';
59
- /** Terminator options */
60
- interface TerminatorOptions {
61
- /** The terminator to use */
62
- terminator?: string;
63
- /** An optional separator between the terminator and the value */
64
- separator?: string;
65
- }
66
- /** Input formatting options (for constructor) */
67
- interface CutoffFormatOptions extends TerminatorOptions {
68
- /** Cutoff length */
69
- maxChars?: number;
70
- /** Type of terminator */
71
- style?: CutoffFormatStyle;
72
- }
73
- //#endregion
74
57
  //#region src/index.d.ts
75
58
  /**
76
59
  * Type representing the constructor parameters for the GT class.
@@ -123,14 +106,16 @@ declare class GT {
123
106
  targetLocale?: string;
124
107
  /** Array of supported locales */
125
108
  locales?: string[];
126
- /** Array of locales used for rendering variables */
127
- _renderingLocales: string[];
128
109
  /** Custom mapping for locale codes to their names */
129
110
  customMapping?: CustomMapping;
130
111
  /** Lazily derived reverse custom mapping for alias locales */
131
112
  reverseCustomMapping?: Record<string, string>;
132
113
  /** Lazily derived custom mapping for regions */
133
114
  customRegionMapping?: CustomRegionMapping;
115
+ /** Runtime-safe locale and formatting helpers (backing field) */
116
+ private _localeConfig;
117
+ /** Runtime-safe locale and formatting helpers */
118
+ get localeConfig(): LocaleConfig;
134
119
  /**
135
120
  * Constructs an instance of the GT class.
136
121
  *
@@ -840,67 +825,6 @@ declare class GT {
840
825
  */
841
826
  isSupersetLocale(superLocale: string, subLocale: string): boolean;
842
827
  }
843
- /**
844
- * Formats a string with cutoff behavior, applying a terminator when the string exceeds the maximum character limit.
845
- *
846
- * This standalone function provides cutoff formatting functionality without requiring a GT instance.
847
- * The locales parameter is required for proper terminator selection based on the target language.
848
- *
849
- * @param {string} value - The string value to format with cutoff behavior.
850
- * @param {Object} [options] - Configuration options for cutoff formatting.
851
- * @param {string | string[]} [options.locales] - The locales to use for terminator selection.
852
- * @param {number} [options.maxChars] - The maximum number of characters to display.
853
- * - Undefined values are treated as no cutoff.
854
- * - Negative values follow .slice() behavior and terminator will be added before the value.
855
- * - 0 will result in an empty string.
856
- * - If cutoff results in an empty string, no terminator is added.
857
- * @param {CutoffFormatStyle} [options.style='ellipsis'] - The style of the terminator.
858
- * @param {string} [options.terminator] - Optional override the terminator to use.
859
- * @param {string} [options.separator] - Optional override the separator to use between the terminator and the value.
860
- * - If no terminator is provided, then separator is ignored.
861
- * @returns {string} The formatted string with terminator applied if cutoff occurs.
862
- *
863
- * @example
864
- * formatCutoff('Hello, world!', { locales: 'en-US', maxChars: 8 });
865
- * // Returns: 'Hello, w...'
866
- *
867
- * @example
868
- * formatCutoff('Hello, world!', { locales: 'en-US', maxChars: -3 });
869
- * // Returns: '...ld!'
870
- *
871
- * @example
872
- * formatCutoff('Very long text that needs cutting', {
873
- * locales: 'en-US',
874
- * maxChars: 15,
875
- * style: 'ellipsis',
876
- * separator: ' '
877
- * });
878
- * // Returns: 'Very long text ...'
879
- */
880
- declare function formatCutoff(value: string, options?: {
881
- locales?: string | string[];
882
- } & CutoffFormatOptions): string;
883
- /**
884
- * Formats a message according to the specified locales and options.
885
- *
886
- * @param {string} message - The message to format.
887
- * @param {string | string[]} [locales='en'] - The locales to use for formatting.
888
- * @param {FormatVariables} [variables={}] - The variables to use for formatting.
889
- * @param {StringFormat} [dataFormat='ICU'] - The format of the message. (When STRING, the message is returned as is)
890
- * @returns {string} The formatted message.
891
- *
892
- * @example
893
- * formatMessage('Hello {name}', { name: 'John' });
894
- * // Returns: "Hello John"
895
- *
896
- * formatMessage('Hello {name}', { name: 'John' }, { locales: ['fr'] });
897
- * // Returns: "Bonjour John"
898
- */
899
- declare function formatMessage(message: string, options?: {
900
- locales?: string | string[];
901
- variables?: FormatVariables;
902
- dataFormat?: StringFormat;
903
- }): string;
904
828
  /**
905
829
  * Formats a number according to the specified locales and options.
906
830
  * @param {Object} params - The parameters for the number formatting.
@@ -1103,13 +1027,6 @@ declare function determineLocale(locales: string | string[], approvedLocales?: s
1103
1027
  * @returns {string} - 'rtl' if the locale is right-to-left, otherwise 'ltr'.
1104
1028
  */
1105
1029
  declare function getLocaleDirection(locale: string): 'ltr' | 'rtl';
1106
- /**
1107
- * Checks if a given BCP 47 locale code is valid.
1108
- * @param {string} locale - The BCP 47 locale code to validate.
1109
- * @param {CustomMapping} [customMapping] - The custom mapping to use for validation.
1110
- * @returns {boolean} True if the BCP 47 code is valid, false otherwise.
1111
- */
1112
- declare function isValidLocale(locale: string, customMapping?: CustomMapping): boolean;
1113
1030
  /**
1114
1031
  * Resolves the alias locale for a given locale.
1115
1032
  * @param {string} locale - The locale to resolve the alias locale for
@@ -1117,19 +1034,6 @@ declare function isValidLocale(locale: string, customMapping?: CustomMapping): b
1117
1034
  * @returns {string} The alias locale
1118
1035
  */
1119
1036
  declare function resolveAliasLocale(locale: string, customMapping?: CustomMapping): string;
1120
- /**
1121
- * Resolves the canonical locale for a given locale.
1122
- * @param {string} locale - The locale to resolve the canonical locale for
1123
- * @param {CustomMapping} [customMapping] - The custom mapping to use for resolving the canonical locale
1124
- * @returns {string} The canonical locale
1125
- */
1126
- declare function resolveCanonicalLocale(locale: string, customMapping?: CustomMapping): string;
1127
- /**
1128
- * Standardizes a BCP 47 locale code to ensure correct formatting.
1129
- * @param {string} locale - The BCP 47 locale code to standardize.
1130
- * @returns {string} The standardized BCP 47 locale code or an empty string if it is an invalid code.
1131
- */
1132
- declare function standardizeLocale(locale: string): string;
1133
1037
  /**
1134
1038
  * Checks if multiple BCP 47 locale codes represent the same dialect.
1135
1039
  * @param {string[]} locales - The BCP 47 locale codes to compare.
@@ -1153,5 +1057,5 @@ declare function isSameLanguage(...locales: (string | string[])[]): boolean;
1153
1057
  declare function isSupersetLocale(superLocale: string, subLocale: string): boolean;
1154
1058
  declare const API_VERSION = "2026-03-06.v1";
1155
1059
  //#endregion
1156
- export { API_VERSION, GT, determineLocale, formatCurrency, formatCutoff, formatDateTime, formatList, formatListToParts, formatMessage, formatNum, formatRelativeTime, formatRelativeTimeFromDate, getLocaleDirection, getLocaleEmoji, getLocaleName, getLocaleProperties, getRegionProperties, isSameDialect, isSameLanguage, isSupersetLocale, isValidLocale, requiresTranslation, resolveAliasLocale, resolveCanonicalLocale, standardizeLocale };
1060
+ export { API_VERSION, GT, LocaleConfig, type LocaleConfigConstructorParams, determineLocale, formatCurrency, formatCutoff, formatDateTime, formatList, formatListToParts, formatMessage, formatNum, formatRelativeTime, formatRelativeTimeFromDate, getLocaleDirection, getLocaleEmoji, getLocaleName, getLocaleProperties, getRegionProperties, isSameDialect, isSameLanguage, isSupersetLocale, isValidLocale, requiresTranslation, resolveAliasLocale, resolveCanonicalLocale, standardizeLocale };
1157
1061
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- import { $ as FileReference, A as BranchDataResult, B as FileUpload, C as ProcessMovesOptions, D as FileDataQuery, Dt as StringFormat, F as DownloadFileOptions, H as UploadFilesResponse, I as PublishFileEntry, J as DownloadFileBatchOptions, L as PublishFilesResult, M as TranslationError, Mt as CustomMapping, N as TranslationResult, O as FileDataResult, T as GetOrphanedFilesResult, U as CreateTagOptions, V as UploadFilesOptions, W as CreateTagResult, X as DownloadFileBatchResult, Y as DownloadFileBatchRequest, _ as AwaitJobsResult, at as CheckFileTranslationsOptions, et as FileReferenceIds, g as AwaitJobsOptions, h as SubmitUserEditDiffsPayload, j as TranslateManyResult, jt as LocaleProperties, k as BranchQuery, mt as TranslateOptions, n as FormatVariables, ot as FileQuery, pt as TranslateManyEntry, rt as EnqueueFilesResult, st as FileQueryResult, w as ProcessMovesResponse, x as MoveMapping, y as CheckJobStatusResult } from "./types-fUW4_Ole.mjs";
1
+ import { a as standardizeLocale, c as CutoffFormatOptions, i as resolveCanonicalLocale, n as formatMessage, o as LocaleConfig, r as isValidLocale, s as LocaleConfigConstructorParams, t as formatCutoff } from "./core-DtPj_ruw.mjs";
2
+ import { $ as FileReference, A as BranchDataResult, B as FileUpload, C as ProcessMovesOptions, D as FileDataQuery, Dt as StringFormat, F as DownloadFileOptions, H as UploadFilesResponse, I as PublishFileEntry, J as DownloadFileBatchOptions, L as PublishFilesResult, M as TranslationError, Mt as CustomMapping, N as TranslationResult, O as FileDataResult, T as GetOrphanedFilesResult, U as CreateTagOptions, V as UploadFilesOptions, W as CreateTagResult, X as DownloadFileBatchResult, Y as DownloadFileBatchRequest, _ as AwaitJobsResult, at as CheckFileTranslationsOptions, et as FileReferenceIds, g as AwaitJobsOptions, h as SubmitUserEditDiffsPayload, j as TranslateManyResult, jt as LocaleProperties, k as BranchQuery, mt as TranslateOptions, n as FormatVariables, ot as FileQuery, pt as TranslateManyEntry, rt as EnqueueFilesResult, st as FileQueryResult, w as ProcessMovesResponse, x as MoveMapping, y as CheckJobStatusResult } from "./types-Dfy_sRLD.mjs";
2
3
 
3
4
  //#region src/translate/setupProject.d.ts
4
5
  type SetupProjectResult = {
@@ -53,24 +54,6 @@ type CreateBranchResult = {
53
54
  };
54
55
  };
55
56
  //#endregion
56
- //#region src/formatting/custom-formats/CutoffFormat/types.d.ts
57
- /** Type of terminator */
58
- type CutoffFormatStyle = 'none' | 'ellipsis';
59
- /** Terminator options */
60
- interface TerminatorOptions {
61
- /** The terminator to use */
62
- terminator?: string;
63
- /** An optional separator between the terminator and the value */
64
- separator?: string;
65
- }
66
- /** Input formatting options (for constructor) */
67
- interface CutoffFormatOptions extends TerminatorOptions {
68
- /** Cutoff length */
69
- maxChars?: number;
70
- /** Type of terminator */
71
- style?: CutoffFormatStyle;
72
- }
73
- //#endregion
74
57
  //#region src/index.d.ts
75
58
  /**
76
59
  * Type representing the constructor parameters for the GT class.
@@ -123,14 +106,16 @@ declare class GT {
123
106
  targetLocale?: string;
124
107
  /** Array of supported locales */
125
108
  locales?: string[];
126
- /** Array of locales used for rendering variables */
127
- _renderingLocales: string[];
128
109
  /** Custom mapping for locale codes to their names */
129
110
  customMapping?: CustomMapping;
130
111
  /** Lazily derived reverse custom mapping for alias locales */
131
112
  reverseCustomMapping?: Record<string, string>;
132
113
  /** Lazily derived custom mapping for regions */
133
114
  customRegionMapping?: CustomRegionMapping;
115
+ /** Runtime-safe locale and formatting helpers (backing field) */
116
+ private _localeConfig;
117
+ /** Runtime-safe locale and formatting helpers */
118
+ get localeConfig(): LocaleConfig;
134
119
  /**
135
120
  * Constructs an instance of the GT class.
136
121
  *
@@ -840,67 +825,6 @@ declare class GT {
840
825
  */
841
826
  isSupersetLocale(superLocale: string, subLocale: string): boolean;
842
827
  }
843
- /**
844
- * Formats a string with cutoff behavior, applying a terminator when the string exceeds the maximum character limit.
845
- *
846
- * This standalone function provides cutoff formatting functionality without requiring a GT instance.
847
- * The locales parameter is required for proper terminator selection based on the target language.
848
- *
849
- * @param {string} value - The string value to format with cutoff behavior.
850
- * @param {Object} [options] - Configuration options for cutoff formatting.
851
- * @param {string | string[]} [options.locales] - The locales to use for terminator selection.
852
- * @param {number} [options.maxChars] - The maximum number of characters to display.
853
- * - Undefined values are treated as no cutoff.
854
- * - Negative values follow .slice() behavior and terminator will be added before the value.
855
- * - 0 will result in an empty string.
856
- * - If cutoff results in an empty string, no terminator is added.
857
- * @param {CutoffFormatStyle} [options.style='ellipsis'] - The style of the terminator.
858
- * @param {string} [options.terminator] - Optional override the terminator to use.
859
- * @param {string} [options.separator] - Optional override the separator to use between the terminator and the value.
860
- * - If no terminator is provided, then separator is ignored.
861
- * @returns {string} The formatted string with terminator applied if cutoff occurs.
862
- *
863
- * @example
864
- * formatCutoff('Hello, world!', { locales: 'en-US', maxChars: 8 });
865
- * // Returns: 'Hello, w...'
866
- *
867
- * @example
868
- * formatCutoff('Hello, world!', { locales: 'en-US', maxChars: -3 });
869
- * // Returns: '...ld!'
870
- *
871
- * @example
872
- * formatCutoff('Very long text that needs cutting', {
873
- * locales: 'en-US',
874
- * maxChars: 15,
875
- * style: 'ellipsis',
876
- * separator: ' '
877
- * });
878
- * // Returns: 'Very long text ...'
879
- */
880
- declare function formatCutoff(value: string, options?: {
881
- locales?: string | string[];
882
- } & CutoffFormatOptions): string;
883
- /**
884
- * Formats a message according to the specified locales and options.
885
- *
886
- * @param {string} message - The message to format.
887
- * @param {string | string[]} [locales='en'] - The locales to use for formatting.
888
- * @param {FormatVariables} [variables={}] - The variables to use for formatting.
889
- * @param {StringFormat} [dataFormat='ICU'] - The format of the message. (When STRING, the message is returned as is)
890
- * @returns {string} The formatted message.
891
- *
892
- * @example
893
- * formatMessage('Hello {name}', { name: 'John' });
894
- * // Returns: "Hello John"
895
- *
896
- * formatMessage('Hello {name}', { name: 'John' }, { locales: ['fr'] });
897
- * // Returns: "Bonjour John"
898
- */
899
- declare function formatMessage(message: string, options?: {
900
- locales?: string | string[];
901
- variables?: FormatVariables;
902
- dataFormat?: StringFormat;
903
- }): string;
904
828
  /**
905
829
  * Formats a number according to the specified locales and options.
906
830
  * @param {Object} params - The parameters for the number formatting.
@@ -1103,13 +1027,6 @@ declare function determineLocale(locales: string | string[], approvedLocales?: s
1103
1027
  * @returns {string} - 'rtl' if the locale is right-to-left, otherwise 'ltr'.
1104
1028
  */
1105
1029
  declare function getLocaleDirection(locale: string): 'ltr' | 'rtl';
1106
- /**
1107
- * Checks if a given BCP 47 locale code is valid.
1108
- * @param {string} locale - The BCP 47 locale code to validate.
1109
- * @param {CustomMapping} [customMapping] - The custom mapping to use for validation.
1110
- * @returns {boolean} True if the BCP 47 code is valid, false otherwise.
1111
- */
1112
- declare function isValidLocale(locale: string, customMapping?: CustomMapping): boolean;
1113
1030
  /**
1114
1031
  * Resolves the alias locale for a given locale.
1115
1032
  * @param {string} locale - The locale to resolve the alias locale for
@@ -1117,19 +1034,6 @@ declare function isValidLocale(locale: string, customMapping?: CustomMapping): b
1117
1034
  * @returns {string} The alias locale
1118
1035
  */
1119
1036
  declare function resolveAliasLocale(locale: string, customMapping?: CustomMapping): string;
1120
- /**
1121
- * Resolves the canonical locale for a given locale.
1122
- * @param {string} locale - The locale to resolve the canonical locale for
1123
- * @param {CustomMapping} [customMapping] - The custom mapping to use for resolving the canonical locale
1124
- * @returns {string} The canonical locale
1125
- */
1126
- declare function resolveCanonicalLocale(locale: string, customMapping?: CustomMapping): string;
1127
- /**
1128
- * Standardizes a BCP 47 locale code to ensure correct formatting.
1129
- * @param {string} locale - The BCP 47 locale code to standardize.
1130
- * @returns {string} The standardized BCP 47 locale code or an empty string if it is an invalid code.
1131
- */
1132
- declare function standardizeLocale(locale: string): string;
1133
1037
  /**
1134
1038
  * Checks if multiple BCP 47 locale codes represent the same dialect.
1135
1039
  * @param {string[]} locales - The BCP 47 locale codes to compare.
@@ -1153,5 +1057,5 @@ declare function isSameLanguage(...locales: (string | string[])[]): boolean;
1153
1057
  declare function isSupersetLocale(superLocale: string, subLocale: string): boolean;
1154
1058
  declare const API_VERSION = "2026-03-06.v1";
1155
1059
  //#endregion
1156
- export { API_VERSION, GT, determineLocale, formatCurrency, formatCutoff, formatDateTime, formatList, formatListToParts, formatMessage, formatNum, formatRelativeTime, formatRelativeTimeFromDate, getLocaleDirection, getLocaleEmoji, getLocaleName, getLocaleProperties, getRegionProperties, isSameDialect, isSameLanguage, isSupersetLocale, isValidLocale, requiresTranslation, resolveAliasLocale, resolveCanonicalLocale, standardizeLocale };
1060
+ export { API_VERSION, GT, LocaleConfig, type LocaleConfigConstructorParams, determineLocale, formatCurrency, formatCutoff, formatDateTime, formatList, formatListToParts, formatMessage, formatNum, formatRelativeTime, formatRelativeTimeFromDate, getLocaleDirection, getLocaleEmoji, getLocaleName, getLocaleProperties, getRegionProperties, isSameDialect, isSameLanguage, isSupersetLocale, isValidLocale, requiresTranslation, resolveAliasLocale, resolveCanonicalLocale, standardizeLocale };
1157
1061
  //# sourceMappingURL=index.d.mts.map