# List of localized months

**URL:** <https://www.ruby-forum.com/t/list-of-localized-months/173700>\
**Category:** Rails\
**Created:** [August 13, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/list-of-localized-months/173700 "2009-08-13T15:35:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![serpico](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@serpico](https://www.ruby-forum.com/u/serpico)\
**Post date:** [August 13, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/list-of-localized-months/173700/1 "2009-08-13T15:35:43Z")

</div>

I’m trying to print a list of localized month names in my rails app. I  
set my locale to it-IT, created an it-IT.yml translation file with the  
translated month names, but it doesn’t seem to work.

When I use date\_select I can see the trasnlated months, therefore my yml  
file and my locale should be ok, but when I try something like  
Date.new(2008).strftime("%B") or Date::MONTHNAMES i always get the  
english month names.

Can anyone help me?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![serpico](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@serpico](https://www.ruby-forum.com/u/serpico)\
**Post date:** [August 15, 2009, 12:43pm UTC](https://www.ruby-forum.com/t/list-of-localized-months/173700/2 "2009-08-15T12:43:37Z")

</div>

On 13 Aug 2009, at 14:35, Serafino P. wrote:

> 

Date’s strftime & Date’s MONTHNAME constants just aren’t localized  
(I18n.localize has a localized strftime for you)

Fred
