Skip to content

Commit dbd188b

Browse files
committed
refactor: fix typo in i18n lang keys
1 parent cee926b commit dbd188b

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

app/src/components/loop/swap/StepSummary.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface Props {
3131
}
3232

3333
const StepSummary: React.FC<Props> = ({ title, heading, description, channelCount }) => {
34-
const { l } = usePrefixedTranslation('cmps.loop.swaps.StepSummary');
34+
const { l } = usePrefixedTranslation('cmps.loop.swap.StepSummary');
3535

3636
const { Wrapper, Heading, Description } = Styled;
3737
return (

app/src/components/loop/swap/SwapConfigStep.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const SwapConfigStep: React.FC<Props> = ({
4545
onNext,
4646
onCancel,
4747
}) => {
48-
const { l } = usePrefixedTranslation('cmps.loop.swaps.SwapConfigStep');
48+
const { l } = usePrefixedTranslation('cmps.loop.swap.SwapConfigStep');
4949

5050
const { Wrapper, Summary, Config } = Styled;
5151
return (

app/src/components/loop/swap/SwapProcessing.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface Props {
3131
}
3232

3333
const SwapProcessingStep: React.FC<Props> = ({ swapError }) => {
34-
const { l } = usePrefixedTranslation('cmps.loop.swaps.SwapProcessingStep');
34+
const { l } = usePrefixedTranslation('cmps.loop.swap.SwapProcessingStep');
3535
const { Wrapper, Loader, LoadingMessage, ErrorMessage } = Styled;
3636
return (
3737
<Wrapper>

app/src/components/loop/swap/SwapReviewStep.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const SwapReviewStep: React.FC<Props> = ({
5353
onNext,
5454
onCancel,
5555
}) => {
56-
const { l } = usePrefixedTranslation('cmps.loop.swaps.SwapReviewStep');
56+
const { l } = usePrefixedTranslation('cmps.loop.swap.SwapReviewStep');
5757

5858
const { Wrapper, Summary, Invoice, InvoiceRow, Divider } = Styled;
5959
return (

app/src/i18n/locales/en-US.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
"cmps.loop.swap.StepButtons.cancel": "Cancel",
1313
"cmps.loop.swap.StepButtons.next": "Next",
1414
"cmps.loop.swap.StepButtons.confirm": "Confirm",
15-
"cmps.loop.swaps.StepSummary.channelsSelected": "channels selected",
16-
"cmps.loop.swaps.SwapConfigStep.title": "Step 1 of 2",
17-
"cmps.loop.swaps.SwapConfigStep.heading": "Set Liquidity Parameters",
18-
"cmps.loop.swaps.SwapConfigStep.description": "Use the slider to prevent errors receiving or forwarding payments on the channels selected below.",
19-
"cmps.loop.swaps.SwapProcessingStep.loadingMsg": "Configuring Loops",
20-
"cmps.loop.swaps.SwapReviewStep.title": "Step 2 of 2",
21-
"cmps.loop.swaps.SwapReviewStep.heading": "Review the quote",
22-
"cmps.loop.swaps.SwapReviewStep.description": "Confirm. the invoice total for increasing your inbound liquidity. If you'd like to make adjustments, click the back arrow above.",
23-
"cmps.loop.swaps.SwapReviewStep.amount": "{{type}} Amount",
24-
"cmps.loop.swaps.SwapReviewStep.fees": "Fees",
25-
"cmps.loop.swaps.SwapReviewStep.total": "Invoice Total",
15+
"cmps.loop.swap.StepSummary.channelsSelected": "channels selected",
16+
"cmps.loop.swap.SwapConfigStep.title": "Step 1 of 2",
17+
"cmps.loop.swap.SwapConfigStep.heading": "Set Liquidity Parameters",
18+
"cmps.loop.swap.SwapConfigStep.description": "Use the slider to prevent errors receiving or forwarding payments on the channels selected below.",
19+
"cmps.loop.swap.SwapProcessingStep.loadingMsg": "Configuring Loops",
20+
"cmps.loop.swap.SwapReviewStep.title": "Step 2 of 2",
21+
"cmps.loop.swap.SwapReviewStep.heading": "Review the quote",
22+
"cmps.loop.swap.SwapReviewStep.description": "Confirm. the invoice total for increasing your inbound liquidity. If you'd like to make adjustments, click the back arrow above.",
23+
"cmps.loop.swap.SwapReviewStep.amount": "{{type}} Amount",
24+
"cmps.loop.swap.SwapReviewStep.fees": "Fees",
25+
"cmps.loop.swap.SwapReviewStep.total": "Invoice Total",
2626
"cmps.layout.NavMenu.menu": "Menu",
2727
"cmps.layout.NavMenu.loop": "Lightning Loop",
2828
"cmps.layout.NavMenu.settings": "Settings",

0 commit comments

Comments
 (0)