tabbarName.js
307 Bytes
export const tabbarNameList = [
"app.tabbar.home",
"app.tabbar.flow",
"app.tabbar.workbench",
"app.tabbar.inspection",
"app.tabbar.my",
];
export const setTabbarName = (t) => {
tabbarNameList.forEach((item, index) => {
uni.setTabBarItem({
index,
text: t(item),
});
});
};