Skip to content

Commit 8e0e2a1

Browse files
andrew-polkclaude
andcommitted
fix(find-language): export fuzzilySearchForScripts from public entry
The deep import "@ethnolib/find-language/searchForScript" only resolved through nx source path aliases; the published find-language package builds to a single index.js, so the subpath does not exist for consumers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 37495ae commit 8e0e2a1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

components/language-chooser/common/find-language/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export * from "./languageSearcher";
55
export * from "./searchForLanguage";
66
export * from "./searchResultModifiers";
77
export * from "./regionsAndScripts";
8+
export * from "./searchForScript";
89
export * from "./scriptSamples";

components/language-chooser/react/language-chooser-react-mui/src/CustomizeLanguageDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ import {
3030
IOrthography,
3131
formatDialectCode,
3232
isValidBcp47VariantSubtag,
33+
fuzzilySearchForScripts,
3334
} from "@ethnolib/find-language";
3435
import { FormFieldLabel } from "./FormFieldLabel";
3536
import { PrimaryTooltip } from "./PrimaryTooltip";
3637
import { IconAndText } from "./IconAndText";
37-
import {fuzzilySearchForScripts} from "@ethnolib/find-language/searchForScript"
3838

3939
// ISO-3166-1 is a region code to region name lookup
4040
function getAllRegionOptions() {

0 commit comments

Comments
 (0)