Skip to content

Commit

Permalink
fix(lld): localised string in CLS
Browse files Browse the repository at this point in the history
  • Loading branch information
fAnselmi-Ledger committed Oct 23, 2024
1 parent 3fc1a12 commit 2975b83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/healthy-houses-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Localised CLS string
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Cropper, { Area, CropperProps } from "react-easy-crop";
import { createCanvas, getRadianAngle, rotateSize } from "./imageUtils";
import { ImageCropError } from "@ledgerhq/live-common/customImage/errors";
import { useTrack } from "~/renderer/analytics/segment";
import { useTranslation } from "react-i18next";

export type CropResult = ImageDimensions & ImageBase64Data;

Expand Down Expand Up @@ -159,6 +160,8 @@ const ImageCropper: React.FC<Props> = props => {
const aspect = targetDimensions.width / targetDimensions.height;
const debouncedCompleteCropPixel = useDebounce(completeCropPixel, 500);

const { t } = useTranslation();

useEffect(() => {
let dead = false;
if (!imageRef.current) return;
Expand Down Expand Up @@ -267,7 +270,7 @@ const ImageCropper: React.FC<Props> = props => {
Icon={IconsLegacy.ReverseMedium}
data-testid="custom-image-crop-rotate-button"
>
Rotate
{t("customImage.rotate")}
</Button>
</Flex>
</Flex>
Expand Down
1 change: 1 addition & 0 deletions apps/ledger-live-desktop/static/i18n/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6418,6 +6418,7 @@
"cta": "Custom lock screen",
"managerCTA": "Lock screen picture",
"managerCTARemove": "Remove",
"rotate": "Rotate",
"steps": {
"choose": {
"stepLabel": "Choose picture",
Expand Down

0 comments on commit 2975b83

Please sign in to comment.