OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/features/support/cuke_i18n.rb

8 lines
132 B

module CukeI18n
def translate(step)
step.gsub(/t:[\w\.]+/) { |code| I18n.t(code.split(':').last) }
end
end
World(CukeI18n)