MooX::L...sthrough(3)
β¨ MooX::Locale::Passthrough β¨
okay so this is the MooX::Locale::Passthrough page from the User Contributed Perl Documentation β and bestie, it's literally the "fake it till you make it" module for translator APIs π
π NAME π
MooX::Locale::Passthrough β it gives you the API that translator modules use, but it does not translate anything. Like, at all. Zero. Nada. It's the vibe of a translator without the actual translating π
πΈ SYNOPSIS πΈ
{ package WonderBar;
use Moo;
with "MooX::Locale::Passthrough";
sub tell_me { my $self = shift; $self->__("Hello world"); }
}
WonderBar->new->tell_me;
so you just with the role, and boom β $self->__(...) works. main character energy only β¨
π¦ DESCRIPTION π¦
MooX::Locale::Passthrough exists so CPAN modules can use the translator API without dragging in heavy dependencies (that's external software, bestie) or requirements (that's the whole "operating the resulting solution" thing).
it ships alongside MooX::Locale::TextDomain::OO, which is the one that actually allows you to plugin any translation you want later. this one? this one just vibes and hands your strings right back π«Ά
π METHODS π
__ MSGID
returns MSGID. that's it. that's the method. iconic, honestly π
__n MSGID, MSGID_PLURAL, COUNT
returns MSGID when count is equal to 1, and MSGID_PLURAL otherwise. classic singular/plural moment π
__p MSGCTX, MSGID
returns MSGID. yes, the context is right there and yes, it's ignored. slay π
β AUTHOR β
Jens Rehsack, "<rehsack at cpan.org>" π
π₯ BUGS π₯
please please please report any bugs or feature requests to "bug-MooX-Locale-Passthrough at rt.cpan.org", or through the web interface at:
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooX-Locale-Passthrough
how it works: he gets notified, and then you automatically get notified of progress on your bug as he makes changes. closed loop, we love to see it π
π SUPPORT π
you can find the docs for this module with the perldoc command:
perldoc MooX::Locale::Passthrough
you can also go looking for info at:
- π§ RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooX-Locale-Passthrough
- π AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/MooX-Locale-Passthrough
- π¦ CPAN Ratings
http://cpanratings.perl.org/m/MooX-Locale-Passthrough
- π Search CPAN
http://search.cpan.org/dist/MooX-Locale-Passthrough/
π LICENSE AND COPYRIGHT π
Copyright 2017 Jens Rehsack.
this program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
see http://dev.perl.org/licenses/ for more information. no cap, read the license π«Ά
and that's the whole page, bestie π it's perl v5.42.0, dated 2019-04-03, and you found it filed under MooX::L...sthrough(3) β go forth and passthrough your strings β¨π
π¦ where this page comes from
- opensuse-leap 16.0: perl-MooX-Locale-Passthrough 0.001-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms