how to write correctly <%= t('.title_#{time.now.wday}') %>?

Usually to add a word (for my multilanguage website) I use this system: <%= t('.title') %> Now in config/locales/en.yml, I added something like this:

That's because you need double quotes for string interpolation in Ruby. Just replace

<%= t('.title_#{Time.now.wday}') %>

for

<%= t(".title_#{Time.now.wday}") %>

although it maybe should be

<%= t("home.title_#{Time.now.wday}") %>

because titletitle_0 and title_1 are nested under home