From f63fcf50952f24b0f8620fda7cba590bd2340a36 Mon Sep 17 00:00:00 2001 From: Asqar Arslanov Date: Sat, 28 Sep 2024 22:17:59 +0300 Subject: [PATCH] fix: use more appropriate dashes change em dashes to en dashses in appropriate contexts --- LICENSE | 2 +- backend/src/bot/handlers/views/trainings.tsx | 2 +- backend/src/translations/_en.tsx | 4 ++-- backend/src/translations/_ru.tsx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index da5aee5..1981da0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024—PRESENT one-zero-eight +Copyright (c) 2024–PRESENT one-zero-eight Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/backend/src/bot/handlers/views/trainings.tsx b/backend/src/bot/handlers/views/trainings.tsx index bdc9275..6b8d6fd 100644 --- a/backend/src/bot/handlers/views/trainings.tsx +++ b/backend/src/bot/handlers/views/trainings.tsx @@ -135,7 +135,7 @@ export default makeView({ renderDetails={false} backTab={tab} > - {`${statusEmoji} ${timeStart}—${timeEnd}`} + {`${statusEmoji} ${timeStart}–${timeEnd}`} {`${isFavorite ? '⭐️ ' : ''}${training.title}`} diff --git a/backend/src/translations/_en.tsx b/backend/src/translations/_en.tsx index 6b49e6b..3507851 100644 --- a/backend/src/translations/_en.tsx +++ b/backend/src/translations/_en.tsx @@ -23,7 +23,7 @@ function dateAndTimeShort( const monthShort = startsAt.toLocaleDateString('en-US', { month: 'short', timeZone: TIMEZONE }) const dayOfMonth = startsAt.toLocaleDateString('en-US', { day: 'numeric', timeZone: TIMEZONE }) - return `${weekDayShort} ${monthShort} ${dayOfMonth}, ${clockTime(startsAt, TIMEZONE)}—${clockTime(endsAt, TIMEZONE)}` + return `${weekDayShort} ${monthShort} ${dayOfMonth}, ${clockTime(startsAt, TIMEZONE)}–${clockTime(endsAt, TIMEZONE)}` } function beautifulSemesterTitle(raw: string): string { @@ -180,7 +180,7 @@ export default { {dateLong(startsAt)}
Time: - {`${clockTime(startsAt, TIMEZONE)}—${clockTime(endsAt, TIMEZONE)}`} + {`${clockTime(startsAt, TIMEZONE)}–${clockTime(endsAt, TIMEZONE)}`}
Accreditted: {accredited ? 'Yes' : 'No'} diff --git a/backend/src/translations/_ru.tsx b/backend/src/translations/_ru.tsx index c0803f9..cb5690c 100644 --- a/backend/src/translations/_ru.tsx +++ b/backend/src/translations/_ru.tsx @@ -33,7 +33,7 @@ function dateAndTimeShort( const weekDayCapitalized = weekDayShort.charAt(0).toUpperCase() + weekDayShort.slice(1) - return `${weekDayCapitalized}, ${dayOfMonth}.${month}.${year} в ${clockTime(startsAt, TIMEZONE)}—${clockTime(endsAt, TIMEZONE)}` + return `${weekDayCapitalized}, ${dayOfMonth}.${month}.${year} в ${clockTime(startsAt, TIMEZONE)}–${clockTime(endsAt, TIMEZONE)}` } function beautifulSemesterTitle(raw: string): string { @@ -193,7 +193,7 @@ export default { {dateLong(startsAt)}
Время: - {`${clockTime(startsAt, TIMEZONE)}—${clockTime(endsAt, TIMEZONE)}`} + {`${clockTime(startsAt, TIMEZONE)}–${clockTime(endsAt, TIMEZONE)}`}
Аккредитовано: {accredited ? 'да' : 'нет'}