witspirit/IntelliJBehave

Support for custom localized keywords

ratamaa opened this issue · 1 comments

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.

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