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>
|
||||
|
||||
@@ -22,6 +22,7 @@ export default function DeleteCreditCardConfirmation({
|
||||
|
||||
toast.success(
|
||||
intl.formatMessage({
|
||||
id: "profile.creditCard.cardRemoved",
|
||||
defaultMessage: "Your card was successfully removed!",
|
||||
})
|
||||
)
|
||||
@@ -29,6 +30,7 @@ export default function DeleteCreditCardConfirmation({
|
||||
onError() {
|
||||
toast.error(
|
||||
intl.formatMessage({
|
||||
id: "profile.creditCard.cardRemoveFailed",
|
||||
defaultMessage:
|
||||
"Something went wrong and we couldn't remove your card. Please try again later.",
|
||||
})
|
||||
@@ -44,6 +46,7 @@ export default function DeleteCreditCardConfirmation({
|
||||
|
||||
const bodyText = intl.formatMessage(
|
||||
{
|
||||
id: "profile.creditCard.confirmRemoveCardBody",
|
||||
defaultMessage:
|
||||
"Are you sure you want to remove the card ending with {lastFourDigits} from your member profile?",
|
||||
},
|
||||
@@ -54,13 +57,16 @@ export default function DeleteCreditCardConfirmation({
|
||||
<Dialog
|
||||
bodyText={bodyText}
|
||||
cancelButtonText={intl.formatMessage({
|
||||
id: "profile.creditCard.noKeepCard",
|
||||
defaultMessage: "No, keep card",
|
||||
})}
|
||||
proceedOnClick={handleProceedDeleteCard}
|
||||
proceedText={intl.formatMessage({
|
||||
id: "profile.creditCard.yesRemoveCard",
|
||||
defaultMessage: "Yes, remove my card",
|
||||
})}
|
||||
titleText={intl.formatMessage({
|
||||
id: "profile.creditCard.removeCard",
|
||||
defaultMessage: "Remove card from member profile",
|
||||
})}
|
||||
trigger={
|
||||
|
||||
@@ -19,6 +19,7 @@ export default function ManagePreferencesButton() {
|
||||
} else {
|
||||
toast.error(
|
||||
intl.formatMessage({
|
||||
id: "profile.managePreferences.communicationPreferencesUnavailable",
|
||||
defaultMessage:
|
||||
"It's not possible to manage your communication preferences right now. Please try again later or contact support if the problem persists.",
|
||||
})
|
||||
@@ -28,6 +29,7 @@ export default function ManagePreferencesButton() {
|
||||
onError: () => {
|
||||
toast.error(
|
||||
intl.formatMessage({
|
||||
id: "profile.managePreferences.error",
|
||||
defaultMessage:
|
||||
"An error occurred trying to manage your preferences, please try again later.",
|
||||
})
|
||||
@@ -47,6 +49,7 @@ export default function ManagePreferencesButton() {
|
||||
>
|
||||
<MaterialIcon icon="arrow_forward" color="CurrentColor" />
|
||||
{intl.formatMessage({
|
||||
id: "profile.managePreferences.title",
|
||||
defaultMessage: "Manage preferences",
|
||||
})}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user