Skip to content

Commit 1337cca

Browse files
committed
refactor: 更新 lang 转换
1 parent cbab4d5 commit 1337cca

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export async function init(id, invoke, options) {
1313
el,
1414
invoke,
1515
data,
16-
theme, lang, plugins
16+
plugins,
17+
theme,
18+
lang: getLang(lang || "")
1719
};
1820

1921
await createUniverSheetAsync(univerSheet);
@@ -22,6 +24,10 @@ export async function init(id, invoke, options) {
2224
invoke.invokeMethodAsync('TriggerReadyAsync');
2325
}
2426

27+
const getLang = lang => {
28+
return lang.replace('-', '');
29+
}
30+
2531
export function execute(id, data) {
2632
const univerSheet = Data.get(id);
2733

0 commit comments

Comments
 (0)