Test::...r::I18n(3pm)

πŸ“¦
version 0.87 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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