From c1fbba2768e71435a43ea711e6932a5a317b1d9e Mon Sep 17 00:00:00 2001 From: TechVest <166724172+TechVest@users.noreply.github.com> Date: Wed, 17 Apr 2024 21:19:21 +0800 Subject: [PATCH] chore: fix some comments (#2427) Signed-off-by: TechVest Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com> --- src/shared/components/common/image-upload-form.tsx | 2 +- src/shared/components/common/pictrs-image.tsx | 2 +- src/shared/utils/app/setup-date-fns.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/components/common/image-upload-form.tsx b/src/shared/components/common/image-upload-form.tsx index 71337418..9d380fd6 100644 --- a/src/shared/components/common/image-upload-form.tsx +++ b/src/shared/components/common/image-upload-form.tsx @@ -36,7 +36,7 @@ export class ImageUploadForm extends Component<
{this.props.imageSrc && ( - {/* TODO: Create "Current Iamge" translation for alt text */} + {/* TODO: Create "Current Image" translation for alt text */} { return this.props.src; } - // If theres no match, then its not a pictrs image + // If there's no match, then it's not a pictrs image if (!url.pathname.includes("/pictrs/image/")) { return this.props.src; } diff --git a/src/shared/utils/app/setup-date-fns.ts b/src/shared/utils/app/setup-date-fns.ts index 8c3c1455..2a27df35 100644 --- a/src/shared/utils/app/setup-date-fns.ts +++ b/src/shared/utils/app/setup-date-fns.ts @@ -168,7 +168,7 @@ function bestDateFns( return locale; } } - // Fallback to base langauge first, to avoid mixing languages. + // Fallback to base language first, to avoid mixing languages. return langToLocale(base_lang) ?? localeByCode[EN_US]; }