Skip to content

Commit cce5339

Browse files
authored
Merge pull request #284 from afterpay/update-language-and-buttonKind
update language and button kind
2 parents 7c26aca + 2cd8b2e commit cce5339

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Example/Example/Components/ComponentsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private final class ContentStackViewController: UIViewController, PriceBreakdown
187187
stack.addArrangedSubview(payButton3)
188188
let payButton4: UIButton = PaymentButton(
189189
colorScheme: .dynamic(lightPalette: .darkMono, darkPalette: .lightMono),
190-
buttonKind: .placeOrder
190+
buttonKind: .continueWith
191191
)
192192
stack.addArrangedSubview(payButton4)
193193

Sources/Afterpay/Resources/Drawables.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private let localeLanguages: [Locale: Drawables] = [
1313
Locales.enGB: .enClearpay,
1414
Locales.enNZ: .enAfterpay,
1515
Locales.enUS: .enCashAppAfterpay,
16-
Locales.enUSposix: .enAfterpay,
16+
Locales.enUSposix: .enCashAppAfterpay,
1717
Locales.enCA: .enAfterpay,
1818
Locales.frCA: .frCA,
1919
]

Sources/Afterpay/Views/PaymentButtonUIView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public enum ButtonKind {
3636
case buyNow
3737
case checkout
3838
case payNow
39-
case placeOrder
39+
case continueWith
4040

4141
var foregroundString: String {
4242
switch self {
@@ -46,7 +46,7 @@ public enum ButtonKind {
4646
return Afterpay.drawable.localized.buttonCheckoutForeground
4747
case .payNow:
4848
return Afterpay.drawable.localized.buttonPayNowForeground
49-
case .placeOrder:
49+
case .continueWith:
5050
return Afterpay.drawable.localized.buttonPlaceOrderForeground
5151
}
5252
}
@@ -59,7 +59,7 @@ public enum ButtonKind {
5959
return Afterpay.drawable.polyLocalized.buttonCheckoutForeground
6060
case .payNow:
6161
return Afterpay.drawable.polyLocalized.buttonPayNowForeground
62-
case .placeOrder:
62+
case .continueWith:
6363
return Afterpay.drawable.polyLocalized.buttonPlaceOrderForeground
6464
}
6565
}
@@ -72,8 +72,8 @@ public enum ButtonKind {
7272
return "checkout with"
7373
case .payNow:
7474
return "pay now with"
75-
case .placeOrder:
76-
return "place order with"
75+
case .continueWith:
76+
return "continue with"
7777
}
7878
}
7979
}

0 commit comments

Comments
 (0)