AletheiaFact / AletheiaFact/aletheia

Enhancement: Implementation of internationalization (i18n) in date formatting

未关闭
#2,071 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
tech
主要语言
TypeScript
星标
55
派生
20
平均合并
2 天 6 小时
30 天内合并 PR
2

描述

### Background Information

Currently, date formatting is hardcoded or set to a specific format. To improve the user experience globally and avoid future problems, we need to implement full internationalization (i18n) in date presentation.

The goal is for the system to detect the user's locale settings and display the date in the correct format, language, and order for that region (e.g., DD/MM/YYYY for pt-BR, MM/DD/YYYY for en-US, YYYY-MM-DD for en-CA, etc.).

### Steps to Reproduce

1. Change your browser settings and set the primary language to English (United States) - en-US (where the common format is MM/DD/YYYY).
2. Refresh the page in the application.

Expected result: The date should adapt to the locale and display in the expected format for en-US.

### How

_No response_

### Expected Behavior

The date format must dynamically adapt to the locale (language and region) configured by the user in the browser or in the application settings.
The expected formatting is that which follows the regional standard:

When the locale is pt-BR (Portuguese - Brazil):

- Expected format: Day/Month/Year (DD/MM/YYYY)
- Example for October 15, 2025: 10/15/2025

When the Locale is en-US (English - US):

- Expected Format: Month/Day/Year (MM/DD/YYYY)
- Example for October 15, 2025: 10/15/2025

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。