Skip to content

Commit

Permalink
Merge pull request #2276 from numbersprotocol/fix-translations-change…
Browse files Browse the repository at this point in the history
…-capture-club-to-capture-app

fix(translation): change capture club to capture app
  • Loading branch information
bafu authored Nov 4, 2022
2 parents ed73f62 + a6db116 commit d4288a6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src/app/features/home/details/actions/actions.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class ActionsPage {
concatMap(([response, cid]) => {
if (response.count > 0) {
throw new Error(
this.translocoService.translate('message.hasListedInCaptureClub')
this.translocoService.translate('message.hasListedInCaptureApp')
);
}
return of(cid);
Expand All @@ -107,9 +107,7 @@ export class ActionsPage {
);
if (listedAsSeries) {
throw new Error(
this.translocoService.translate(
'message.hasListedInCaptureClub'
)
this.translocoService.translate('message.hasListedInCaptureApp')
);
}
if (response.next == null) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/home/details/details.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export class DetailsPage {
switchMap(response => {
if (response.count === 0 || !response.results[0].enabled) {
throw new Error(
this.translocoService.translate('message.notListedInCaptureClub')
this.translocoService.translate('message.notListedInCaptureApp')
);
}
return this.diaBackendStoreService.unpublish$(response.results[0].id);
Expand Down
4 changes: 2 additions & 2 deletions src/assets/i18n/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@
"mintNftAlert": "Once the NFT is minted, photo and its information can be accessed publicly. Do you still want to proceed?",
"sentSuccessfully": "Sent Successfully",
"confirmCopyPrivateKey": "Warning: Please do not expose your private key to anyone. Lost of private key may cause your account to be lost permanently.",
"hasListedInCaptureClub": "This asset has already been listed in CaptureClub.",
"notListedInCaptureClub": "This asset is not listed in CaptureClub"
"hasListedInCaptureApp": "This asset has already been listed in Capture App.",
"notListedInCaptureApp": "This asset is not listed in Capture App"
},
"error": {
"validationError": "Invalid operation. Please check your input again.",
Expand Down
4 changes: 2 additions & 2 deletions src/assets/i18n/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@
"mintNftAlert": "NFT 代幣鑄造後,影像以及所有資訊都將可被公開檢視。確定要繼續嗎?",
"sentSuccessfully": "成功送出",
"confirmCopyPrivateKey": "警告:請不要向任何人揭露您的金鑰,未保管好金鑰可能導致您永遠失去您的帳號。",
"hasListedInCaptureClub": "該資產已在 CaptureClub 上架。",
"notListedInCaptureClub": "該資產未上架 CaptureClub"
"hasListedInCaptureApp": "該資產已在 Capture App 上架。",
"notListedInCaptureApp": "該資產未上架 Capture App"
},
"error": {
"validationError": "操作或輸入有誤,請確認您的操作正確。",
Expand Down

0 comments on commit d4288a6

Please sign in to comment.