Skip to content

Commit

Permalink
refactor(ui): set default locale to en (#346)
Browse files Browse the repository at this point in the history
## What type of PR is this?
/kind ui

## What this PR does / why we need it:

Set default locale to en.
  • Loading branch information
elliotxx authored Mar 26, 2024
1 parent 3bae288 commit e0f7a3e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion ui/src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const resources = {
},
}

const currentLocale = localStorage.getItem('lang') || 'zh'
const currentLocale = localStorage.getItem('lang') || 'en'

i18n
// 将 i18n 实例传递给 react-i18next
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
flex: 1;
}
}


}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@
}
}
}


}

.item:hover {
Expand Down

0 comments on commit e0f7a3e

Please sign in to comment.