Avatar
treastrain / Tanaka.R 2/16/2025 11:03 AM
Locale.NumberingSystem において、Unicode CLDR に定義されているものをあらかじめ static var として定義しておくという提案の Swift フォーラムトピックで私(を含む何名か)がメンションされたので共有します。 Unicode CLDR には jpanyear という ID があり、それを Swift Foundation では japaneseGannen という命名で定義しそうなのですが、yockow さんが japaneseCalendarYear 等が良いのではないかとコメントしています。 japaneseGannen という命名は .NET で使われている命名を参考にしているそうです。 命名についてコメントありましたらぜひ… 🙏 https://forums.swift.org/t/76203/24
I hope it's not too late. As a native Japanese speaker, I feel uneasy about japaneseGannen. I personally prefer japaneseCalendarYear to it because jpanyear means that "the first year of the Japanese calendar era is called 元年(gan-nen), but the rest are called as usual; 2年, 3年, 4年, ...". References: CLDR-11819 "Use 元年 for the first year of Ja...