Skip to content

Commit

Permalink
Merge pull request #284 from afterpay/update-language-and-buttonKind
Browse files Browse the repository at this point in the history
update language and button kind
  • Loading branch information
squarepaul authored Feb 28, 2025
2 parents 7c26aca + 2cd8b2e commit cce5339
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Example/Example/Components/ComponentsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private final class ContentStackViewController: UIViewController, PriceBreakdown
stack.addArrangedSubview(payButton3)
let payButton4: UIButton = PaymentButton(
colorScheme: .dynamic(lightPalette: .darkMono, darkPalette: .lightMono),
buttonKind: .placeOrder
buttonKind: .continueWith
)
stack.addArrangedSubview(payButton4)

Expand Down
2 changes: 1 addition & 1 deletion Sources/Afterpay/Resources/Drawables.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private let localeLanguages: [Locale: Drawables] = [
Locales.enGB: .enClearpay,
Locales.enNZ: .enAfterpay,
Locales.enUS: .enCashAppAfterpay,
Locales.enUSposix: .enAfterpay,
Locales.enUSposix: .enCashAppAfterpay,
Locales.enCA: .enAfterpay,
Locales.frCA: .frCA,
]
Expand Down
10 changes: 5 additions & 5 deletions Sources/Afterpay/Views/PaymentButtonUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public enum ButtonKind {
case buyNow
case checkout
case payNow
case placeOrder
case continueWith

var foregroundString: String {
switch self {
Expand All @@ -46,7 +46,7 @@ public enum ButtonKind {
return Afterpay.drawable.localized.buttonCheckoutForeground
case .payNow:
return Afterpay.drawable.localized.buttonPayNowForeground
case .placeOrder:
case .continueWith:
return Afterpay.drawable.localized.buttonPlaceOrderForeground
}
}
Expand All @@ -59,7 +59,7 @@ public enum ButtonKind {
return Afterpay.drawable.polyLocalized.buttonCheckoutForeground
case .payNow:
return Afterpay.drawable.polyLocalized.buttonPayNowForeground
case .placeOrder:
case .continueWith:
return Afterpay.drawable.polyLocalized.buttonPlaceOrderForeground
}
}
Expand All @@ -72,8 +72,8 @@ public enum ButtonKind {
return "checkout with"
case .payNow:
return "pay now with"
case .placeOrder:
return "place order with"
case .continueWith:
return "continue with"
}
}
}

0 comments on commit cce5339

Please sign in to comment.