Skip to content

Commit 124976b

Browse files
committed
refactor: move locale utilities to internal API
1 parent 9cd34ac commit 124976b

File tree

9 files changed

+8
-6
lines changed

9 files changed

+8
-6
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"./internal": "./internal/index.js",
1717
"./internal/metrics": "./internal/metrics.js",
1818
"./internal/testing": "./internal/testing.js",
19+
"./internal/locale": "./internal/locale.js",
1920
"./internal/analytics-metadata": "./internal/analytics-metadata/index.js",
2021
"./internal/analytics-metadata/utils": "./internal/analytics-metadata/utils.js",
2122
"./package.json": "./package.json"

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,3 @@ export { default as useControllableState } from './use-controllable-state/use-co
66

77
export type { ContainerQueryEntry } from './container-queries/interfaces';
88
export type { PropertyDescriptions } from './use-controllable-state/interfaces';
9-
10-
// Locale utils
11-
export { mergeLocales } from './locale/merge-locales';
12-
export { normalizeLocale } from './locale/normalize-locale';
13-
export { normalizeStartOfWeek, DayIndex } from './locale/normalize-start-of-week';
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/internal/locale/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
export { mergeLocales } from './merge-locales';
5+
export { normalizeLocale } from './normalize-locale';
6+
export { DayIndex, normalizeStartOfWeek } from './normalize-start-of-week';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { warnOnce } from '../internal/logging';
4+
import { warnOnce } from '../logging';
55

66
import { mergeLocales } from './merge-locales';
77

File renamed without changes.

0 commit comments

Comments
 (0)