Add "empty" to i18n

This commit is contained in:
Gucheng Wang
2023-03-19 20:13:07 +08:00
parent 98f962f818
commit 89d29c2519
14 changed files with 15 additions and 5 deletions

View File

@ -105,7 +105,7 @@ class AffiliationSelect extends React.Component {
this.updateUserField("affiliation", name);
this.updateUserField("score", id);
})}
options={[Setting.getOption("(empty)", "")].concat(this.state.affiliationOptions.map((affiliationOption) => Setting.getOption(affiliationOption.name, affiliationOption.name))
options={[Setting.getOption(`(${i18next.t("general:empty")})`, "")].concat(this.state.affiliationOptions.map((affiliationOption) => Setting.getOption(affiliationOption.name, affiliationOption.name))
)} />
)
}

View File

@ -155,7 +155,7 @@ class OAuthWidget extends React.Component {
<span style={{width: this.props.labelSpan === 3 ? "300px" : "200px", display: (Setting.isMobile()) ? "inline" : "inline-block"}}>
{
linkedValue === "" ? (
"(empty)"
`(${i18next.t("general:empty")})`
) : (
profileUrl === "" ? name : (
<a target="_blank" rel="noreferrer" href={profileUrl}>