Folo icon indicating copy to clipboard operation
Folo copied to clipboard

[i18n]: Errors in number formatting in French and German, and suggestions for improving date formatting

Open PrinOrange opened this issue 10 months ago • 3 comments

Type of i18n contribution

Other i18n-related issue

Language

French, Germany, Portuguese, Russian, and other European Languages except English, and Turkey

Description

Number Formatting Issues

For French, Spanish, Italian, Portuguese, Finnish, and other European languages, as well as Turkish, they follow a different convention from English (US/UK). These languages use a comma , as the decimal separator and a period . as the thousands separator.

For example, the number thirteen thousand point five is written as 13.000,5 instead of 13,000.5 in these languages.
Incorrect number formatting may lead to misunderstandings.

This issue needs to be addressed in Follow.

Image

Date Formatting Issues

Not all countries use the mm-dd-yyyy date format. Only the United States and a few other regions follow this convention.
In Europe, including the UK, the standard format is dd-mm-yyyy. See the example below:

Image

Similarly, Asian countries typically use the yyyy-mm-dd format.

For example, in the image below, the date 2-11-2025 could be misinterpreted:

  • Europeans would read it as November 2, 2025 (dd-mm-yyyy),
  • Americans would read it as February 11, 2025 (mm-dd-yyyy).

Incorrect date formatting may also cause misunderstandings.

Image

Additional Note:

There are significant vocabulary differences between British English, American English, and Australian English. It is recommended to design separate localized English translations for these regions.


数字格式问题

对于法语、西班牙语、意大利语、葡萄牙语、芬兰语等其他欧陆语言,以及土耳其语,它们跟英美习惯不同,而是使用逗号 , 表达小数点,点号 . 表达千分位分隔符。 例如一万三千点五,在它们的语言中写为 13.000,5 而不是 13,000.5。不正确使用数字格式可能会造成误解。

在 Follow 中这些数字格式的问题需要加以解决。 Image

日期格式问题

不是所有的国家地区都使用 mm-dd-yyyy 格式的日期,只有美国和极少数地区才会使用。而在欧洲,包括英国通用 dd-mm-yyyy 如下图

Image

用样的,在亚洲地区通用 yyyy-mm-dd

例如下图中的日期显示 2-11-2025,欧洲人会解读为 11月2日,但是美国人会解读为2月11日。日期格式不正确可能同样也会造成误解

Image

补充:英式英语、美式英语和澳洲英语在用词差异上很明显,建议为这些地区各自设计本土英语语言翻译方案。

Additional context

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct
  • [x] This issue is valid

PrinOrange avatar Feb 14 '25 11:02 PrinOrange

I have referenced some documents about date and number localization, it might be a breaking change and refractor for existing project and needs to integrate with format.js. https://formatjs.github.io/

PrinOrange avatar Feb 14 '25 14:02 PrinOrange

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Follow or in the beta—please include it with your comment!