Skip to content

Commit

Permalink
feat: 修改 locales 为可选项
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzy0603 committed Jun 26, 2023
1 parent 4244395 commit e827613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gi-sdk/src/typing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export interface Props {
/** 注册的全局数据服务 */
services: GIService[];
/** 国际化语言配置 */
locales: {
locales?: {
language: LANGUAGE_KEY_NAME;
[k: string]: string;
}
Expand Down Expand Up @@ -277,7 +277,7 @@ export type GIAssets = Partial<{
/** 模版资产 */
templates: { [key: string]: ITemplate };
/** 国际化资产 */
locales: GILocaleAssets;
locales?: GILocaleAssets;
deploys: {
[key: string]: {
component: React.ReactNode;
Expand Down

0 comments on commit e827613

Please sign in to comment.