Merged in feat/lokalise-rebuild (pull request #2993)
Feat/lokalise rebuild * chore(lokalise): update translation ids * chore(lokalise): easier to switch between projects * chore(lokalise): update translation ids * . * . * . * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * chore(lokalise): new translations * merge * switch to errors for missing id's * merge * sync translations Approved-by: Linus Flood
This commit is contained in:
@@ -32,6 +32,7 @@ function useAddCardResultToast() {
|
||||
setTimeout(() => {
|
||||
toast.success(
|
||||
intl.formatMessage({
|
||||
id: "profile.creditCard.addCardSuccessful",
|
||||
defaultMessage: "Your card was successfully saved!",
|
||||
})
|
||||
)
|
||||
@@ -40,6 +41,7 @@ function useAddCardResultToast() {
|
||||
setTimeout(() => {
|
||||
toast.warning(
|
||||
intl.formatMessage({
|
||||
id: "profile.creditCard.addCardCanceled",
|
||||
defaultMessage: "You canceled adding a new credit card.",
|
||||
})
|
||||
)
|
||||
@@ -48,8 +50,9 @@ function useAddCardResultToast() {
|
||||
setTimeout(() => {
|
||||
toast.error(
|
||||
intl.formatMessage({
|
||||
id: "profile.creditCard.addCardFailed",
|
||||
defaultMessage:
|
||||
"Something went wrong and we couldn't add your card. Please try again later.",
|
||||
"An error occurred when adding a credit card, please try again later.",
|
||||
})
|
||||
)
|
||||
})
|
||||
@@ -74,6 +77,7 @@ export default function AddCreditCardButton() {
|
||||
} else {
|
||||
toast.error(
|
||||
intl.formatMessage({
|
||||
id: "profile.creditCard.unableToAddCard",
|
||||
defaultMessage:
|
||||
"We could not add a card right now, please try again later.",
|
||||
})
|
||||
@@ -83,6 +87,7 @@ export default function AddCreditCardButton() {
|
||||
onError: () => {
|
||||
toast.error(
|
||||
intl.formatMessage({
|
||||
id: "profile.creditCard.addCardFailed",
|
||||
defaultMessage:
|
||||
"An error occurred when adding a credit card, please try again later.",
|
||||
})
|
||||
@@ -105,6 +110,7 @@ export default function AddCreditCardButton() {
|
||||
>
|
||||
<MaterialIcon icon="add_circle" color="CurrentColor" />
|
||||
{intl.formatMessage({
|
||||
id: "myPages.addNewCard",
|
||||
defaultMessage: "Add new card",
|
||||
})}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user