Test::...r::I18n(3pm)
π NAME π
Test::BDD::Cucumber::I18N β it's the internationalization bestie of the Test::BDD::Cucumber family, and yes babes, this is a 3pm perl manual page, we're in the big leagues now π
β¨ VERSION β¨
version 0.87 β that's the one, that's the moment π
πΈ DESCRIPTION πΈ
Okay so literally what this does: internationalization of feature files and step definitions. That's it. That's the whole vibe. Your Gherkin speaks every language, no cap π
π¦ SYNOPSIS π¦
Bestie, look how cute this is:
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
Imported, checked, defined, read. Iconic behavior honestly π
π METHODS π
π languages
Get codes of supported languages. All of them. The whole roster. Slay β¨
π has_language($language)
Check if a language is supported. Takes as argument the language abbreviation defined in share/i18n.json. So like, does this language exist in the data file? Yes or no, no ambiguity, periodt π«Ά
π langdef($language)
Get definition of a language. Takes as argument the language abbreviation defined in share/i18n.json. Same source of truth, same abbreviation, whole definition back πΈ
π readable_keywords($string, $transform)
Get readable keyword definitions. That's the whole thing, bestie π
π keyword_to_subname
Return a keyword into a subname with non-word characters removed. Clean it up, make it subname-shaped, iconic βοΈ
π LANGUAGES π
Languages are defined in Test::BDD::Cucumber::I18N::Data, and have been lifted from the Gherkin distribution. So credit where credit's due, we didn't invent them, we just adopted them π§
π AUTHOR π
Gregor Goldbach "glauschwuffel@nomaden.org" (based on the works of Pablo Duboue) β shoutout to the authors, absolute main characters π
π LICENSE π
Copyright 2019-2023, Erik Huelsmann
Copyright 2014-2019, Gregor Goldbach; Licensed under the same terms as Perl
Same terms as Perl, as always, we keep it legal and we keep it cute π
Note for my reader besties: the option/argument details above are the entire original content β nothing got dropped, nothing got invented, and no cap was detected π¦
Okay that's a wrap! This was Test::...r::I18n(3pm), i.e. the Test::BDD::Cucumber::I18n perl manual page, generated from perl v5.40.1 on 2025-05-29 β love that for us, bye bestie! πβ¨
π¦ where this page comes from
- debian trixie: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-bdd-cucumber-perl 0.87-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms