Localizing data/yaml files

Is it possible to localize string coming from yaml file stored in the data folder?

I found out this one (http://stackoverflow.com/questions/17296225/middleman-localizing-data-yaml-files) on stackover but it didn’t work with me beacuse when i try to access I18n.t(data.product.description) it give me the error: undefined method `description’.

But when I access only data.product it show me the complete array.
Any suggestion?

when i try to access I18n.t(data.product.description) it give me the error: undefined method `description’.

Can you post your /data/product.yml or a part of it, showing its structure? The error sounds like the file is structured in a different way than you think it is.