Cucumber and i18n with interpolation

This post was migrated over from Muziboo DevBlog. If you are using cucumber to test a multilingual app, you should check out this post for a step definition that you can use to test multilingual strings. However, most likely you would be using variables in your translation strings. Assuming you have pickle installed (if you don't you should), you can use the step and step definition below to test strings with variable interpolation Just like pickle, you can add any number of variables.

blog comments powered by Disqus
Hana Mohan
Hana Mohan