Skip to content

Commit

Permalink
added more strings
Browse files Browse the repository at this point in the history
  • Loading branch information
AmniX committed Nov 12, 2024
1 parent 5be42dd commit afdaba1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ private fun FakeOrderFailedScreenContent() {
contentDescription = null,
)

Text("Payment Failed", fontSize = 24.sp, fontWeight = FontWeight.Bold)
Text(stringResource(R.string.payment_failed), fontSize = 24.sp, fontWeight = FontWeight.Bold)
Spacer(modifier = Modifier.padding(16.dp))
Text(
"Oops! Seems like there was an error placing your order because of a failed payment, please try again or report an issue. If any money is deducted then it will be refunded within 7 days",
stringResource(R.string.payment_failed_description),
fontSize = 16.sp,
textAlign = TextAlign.Center,
)
Expand Down
2 changes: 2 additions & 0 deletions example-android/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
<string name="retry_payment">支払いを再試行する</string>
<string name="thank_you_for_your_order">ご注文ありがとうございます。ご注文は確認されました。発送の詳細は、ご登録のメールアドレスにすぐに送信されます。</string>
<string name="order_confirmed">注文確定</string>
<string name="payment_failed">支払いに失敗しました</string>
<string name="payment_failed_description">申し訳ありません!お支払いに失敗したため、ご注文の際にエラーが発生したようです。もう一度お試しいただくか、問題を報告してください。差し引かれた金額は 7 日以内に返金されます。</string>

</resources>
2 changes: 2 additions & 0 deletions example-android/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@
<string name="retry_payment">Retry Payment</string>
<string name="thank_you_for_your_order">Thank you for your Order, it has been confirmed, Shipping Details will be shared on your registered email address soon</string>
<string name="order_confirmed">Order Confirmed</string>
<string name="payment_failed">Payment Failed</string>
<string name="payment_failed_description">Oops! Seems like there was an error placing your order because of a failed payment, please try again or report an issue. If any money is deducted then it will be refunded within 7 days</string>
</resources>

0 comments on commit afdaba1

Please sign in to comment.