From e827613efd9e5ccbe54cd4b06f6c94f1150c1bff Mon Sep 17 00:00:00 2001 From: yangzy0603 Date: Mon, 26 Jun 2023 15:01:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=20locales=20?= =?UTF-8?q?=E4=B8=BA=E5=8F=AF=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/gi-sdk/src/typing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gi-sdk/src/typing.ts b/packages/gi-sdk/src/typing.ts index 37d19121b..bc2d9c695 100644 --- a/packages/gi-sdk/src/typing.ts +++ b/packages/gi-sdk/src/typing.ts @@ -91,7 +91,7 @@ export interface Props { /** 注册的全局数据服务 */ services: GIService[]; /** 国际化语言配置 */ - locales: { + locales?: { language: LANGUAGE_KEY_NAME; [k: string]: string; } @@ -277,7 +277,7 @@ export type GIAssets = Partial<{ /** 模版资产 */ templates: { [key: string]: ITemplate }; /** 国际化资产 */ - locales: GILocaleAssets; + locales?: GILocaleAssets; deploys: { [key: string]: { component: React.ReactNode;