DOKK / manpages / debian 11 / libtest-bdd-cucumber-perl / Test::BDD::Cucumber::I18n.3pm.en
Test::BDD::Cucumber::I18n(3pm) User Contributed Perl Documentation Test::BDD::Cucumber::I18n(3pm)

Test::BDD::Cucumber::I18N - Internationalization

version 0.75

Internationalization of feature files and step definitions.

  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

Get codes of supported languages.

Check if a language is supported. Takes as argument the language abbreviation defined in "share/i18n.json".

Get definition of a language. Takes as argument the language abbreviation defined in "share/i18n.json".

Get readable keyword definitions.

Return a keyword into a subname with non-word characters removed.

Languages are defined in a JSON-based hash in the __DATA__ section of Test::BDD::Cucumber::I18N::Data, and have been lifted from the Gherkin distribution.

Gregor Goldbach "glauschwuffel@nomaden.org" (based on the works of Pablo Duboue)

  Copyright 2019-2020, Erik Huelsmann
  Copyright 2014-2019, Gregor Goldbach; Licensed under the same terms as Perl
2020-12-30 perl v5.32.0