Skip to content

Commit ab94b84

Browse files
committed
PD-0000 remove sms POC transdlations
1 parent f865c76 commit ab94b84

6 files changed

Lines changed: 13 additions & 486 deletions

File tree

src/app/sms-poc/pages/sms-poc/sms-poc.component.html

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
<mat-card class="sms-poc-card max-w-[560px] sm:p-10! p-6!">
2-
<h1 class="orc-font-heading-small font-normal mb-4" i18n="@@smsPoc.title">
2+
<h1 class="orc-font-heading-small font-normal mb-4">
33
SMS POC
44
</h1>
5-
<p
6-
class="sms-poc-description orc-font-body-small mb-4"
7-
i18n="@@smsPoc.description"
8-
>
5+
<p class="sms-poc-description orc-font-body-small mb-4">
96
Send a test SMS. Choose AWS or Twilio for each send.
107
</p>
118

129
<app-alert-message type="warning" role="note" class="mb-6 block">
1310
<div content>
14-
<span i18n="@@smsPoc.sandboxNotice">
11+
<span>
1512
This POC currently runs in SANDBOX mode. If you want to test actual SMS
1613
delivery to your phone, please reach out to Leo on Slack to add your
1714
phone number to our AWS SNS ORCID Friend Sandbox and the Twilio
@@ -22,21 +19,18 @@ <h1 class="orc-font-heading-small font-normal mb-4" i18n="@@smsPoc.title">
2219

2320
<form [formGroup]="smsForm" (ngSubmit)="onSubmit()" class="grid gap-4">
2421
<div class="provider-selection">
25-
<span
26-
class="orc-font-small-print leading-4.5 font-bold! block mb-2"
27-
i18n="@@smsPoc.provider"
28-
>
22+
<span class="orc-font-small-print leading-4.5 font-bold! block mb-2">
2923
Provider
3024
</span>
3125
<mat-radio-group
3226
formControlName="provider"
3327
color="primary"
3428
class="provider-group flex gap-4"
3529
>
36-
<mat-radio-button value="aws" i18n="@@smsPoc.providerAws">
30+
<mat-radio-button value="aws">
3731
AWS SNS
3832
</mat-radio-button>
39-
<mat-radio-button value="twilio" i18n="@@smsPoc.providerTwilio">
33+
<mat-radio-button value="twilio">
4034
Twilio
4135
</mat-radio-button>
4236
</mat-radio-group>
@@ -46,7 +40,6 @@ <h1 class="orc-font-heading-small font-normal mb-4" i18n="@@smsPoc.title">
4640
<label
4741
class="orc-font-small-print leading-4.5 font-bold! block mb-2"
4842
for="sms-poc-phone"
49-
i18n="@@smsPoc.phoneNumber"
5043
>
5144
Phone number
5245
</label>
@@ -66,7 +59,7 @@ <h1 class="orc-font-heading-small font-normal mb-4" i18n="@@smsPoc.title">
6659
</div>
6760

6861
<mat-form-field appearance="outline" [hideRequiredMarker]="true">
69-
<mat-label i18n="@@smsPoc.message">Message</mat-label>
62+
<mat-label>Message</mat-label>
7063
<textarea
7164
matInput
7265
formControlName="message"
@@ -75,9 +68,9 @@ <h1 class="orc-font-heading-small font-normal mb-4" i18n="@@smsPoc.title">
7568
></textarea>
7669
<mat-hint align="end">{{ message?.value?.length || 0 }}/1600</mat-hint>
7770
@if (message?.hasError('required') && message?.touched) {
78-
<mat-error i18n="@@smsPoc.messageRequired">Message is required</mat-error>
71+
<mat-error>Message is required</mat-error>
7972
} @if (message?.hasError('maxlength') && message?.touched) {
80-
<mat-error i18n="@@smsPoc.messageTooLong">
73+
<mat-error>
8174
Message must be 1600 characters or fewer
8275
</mat-error>
8376
}
@@ -90,7 +83,7 @@ <h1 class="orc-font-heading-small font-normal mb-4" i18n="@@smsPoc.title">
9083
} @if (response?.success) {
9184
<app-alert-message type="success" role="status" class="mb-2">
9285
<div content>
93-
<span i18n="@@smsPoc.sent">SMS sent.</span>
86+
<span>SMS sent.</span>
9487
<span>
9588
{{ response.provider }}:
9689
{{ response.providerMessageId || response.status }}
@@ -107,7 +100,6 @@ <h1 class="orc-font-heading-small font-normal mb-4" i18n="@@smsPoc.title">
107100
type="submit"
108101
[disabled]="loading"
109102
[ngClass]="{ 'button-loading': loading }"
110-
i18n="@@smsPoc.send"
111103
>
112104
Send SMS
113105
</button>

src/app/sms-poc/pages/sms-poc/sms-poc.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ export class SmsPocComponent implements OnInit {
4343
return null
4444
}
4545
if (this.phoneNumber.hasError('required')) {
46-
return $localize`:@@smsPoc.phoneRequired:Phone number is required`
46+
return 'Phone number is required'
4747
}
4848
if (this.phoneNumber.hasError('invalidPhone')) {
49-
return $localize`:@@smsPoc.phoneInvalid:Enter a valid phone number`
49+
return 'Enter a valid phone number'
5050
}
5151
return null
5252
}
@@ -73,7 +73,7 @@ export class SmsPocComponent implements OnInit {
7373
},
7474
error: () => {
7575
this.loading = false
76-
this.backendError = $localize`:@@smsPoc.sendFailed:SMS send failed`
76+
this.backendError = 'SMS send failed'
7777
},
7878
})
7979
}

src/locale/messages.lr.xlf

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -18967,126 +18967,6 @@
1896718967
</context-group>
1896818968
<target>LR</target>
1896918969
</trans-unit>
18970-
<trans-unit id="smsPoc.title" datatype="html" resname="smsPoc.title">
18971-
<source>SMS POC</source>
18972-
<context-group purpose="location">
18973-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
18974-
<context context-type="linenumber">2,4</context>
18975-
</context-group>
18976-
<target>LR</target>
18977-
</trans-unit>
18978-
<trans-unit id="smsPoc.description" datatype="html" resname="smsPoc.description">
18979-
<source>Send a test SMS. Choose AWS or Twilio for each send.</source>
18980-
<context-group purpose="location">
18981-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
18982-
<context context-type="linenumber">8,10</context>
18983-
</context-group>
18984-
<target>LR</target>
18985-
</trans-unit>
18986-
<trans-unit id="smsPoc.sandboxNotice" datatype="html" resname="smsPoc.sandboxNotice">
18987-
<source>This POC currently runs in SANDBOX mode. If you want to test actual SMS delivery to your phone, please reach out to Leo on Slack to add your phone number to our AWS SNS ORCID Friend Sandbox and the Twilio accounts.</source>
18988-
<context-group purpose="location">
18989-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
18990-
<context context-type="linenumber">14,19</context>
18991-
</context-group>
18992-
<target>LR</target>
18993-
</trans-unit>
18994-
<trans-unit id="smsPoc.provider" datatype="html" resname="smsPoc.provider">
18995-
<source>Provider</source>
18996-
<context-group purpose="location">
18997-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
18998-
<context context-type="linenumber">28,30</context>
18999-
</context-group>
19000-
<target>LR</target>
19001-
</trans-unit>
19002-
<trans-unit id="smsPoc.providerAws" datatype="html" resname="smsPoc.providerAws">
19003-
<source>AWS SNS</source>
19004-
<context-group purpose="location">
19005-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19006-
<context context-type="linenumber">36,38</context>
19007-
</context-group>
19008-
<target>LR</target>
19009-
</trans-unit>
19010-
<trans-unit id="smsPoc.providerTwilio" datatype="html" resname="smsPoc.providerTwilio">
19011-
<source>Twilio</source>
19012-
<context-group purpose="location">
19013-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19014-
<context context-type="linenumber">39,41</context>
19015-
</context-group>
19016-
<target>LR</target>
19017-
</trans-unit>
19018-
<trans-unit id="smsPoc.phoneNumber" datatype="html" resname="smsPoc.phoneNumber">
19019-
<source>Phone number</source>
19020-
<context-group purpose="location">
19021-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19022-
<context context-type="linenumber">50,52</context>
19023-
</context-group>
19024-
<target>LR</target>
19025-
</trans-unit>
19026-
<trans-unit id="smsPoc.message" datatype="html" resname="smsPoc.message">
19027-
<source>Message</source>
19028-
<context-group purpose="location">
19029-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19030-
<context context-type="linenumber">69</context>
19031-
</context-group>
19032-
<target>LR</target>
19033-
</trans-unit>
19034-
<trans-unit id="smsPoc.messageRequired" datatype="html" resname="smsPoc.messageRequired">
19035-
<source>Message is required</source>
19036-
<context-group purpose="location">
19037-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19038-
<context context-type="linenumber">78</context>
19039-
</context-group>
19040-
<target>LR</target>
19041-
</trans-unit>
19042-
<trans-unit id="smsPoc.messageTooLong" datatype="html" resname="smsPoc.messageTooLong">
19043-
<source>Message must be 1600 characters or fewer</source>
19044-
<context-group purpose="location">
19045-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19046-
<context context-type="linenumber">80,82</context>
19047-
</context-group>
19048-
<target>LR</target>
19049-
</trans-unit>
19050-
<trans-unit id="smsPoc.sent" datatype="html" resname="smsPoc.sent">
19051-
<source>SMS sent.</source>
19052-
<context-group purpose="location">
19053-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19054-
<context context-type="linenumber">93</context>
19055-
</context-group>
19056-
<target>LR</target>
19057-
</trans-unit>
19058-
<trans-unit id="smsPoc.send" datatype="html" resname="smsPoc.send">
19059-
<source>Send SMS</source>
19060-
<context-group purpose="location">
19061-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19062-
<context context-type="linenumber">111,113</context>
19063-
</context-group>
19064-
<target>LR</target>
19065-
</trans-unit>
19066-
<trans-unit id="smsPoc.phoneRequired" datatype="html" resname="smsPoc.phoneRequired">
19067-
<source>Phone number is required</source>
19068-
<context-group purpose="location">
19069-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.ts</context>
19070-
<context context-type="linenumber">46</context>
19071-
</context-group>
19072-
<target>LR</target>
19073-
</trans-unit>
19074-
<trans-unit id="smsPoc.phoneInvalid" datatype="html" resname="smsPoc.phoneInvalid">
19075-
<source>Enter a valid phone number</source>
19076-
<context-group purpose="location">
19077-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.ts</context>
19078-
<context context-type="linenumber">49</context>
19079-
</context-group>
19080-
<target>LR</target>
19081-
</trans-unit>
19082-
<trans-unit id="smsPoc.sendFailed" datatype="html" resname="smsPoc.sendFailed">
19083-
<source>SMS send failed</source>
19084-
<context-group purpose="location">
19085-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.ts</context>
19086-
<context context-type="linenumber">76</context>
19087-
</context-group>
19088-
<target>LR</target>
19089-
</trans-unit>
1909018970
<trans-unit id="account.step1AuthenticationApp" datatype="html" resname="account.step1AuthenticationApp">
1909118971
<source>Step 1 of 2 - Authentication app</source>
1909218972
<context-group purpose="location">

src/locale/messages.rl.xlf

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -18967,126 +18967,6 @@
1896718967
</context-group>
1896818968
<target>RL</target>
1896918969
</trans-unit>
18970-
<trans-unit id="smsPoc.title" datatype="html" resname="smsPoc.title">
18971-
<source>SMS POC</source>
18972-
<context-group purpose="location">
18973-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
18974-
<context context-type="linenumber">2,4</context>
18975-
</context-group>
18976-
<target>RL</target>
18977-
</trans-unit>
18978-
<trans-unit id="smsPoc.description" datatype="html" resname="smsPoc.description">
18979-
<source>Send a test SMS. Choose AWS or Twilio for each send.</source>
18980-
<context-group purpose="location">
18981-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
18982-
<context context-type="linenumber">8,10</context>
18983-
</context-group>
18984-
<target>RL</target>
18985-
</trans-unit>
18986-
<trans-unit id="smsPoc.sandboxNotice" datatype="html" resname="smsPoc.sandboxNotice">
18987-
<source>This POC currently runs in SANDBOX mode. If you want to test actual SMS delivery to your phone, please reach out to Leo on Slack to add your phone number to our AWS SNS ORCID Friend Sandbox and the Twilio accounts.</source>
18988-
<context-group purpose="location">
18989-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
18990-
<context context-type="linenumber">14,19</context>
18991-
</context-group>
18992-
<target>RL</target>
18993-
</trans-unit>
18994-
<trans-unit id="smsPoc.provider" datatype="html" resname="smsPoc.provider">
18995-
<source>Provider</source>
18996-
<context-group purpose="location">
18997-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
18998-
<context context-type="linenumber">28,30</context>
18999-
</context-group>
19000-
<target>RL</target>
19001-
</trans-unit>
19002-
<trans-unit id="smsPoc.providerAws" datatype="html" resname="smsPoc.providerAws">
19003-
<source>AWS SNS</source>
19004-
<context-group purpose="location">
19005-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19006-
<context context-type="linenumber">36,38</context>
19007-
</context-group>
19008-
<target>RL</target>
19009-
</trans-unit>
19010-
<trans-unit id="smsPoc.providerTwilio" datatype="html" resname="smsPoc.providerTwilio">
19011-
<source>Twilio</source>
19012-
<context-group purpose="location">
19013-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19014-
<context context-type="linenumber">39,41</context>
19015-
</context-group>
19016-
<target>RL</target>
19017-
</trans-unit>
19018-
<trans-unit id="smsPoc.phoneNumber" datatype="html" resname="smsPoc.phoneNumber">
19019-
<source>Phone number</source>
19020-
<context-group purpose="location">
19021-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19022-
<context context-type="linenumber">50,52</context>
19023-
</context-group>
19024-
<target>RL</target>
19025-
</trans-unit>
19026-
<trans-unit id="smsPoc.message" datatype="html" resname="smsPoc.message">
19027-
<source>Message</source>
19028-
<context-group purpose="location">
19029-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19030-
<context context-type="linenumber">69</context>
19031-
</context-group>
19032-
<target>RL</target>
19033-
</trans-unit>
19034-
<trans-unit id="smsPoc.messageRequired" datatype="html" resname="smsPoc.messageRequired">
19035-
<source>Message is required</source>
19036-
<context-group purpose="location">
19037-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19038-
<context context-type="linenumber">78</context>
19039-
</context-group>
19040-
<target>RL</target>
19041-
</trans-unit>
19042-
<trans-unit id="smsPoc.messageTooLong" datatype="html" resname="smsPoc.messageTooLong">
19043-
<source>Message must be 1600 characters or fewer</source>
19044-
<context-group purpose="location">
19045-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19046-
<context context-type="linenumber">80,82</context>
19047-
</context-group>
19048-
<target>RL</target>
19049-
</trans-unit>
19050-
<trans-unit id="smsPoc.sent" datatype="html" resname="smsPoc.sent">
19051-
<source>SMS sent.</source>
19052-
<context-group purpose="location">
19053-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19054-
<context context-type="linenumber">93</context>
19055-
</context-group>
19056-
<target>RL</target>
19057-
</trans-unit>
19058-
<trans-unit id="smsPoc.send" datatype="html" resname="smsPoc.send">
19059-
<source>Send SMS</source>
19060-
<context-group purpose="location">
19061-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.html</context>
19062-
<context context-type="linenumber">111,113</context>
19063-
</context-group>
19064-
<target>RL</target>
19065-
</trans-unit>
19066-
<trans-unit id="smsPoc.phoneRequired" datatype="html" resname="smsPoc.phoneRequired">
19067-
<source>Phone number is required</source>
19068-
<context-group purpose="location">
19069-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.ts</context>
19070-
<context context-type="linenumber">46</context>
19071-
</context-group>
19072-
<target>RL</target>
19073-
</trans-unit>
19074-
<trans-unit id="smsPoc.phoneInvalid" datatype="html" resname="smsPoc.phoneInvalid">
19075-
<source>Enter a valid phone number</source>
19076-
<context-group purpose="location">
19077-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.ts</context>
19078-
<context context-type="linenumber">49</context>
19079-
</context-group>
19080-
<target>RL</target>
19081-
</trans-unit>
19082-
<trans-unit id="smsPoc.sendFailed" datatype="html" resname="smsPoc.sendFailed">
19083-
<source>SMS send failed</source>
19084-
<context-group purpose="location">
19085-
<context context-type="sourcefile">src/app/sms-poc/pages/sms-poc/sms-poc.component.ts</context>
19086-
<context context-type="linenumber">76</context>
19087-
</context-group>
19088-
<target>RL</target>
19089-
</trans-unit>
1909018970
<trans-unit id="account.step1AuthenticationApp" datatype="html" resname="account.step1AuthenticationApp">
1909118971
<source>Step 1 of 2 - Authentication app</source>
1909218972
<context-group purpose="location">

0 commit comments

Comments
 (0)