Skip to content

Commit 64a4041

Browse files
committed
fix: omit plugin config from locale
1 parent e85d2dc commit 64a4041

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/common-helpers/src/i18n.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import get from "lodash-es/get";
33
import trim from "lodash-es/trim";
44
import has from "lodash-es/has";
55

6-
import type { iPluginOptions } from "@open-xamu-co/ui-common-types";
7-
86
interface iUseI18n<L extends Record<string, string | Record<string, string>>> {
97
/**
108
* Interpolates localized text
@@ -41,7 +39,7 @@ interface iUseI18n<L extends Record<string, string | Record<string, string>>> {
4139
* @composable
4240
*/
4341
export default function useI18n<L extends Record<string, string | Record<string, string>>>(
44-
options: iPluginOptions & { locale?: L } = {}
42+
options: { locale?: L } = {}
4543
): iUseI18n<L> {
4644
function t<K extends string & keyof L, Ko extends L[K], KA extends string & keyof Ko>(
4745
key: Ko extends string ? K : `${K}.${KA}`,

0 commit comments

Comments
 (0)