translating next and previous in will paginate

Dear all

I was wondering how can i use i18n to translate next and previous in
the will paginate plugin

any idea

thank

Kind of this?

<%= will_paginate @posts, :previous_label => t('previous'),
:next_label => t('next') %>

Thanks

it is

<%= will_paginate @products, :next_label => t
('links.next'), :prev_label => t('links.previous') %>