victrme / Bonjourr

Minimalist & lightweight startpage inspired by iOS
https://bonjourr.fr
GNU General Public License v3.0
900 stars 104 forks source link

Localization for Chinese Date Display #270

Closed baozidai closed 6 months ago

baozidai commented 8 months ago

Describe the bug Localization for Chinese date display can be improved.

To Reproduce Steps to reproduce the behavior:

  1. Go to a new tab.
  2. Change language to Chinese.
  3. See the date displayed.

Expected behavior In Chinese expressions, dates are often followed by "日". For example, January 9th is "1 月 9 日". But in Bonjourr, it's showed as "9 1 月" or "1 月 9" when US Date Format on.

Screenshots

  1. Bonjourr: 1.US Date Format OFF 图片 1.US Date Format ON 图片

  2. What Expected: 图片

Device Information:

victrme commented 8 months ago

Thanks for the issue @baozidai, I'll add this date format for the next update !

codemanwg commented 8 months ago

Under the American date format, add the after class, maybe can get the prospective date format `#date{ position: relative; }

date::after{

content: '日'; position: absolute; top: -0.03em; margin-left: 2px; }`

Snipaste_2024-01-10_08-50-55
victrme commented 6 months ago

Chinese date format as been added to Bonjourr !