Locale:...anguages(3)

πŸ“¦
version 1.036 Β· 2 versions
, in fedora 43

πŸ’– Locale::TextDomain::OO::Plugin::Language::LanguageOfLanguages πŸ’–

okay so bestie, this is a manual page for a Perl module called Locale::TextDomain::OO::Plugin::Language::LanguageOfLanguages, and it does exactly one iconic thing: Select a language of a list. that's the whole gig. main character energy, one job, does it well. πŸ’…

also here's the boring-but-official paperwork that comes with it, no cap:

$Id: LanguageOfLanguages.pm 603 2015-08-09 16:46:25Z steffenw $
$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/Plugin/Language/LanguageOfLanguages.pm $

✨ VERSION ✨

1.014 β€” that's the one, that's the version, periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

so this plugin right here? it hands you the languages method. 🫢

once you've set a list of languages, it goes and finds the first language match in the lexicon, and sets that. that's it. that's the moment.

but if there's no match at all? then the language gets set to i-default. yep. fallback queen. πŸ‘‘


🌸 SYNOPSIS 🌸

drop it into your plugin list like this, bestie:

$loc = Locale::TextDomain::OO->new(
    plugins => [ qw (
        Language::LanguageOfLanguages
        ...
    ) ],
    ...
);

πŸŽ€ SUBROUTINES/METHODS πŸŽ€

πŸ’œ method languages

so like, imagine there's no lexicon for "de-de" but there is one for "de" β€” then the language gets set to "de". the way it just... downgrades gracefully. we love to see it. ✨

$loc->languages([ qw( de-de de en ) ]);

and then you can read back which languages got set, like a little peek at the receipts:

$languages_ref = $loc->languages;

πŸ”₯ EXAMPLE πŸ”₯

inside of this distribution there's a directory named example. go run those *.pl files, bestie, they're right there waiting for you. πŸƒβ€β™€οΈπŸ’¨


πŸ’€ DIAGNOSTICS πŸ’€

none β€” nothing, silence, no drama. πŸ™ˆ


🌈 CONFIGURATION AND ENVIRONMENT 🌈

none β€” nope, nothing to configure, nothing to set, she's low maintenance fr fr.


⭐ DEPENDENCIES ⭐

she does not come alone, she brings her friends:

  • Locale::TextDomain::OO::Singleton::Lexicon
  • Locale::TextDomain::OO::Util::JoinSplitLexiconKeys
  • Moo::Role
  • MooX::Types::MooseLike::Base
  • namespace::autoclean

🚫 INCOMPATIBILITIES 🚫

not known β€” as far as anyone knows, she plays nice with everybody. no beef. 🀝


😭 BUGS AND LIMITATIONS 😭

none β€” flawless?? allegedly. we're choosing to believe it. ✨


πŸ‘€ SEE ALSO πŸ‘€

  • Locale::TextDoamin::OO

πŸ‘‘ AUTHOR πŸ‘‘

Steffen Winkler β€” thank you for your service, king. 🫑


Copyright (c) 2013 - 2014, Steffen Winkler "<steffenw at cpan.org>". All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

so yeah, it's Perl-licensed, go wild (within the same terms as Perl itself, obviously πŸ’…).

and that's the whole page, bestie!! this gem was generated by perl v5.42.0 and the page itself is dated 2025-07-25. mwah, go forth and localize. πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from