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:
@@ -18,12 +18,14 @@ export default function CopyButton({ membershipNumber }: CopyButtonProps) {
|
||||
navigator.clipboard.writeText(membershipNumber)
|
||||
toast.success(
|
||||
intl.formatMessage({
|
||||
id: "myPages.membershipIdCopied",
|
||||
defaultMessage: "Membership ID copied to clipboard",
|
||||
})
|
||||
)
|
||||
} catch {
|
||||
toast.error(
|
||||
intl.formatMessage({
|
||||
id: "errorMessage.copyFailed",
|
||||
defaultMessage: "Failed to copy",
|
||||
})
|
||||
)
|
||||
|
||||
+2
@@ -21,6 +21,7 @@ export default async function MembershipNumber({
|
||||
<div className={classNames}>
|
||||
<Caption color="pale">
|
||||
{intl.formatMessage({
|
||||
id: "overview.membershipNumber.label",
|
||||
defaultMessage: "Membership ID:",
|
||||
})}
|
||||
</Caption>
|
||||
@@ -29,6 +30,7 @@ export default async function MembershipNumber({
|
||||
<code data-hj-suppress>
|
||||
{membership?.membershipNumber ??
|
||||
intl.formatMessage({
|
||||
id: "common.NA",
|
||||
defaultMessage: "N/A",
|
||||
})}
|
||||
</code>
|
||||
|
||||
@@ -24,13 +24,12 @@ export default async function Friend({
|
||||
const isHighestLevel = isHighestMembership(membership.membershipLevel)
|
||||
|
||||
const lvlMessageHighest = intl.formatMessage({
|
||||
id: "overview.friend.highestLevel",
|
||||
defaultMessage: "Highest level",
|
||||
})
|
||||
|
||||
const lvlMessageLevel = intl.formatMessage(
|
||||
{
|
||||
defaultMessage: "Level {level}",
|
||||
},
|
||||
{ id: "common.membershipLevelWithValue", defaultMessage: "Level {level}" },
|
||||
{ level: membershipLevels[membership.membershipLevel] }
|
||||
)
|
||||
|
||||
|
||||
+1
@@ -28,6 +28,7 @@ export default async function SasBoostStatus({
|
||||
|
||||
const sasBoostExpiryText = intl.formatMessage(
|
||||
{
|
||||
id: "membershipOverViewCard.sasBoostedUntilDate",
|
||||
defaultMessage: "Boosted by SAS until {date}",
|
||||
},
|
||||
{
|
||||
|
||||
+3
-1
@@ -32,7 +32,7 @@ export default async function MembershipOverviewCard({
|
||||
const pointsToSpendText =
|
||||
typeof user.membership.currentPoints === "number"
|
||||
? intl.formatNumber(user.membership.currentPoints)
|
||||
: intl.formatMessage({ defaultMessage: "N/A" })
|
||||
: intl.formatMessage({ id: "common.NA", defaultMessage: "N/A" })
|
||||
|
||||
const sasMembership = user.loyalty
|
||||
? getEurobonusMembership(user.loyalty)
|
||||
@@ -53,6 +53,7 @@ export default async function MembershipOverviewCard({
|
||||
<h2 className={styles.levelText} id="membership-level">
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "common.membershipLevelWithValue",
|
||||
defaultMessage: "Level {level}",
|
||||
},
|
||||
{ level: membershipLevels[user.membership.membershipLevel] }
|
||||
@@ -79,6 +80,7 @@ export default async function MembershipOverviewCard({
|
||||
<Typography variant="Title/Overline/sm">
|
||||
<h3 className={styles.pointsLabel}>
|
||||
{intl.formatMessage({
|
||||
id: "common.pointsToSpend",
|
||||
defaultMessage: "Points to spend",
|
||||
})}
|
||||
</h3>
|
||||
|
||||
+1
@@ -26,6 +26,7 @@ export default async function ExpiringPoints({ user }: UserProps) {
|
||||
<Body color="white" textTransform="bold" textAlign="center">
|
||||
{intl.formatMessage(
|
||||
{
|
||||
id: "overview.stats.expiringPoints",
|
||||
defaultMessage: "{points} spendable points expiring by {date}",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -28,9 +28,11 @@ export default async function Points({ user }: UserProps) {
|
||||
<PointsColumn
|
||||
value={membership?.currentPoints}
|
||||
title={intl.formatMessage({
|
||||
id: "stats.points.yourPointsToSpend",
|
||||
defaultMessage: "Your points to spend",
|
||||
})}
|
||||
subtitle={intl.formatMessage({
|
||||
id: "stats.points.asOfToday",
|
||||
defaultMessage: "as of today",
|
||||
})}
|
||||
/>
|
||||
@@ -38,10 +40,12 @@ export default async function Points({ user }: UserProps) {
|
||||
<PointsColumn
|
||||
value={membership?.pointsRequiredToNextlevel}
|
||||
title={intl.formatMessage({
|
||||
id: "stats.points.pointsNeededToLevelUp",
|
||||
defaultMessage: "Points needed to level up",
|
||||
})}
|
||||
subtitle={intl.formatMessage(
|
||||
{
|
||||
id: "stats.points.nextLevel",
|
||||
defaultMessage: "next level: {nextLevel}",
|
||||
},
|
||||
{ nextLevel: nextLevel.name }
|
||||
|
||||
@@ -34,6 +34,7 @@ export default async function UserBaseInfo({ user }: UserBaseInfoProps) {
|
||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||
<span>
|
||||
{intl.formatMessage({
|
||||
id: "overview.membershipNumber.label",
|
||||
defaultMessage: "Membership ID:",
|
||||
})}
|
||||
</span>
|
||||
@@ -46,6 +47,7 @@ export default async function UserBaseInfo({ user }: UserBaseInfoProps) {
|
||||
<Typography variant="Body/Supporting text (caption)/smBold">
|
||||
<span className={styles.noMembership}>
|
||||
{intl.formatMessage({
|
||||
id: "common.NA",
|
||||
defaultMessage: "N/A",
|
||||
})}
|
||||
</span>
|
||||
|
||||
@@ -55,6 +55,7 @@ export default async function Overview({
|
||||
<>
|
||||
<MaterialIcon icon="id_card" size={24} color="CurrentColor" />
|
||||
{intl.formatMessage({
|
||||
id: "dtmc.showTeamMemberCard",
|
||||
defaultMessage: "Show Team Member Card",
|
||||
})}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user