Skip to content

Commit bc7184a

Browse files
committed
ref: univer.sheet设置默认语言
1 parent a270a3c commit bc7184a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/components/BootstrapBlazor.UniverSheet/wwwroot

src/components/BootstrapBlazor.UniverSheet/wwwroot/univer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const loadAssets = async lang => {
2121
}
2222

2323
export async function createUniverSheetAsync(sheet) {
24+
sheet.lang = sheet.lang ?? 'en-US';
2425
await loadAssets(sheet.lang);
2526

2627
const { el } = sheet;

0 commit comments

Comments
 (0)