Create more action_*
common strings (#11438)
This commit is contained in:
parent
e79b03a2df
commit
d5cacff6c3
202 changed files with 2046 additions and 2105 deletions
|
@ -396,7 +396,7 @@ export class TermsAuthEntry extends React.Component<ITermsAuthEntryProps, ITerms
|
|||
onClick={this.trySubmit}
|
||||
disabled={!allChecked}
|
||||
>
|
||||
{_t("Accept")}
|
||||
{_t("action|accept")}
|
||||
</AccessibleButton>
|
||||
);
|
||||
}
|
||||
|
@ -508,7 +508,7 @@ export class EmailIdentityAuthEntry extends React.Component<
|
|||
a: (text: string) => (
|
||||
<AccessibleTooltipButton
|
||||
kind="link_inline"
|
||||
title={this.state.requested ? _t("Resent!") : _t("Resend")}
|
||||
title={this.state.requested ? _t("Resent!") : _t("action|resend")}
|
||||
alignment={Alignment.Right}
|
||||
onHideTooltip={
|
||||
this.state.requested
|
||||
|
@ -868,7 +868,7 @@ export class SSOAuthEntry extends React.Component<ISSOAuthEntryProps, ISSOAuthEn
|
|||
onClick={this.props.onCancel ?? null}
|
||||
kind={this.props.continueKind ? this.props.continueKind + "_outline" : "primary_outline"}
|
||||
>
|
||||
{_t("Cancel")}
|
||||
{_t("action|cancel")}
|
||||
</AccessibleButton>
|
||||
);
|
||||
if (this.state.phase === SSOAuthEntry.PHASE_PREAUTH) {
|
||||
|
@ -880,7 +880,7 @@ export class SSOAuthEntry extends React.Component<ISSOAuthEntryProps, ISSOAuthEn
|
|||
} else {
|
||||
continueButton = (
|
||||
<AccessibleButton onClick={this.onConfirmClick} kind={this.props.continueKind || "primary"}>
|
||||
{this.props.continueText || _t("Confirm")}
|
||||
{this.props.continueText || _t("action|confirm")}
|
||||
</AccessibleButton>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ export default class LoginWithQRFlow extends React.Component<IProps> {
|
|||
|
||||
private cancelButton = (): JSX.Element => (
|
||||
<AccessibleButton data-testid="cancel-button" kind="primary_outline" onClick={this.handleClick(Click.Cancel)}>
|
||||
{_t("Cancel")}
|
||||
{_t("action|cancel")}
|
||||
</AccessibleButton>
|
||||
);
|
||||
|
||||
|
@ -124,7 +124,7 @@ export default class LoginWithQRFlow extends React.Component<IProps> {
|
|||
kind="primary"
|
||||
onClick={this.handleClick(Click.TryAgain)}
|
||||
>
|
||||
{_t("Try again")}
|
||||
{_t("action|try_again")}
|
||||
</AccessibleButton>
|
||||
{this.cancelButton()}
|
||||
</>
|
||||
|
@ -156,7 +156,7 @@ export default class LoginWithQRFlow extends React.Component<IProps> {
|
|||
kind="primary_outline"
|
||||
onClick={this.handleClick(Click.Decline)}
|
||||
>
|
||||
{_t("Cancel")}
|
||||
{_t("action|cancel")}
|
||||
</AccessibleButton>
|
||||
<AccessibleButton
|
||||
data-testid="approve-login-button"
|
||||
|
|
|
@ -441,7 +441,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
|
|||
<input
|
||||
className="mx_Login_submit"
|
||||
type="submit"
|
||||
value={_t("Sign in")}
|
||||
value={_t("action|sign_in")}
|
||||
disabled={this.props.disableSubmit}
|
||||
/>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue