【发布时间】:2015-12-13 22:31:48
【问题描述】:
我想把这个小黄瓜场景翻译成法语。
Feature: Test the validation on the person object
Background:
Given the language is 'english'
Scenario: Create a person with firstName empty and check we have a violation error message on it
Given we create a new person
And we set firstName ''
And we set lastName 'smith'
When we apply validation
Then we should have 1 violation
And we should have a error message on 'firstName' that says 'may not be empty'
但是我没有看到 Background 的翻译在哪里,并且我(偶然)发现 Java @Etantdonné(类似于 @Given)中的注释实际上用在带有空格的功能文件中:“Etant donné ”。
我在黄瓜网站文档中找不到关于这一点的信息。
谁能给我一个链接来了解如何在黄瓜/小黄瓜中使用 i18n ?
【问题讨论】:
标签: internationalization cucumber cucumber-jvm gherkin