Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for custom localized keywords #16

Open
ratamaa opened this issue Sep 20, 2014 · 1 comment
Open

Support for custom localized keywords #16

ratamaa opened this issue Sep 20, 2014 · 1 comment

Comments

@ratamaa
Copy link

ratamaa commented Sep 20, 2014

JBehave allows the use of custom localized keywords http://jbehave.org/reference/stable/stories-in-your-language.html specified as a Properties-file. It makes sense writing the stories in user's language and terms. That is why we use Finnish in our JBehave stories.

Now, as far as I've understood from the source code, it seems that the plugin would read the locale only from
!-- language: locale
comment in .story-file and use this to load the default localizations from JBehave's bundle.

However, there exists no localizations for Finnish in that bundle and thus a custom .properties file would be needed. Even if there was a localized keywords bundle, the keywords might still be different as JBehave allows the use of those custom properties file. Additionally, it makes no sense having to define keywords in every story while they are most likely all in the same language.

There should be an option in the JBehave-plugin page to select a .properties file to use as keywords instead of the default English one.

@ratamaa ratamaa changed the title Support for localized keywords Support for custom localized keywords Sep 20, 2014
SuleymanovRA added a commit to SuleymanovRA/IntelliJBehave that referenced this issue Mar 23, 2017
- add keywords.properties for ru and ru_sbt locale
- the plugin would read the locale only from
  !-- language: locale
  comment in .story-file and use this to load the default localizations from JBehave's bundle
@ecingala
Copy link

Hi,
I work withthe IntelliJ JBehave plugin, in French.
I have nearly the same question: I want to use French keywords.
It the tests files, there is one called: LocalizedStorySupportTest which uses French. And inside other tests classes I see there is a French Test.

How can I use the French Keywords, so that IntelliJ detects them, in my projects?
Thank you very much for your support and your contribution to BDD.

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants