Skip to content

Commit

Permalink
chore: use en dashes not em dashes (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
asqarslanov authored Sep 28, 2024
1 parent 20604e1 commit ceaa58d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024PRESENT one-zero-eight
Copyright (c) 2024PRESENT 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
Expand Down
2 changes: 1 addition & 1 deletion backend/src/bot/handlers/views/trainings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default makeView<Props>({
renderDetails={false}
backTab={tab}
>
{`${statusEmoji} ${timeStart}${timeEnd}`}
{`${statusEmoji} ${timeStart}${timeEnd}`}
</ToggleCheckInButton>
<TrainingDetailsButton trainingId={training.id} fromTab={tab}>
{`${isFavorite ? '⭐️ ' : ''}${training.title}`}
Expand Down
4 changes: 2 additions & 2 deletions backend/src/translations/_en.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -180,7 +180,7 @@ export default {
{dateLong(startsAt)}
<br />
<b>Time: </b>
{`${clockTime(startsAt, TIMEZONE)}${clockTime(endsAt, TIMEZONE)}`}
{`${clockTime(startsAt, TIMEZONE)}${clockTime(endsAt, TIMEZONE)}`}
<br />
<b>Accreditted: </b>
{accredited ? 'Yes' : 'No'}
Expand Down
4 changes: 2 additions & 2 deletions backend/src/translations/_ru.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -193,7 +193,7 @@ export default {
{dateLong(startsAt)}
<br />
<b>Время: </b>
{`${clockTime(startsAt, TIMEZONE)}${clockTime(endsAt, TIMEZONE)}`}
{`${clockTime(startsAt, TIMEZONE)}${clockTime(endsAt, TIMEZONE)}`}
<br />
<b>Аккредитовано: </b>
{accredited ? 'да' : 'нет'}
Expand Down

0 comments on commit ceaa58d

Please sign in to comment.