Update period-title.js (#20422)
(A petty but important typography fix) Use en dash (–) instead of hyphen (-) for ranges (including dates) For example — 1–2, May–June, 1:00pm–2:00pm A space in before and after the dash is usually not present in writing but for user interfaces can be stylistic choice. (The space is left unchanged here.) References - https://learn.microsoft.com/en-us/style-guide/punctuation/dashes-hyphens/enes - https://www.thepunctuationguide.com/en-dash.html
This commit is contained in:
parent
0a619d8c88
commit
da43b60510
|
@ -28,7 +28,7 @@ export default htmlHelper((period, options) => {
|
|||
.clone()
|
||||
.subtract(1, "year")
|
||||
.format(I18n.t("dates.long_with_year_no_time")) +
|
||||
" - " +
|
||||
" – " +
|
||||
finish.format(I18n.t("dates.long_with_year_no_time"));
|
||||
break;
|
||||
case "quarterly":
|
||||
|
@ -37,7 +37,7 @@ export default htmlHelper((period, options) => {
|
|||
.clone()
|
||||
.subtract(3, "month")
|
||||
.format(I18n.t("dates.long_no_year_no_time")) +
|
||||
" - " +
|
||||
" – " +
|
||||
finish.format(I18n.t("dates.long_no_year_no_time"));
|
||||
break;
|
||||
case "weekly":
|
||||
|
@ -50,7 +50,7 @@ export default htmlHelper((period, options) => {
|
|||
|
||||
dateString =
|
||||
start.format(I18n.t("dates.long_no_year_no_time")) +
|
||||
" - " +
|
||||
" – " +
|
||||
finish.format(I18n.t("dates.long_no_year_no_time"));
|
||||
break;
|
||||
case "monthly":
|
||||
|
@ -59,7 +59,7 @@ export default htmlHelper((period, options) => {
|
|||
.clone()
|
||||
.subtract(1, "month")
|
||||
.format(I18n.t("dates.long_no_year_no_time")) +
|
||||
" - " +
|
||||
" – " +
|
||||
finish.format(I18n.t("dates.long_no_year_no_time"));
|
||||
break;
|
||||
case "daily":
|
||||
|
|
Loading…
Reference in New Issue