나는 레일 국제화를 사용하고 내가 (https://github.com/rails/rails/blob/master/activesupport/lib/active_support/locale/en.yml#L15_ 여기에 문서에서 언급 한 바와 같이) : 개월 동안 무기 호를 입력해야 것으로 나타났습니다Rails 현지화 달 및 일 배열에 nil 항목이있는 이유는 무엇입니까? 이 같은 :
0 번째 달 같은 것은 없기 때문에month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
.
왜 이것이 중요한 이유입니까? 첫 번째 요소에 대해 1 월이 반환되지 않는 이유는 무엇입니까? 이게 어떻게 작동합니까?