Skip to content

Commit

Permalink
fixup! feat: add final translations [LW-11519]
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Guzei <[email protected]>
  • Loading branch information
DominikGuzei committed Nov 27, 2024
1 parent 538ddff commit 846712c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ import styles from './VotingPowerDelegationConfirmationDialog.scss';
import { DelegateVotesError } from '../../../stores/VotingStore';
import type { Intl, ReactIntlMessage } from '../../../types/i18nTypes';
import { messages } from './VotingPowerDelegationConfirmationDialog.messages';
import globalMessages from '../../../i18n/global-messages';
import LoadingSpinner from '../../widgets/LoadingSpinner';
import { VoteType } from './types';
import { sharedGovernanceMessages } from './shared-messages';
import { messages as apiErrorMessage } from '../../../api/errors';

const mapOfTxErrorCodeToIntl: Record<
DelegateVotesError,
typeof messages[keyof typeof messages]
> = {
generic: messages.errorGeneric,
wrong_encryption_passphrase: globalMessages.invalidSpendingPassword,
wrong_encryption_passphrase: apiErrorMessage.wrongEncryptionPassphrase,
};

const mapVoteToIntlMessage = (vote: VoteType | string): ReactIntlMessage => {
Expand Down

0 comments on commit 846712c

Please sign in to comment.