NAME
Test::BDD::Cucumber::I18N - Internationalization
VERSION
version 0.19
DESCRIPTION
Internationalization of feature files and step definitions.
SYNOPSIS
use Test::BDD::Cucumber::I18N
qw(languages has_language langdef);
# get codes of supported languages
my @supported_languages = languages();
# look up if a language is supported
my $language_is_supported = has_language('de');
# get definition of a language
my $langdef = langdef('de');
# get readable keyword definitions
my $string = readable_keywords
LANGUAGES
Languages are defined in a JSON-based hash in the __DATA__ section of this file. That hash the i18n.json of the Gherkin project (the parser for features that the original Cucumber tool uses). Just copy Gherkin's i18n.json in the data section to update language definitions.
Gherkin can be found at https://github.com/cucumber/gherkin, its i18n.json at https://github.com/cucumber/gherkin/blob/master/lib/gherkin/i18n.json.
AUTHOR
Gregor Goldbach glauschwuffel@nomaden.org
(based on the works of Pablo Duboue)
LICENSE
Copyright 2014, Gregor Goldbach; Licensed under the same terms as Perl
Definition of languages based on data from Gherkin. Copyright (c) 2009-2013 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 130:
Non-ASCII character seen before =encoding in 'Hellesøy'. Assuming UTF-8