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 235216a commit ba8be71
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,24 @@ export const messages = defineMessages({
'!!!Please type or paste a valid DRep ID here. Look up {drepDirectoryLink}',
description: 'Label for DRep input on the governance page',
},
drepInputLabelPreprod: {
id: 'voting.governance.drepInputLabelPreprod',
defaultMessage: '!!!Please type or paste a valid DRep ID here.',
description: 'Label for DRep input on the governance page for preprod',
},
drepInputLabelLinkText: {
id: 'voting.governance.drepInputLabelLinkText',
defaultMessage: '!!!DRep directory',
description: 'Label link text for DRep input on the governance page',
},
drepInputLabelLinkUrl: {
id: 'voting.governance.drepInputLabelLinkUrl',
defaultMessage: 'https://www.1694.io/en/dreps/list',
defaultMessage: 'https://gov.tools/drep_directory',
description: 'Label link url for DRep input on the governance page',
},
drepInputLabelLinkUrlPreview: {
id: 'voting.governance.drepInputLabelLinkUrlPreview',
defaultMessage: 'https://preview.gov.tools/drep_directory',
description: 'Label link url for DRep input on the governance page',
},
drepInputError: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,20 @@ function VotingPowerDelegation({
value={state.drepInputState.value}
label={
<FormattedMessage
{...messages.drepInputLabel}
{...(environment.isPreprod
? messages.drepInputLabelPreprod
: messages.drepInputLabel)}
values={{
drepDirectoryLink: (
<a
href={intl.formatMessage(
messages.drepInputLabelLinkUrl
)}
href="#"
onClick={(event) =>
onExternalLinkClick(
intl.formatMessage(messages.drepInputLabelLinkUrl),
intl.formatMessage(
environment.isMainnet
? messages.drepInputLabelLinkUrl
: messages.drepInputLabelLinkUrlPreview
),
event
)
}
Expand Down
12 changes: 11 additions & 1 deletion source/renderer/app/i18n/locales/defaultMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4411,16 +4411,26 @@
"description": "Label for DRep input on the governance page",
"id": "voting.governance.drepInputLabel"
},
{
"defaultMessage": "!!!Please type or paste a valid DRep ID here.",
"description": "Label for DRep input on the governance page for preprod",
"id": "voting.governance.drepInputLabelPreprod"
},
{
"defaultMessage": "!!!DRep directory",
"description": "Label link text for DRep input on the governance page",
"id": "voting.governance.drepInputLabelLinkText"
},
{
"defaultMessage": "https://www.1694.io/en/dreps/list",
"defaultMessage": "https://gov.tools/drep_directory",
"description": "Label link url for DRep input on the governance page",
"id": "voting.governance.drepInputLabelLinkUrl"
},
{
"defaultMessage": "https://preview.gov.tools/drep_directory",
"description": "Label link url for DRep input on the governance page",
"id": "voting.governance.drepInputLabelLinkUrlPreview"
},
{
"defaultMessage": "!!!Invalid DRep ID",
"description": "Error for DRep input on the governance page",
Expand Down
6 changes: 4 additions & 2 deletions source/renderer/app/i18n/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,9 @@
"voting.governance.drepInputError": "Invalid DRep ID",
"voting.governance.drepInputLabel": "Please type or paste a valid DRep ID here. Look up {drepDirectoryLink}",
"voting.governance.drepInputLabelLinkText": "DRep directory",
"voting.governance.drepInputLabelLinkUrl": "https://www.1694.io/en/dreps/list",
"voting.governance.drepInputLabelLinkUrl": "https://gov.tools/drep_directory",
"voting.governance.drepInputLabelLinkUrlPreview": "https://preview.gov.tools/drep_directory",
"voting.governance.drepInputLabelPreprod": "Please type or paste a valid DRep ID here.",
"voting.governance.drepInputPlaceholder": "Paste DRep ID here …",
"voting.governance.heading": "CARDANO VOTING POWER DELEGATION",
"voting.governance.initializeTxError.generic": "Something went wrong during transaction initialization. Please try again in a few minutes. ",
Expand Down Expand Up @@ -1376,4 +1378,4 @@
"wallet.transferFunds.dialog2.total.label": "Total",
"widgets.itemsDropdown.syncingLabel": "Syncing",
"widgets.itemsDropdown.syncingLabelProgress": "Syncing {syncingProgress}%"
}
}
6 changes: 4 additions & 2 deletions source/renderer/app/i18n/locales/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,9 @@
"voting.governance.drepInputError": "無効なDRep IDです",
"voting.governance.drepInputLabel": "有効なDRep IDを入力するか貼り付けます。{drepDirectoryLink}で検索する",
"voting.governance.drepInputLabelLinkText": "DRepディレクトリ",
"voting.governance.drepInputLabelLinkUrl": "https://www.1694.io/en/dreps/list",
"voting.governance.drepInputLabelLinkUrl": "https://gov.tools/drep_directory",
"voting.governance.drepInputLabelLinkUrlPreview": "https://preview.gov.tools/drep_directory",
"voting.governance.drepInputLabelPreprod": "有効なDRep IDを入力するか貼り付けます。",
"voting.governance.drepInputPlaceholder": "DRep IDを追加してください",
"voting.governance.heading": "Cardano投票権の委任",
"voting.governance.initializeTxError.generic": "トランザクションの初期化中に問題が発生しました。しばらくしてからもう一度お試しください。",
Expand Down Expand Up @@ -1376,4 +1378,4 @@
"wallet.transferFunds.dialog2.total.label": "合計",
"widgets.itemsDropdown.syncingLabel": "同期",
"widgets.itemsDropdown.syncingLabelProgress": "同期中 {syncingProgress}%"
}
}
12 changes: 11 additions & 1 deletion translations/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4411,16 +4411,26 @@
"description": "Label for DRep input on the governance page",
"id": "voting.governance.drepInputLabel"
},
{
"defaultMessage": "!!!Please type or paste a valid DRep ID here.",
"description": "Label for DRep input on the governance page for preprod",
"id": "voting.governance.drepInputLabelPreprod"
},
{
"defaultMessage": "!!!DRep directory",
"description": "Label link text for DRep input on the governance page",
"id": "voting.governance.drepInputLabelLinkText"
},
{
"defaultMessage": "https://www.1694.io/en/dreps/list",
"defaultMessage": "https://gov.tools/drep_directory",
"description": "Label link url for DRep input on the governance page",
"id": "voting.governance.drepInputLabelLinkUrl"
},
{
"defaultMessage": "https://preview.gov.tools/drep_directory",
"description": "Label link url for DRep input on the governance page",
"id": "voting.governance.drepInputLabelLinkUrlPreview"
},
{
"defaultMessage": "!!!Invalid DRep ID",
"description": "Error for DRep input on the governance page",
Expand Down

0 comments on commit ba8be71

Please sign in to comment.