Locale:...Language(3)

πŸ’– NAME πŸ’–

Locale::Codes::Language β€” module for dealing with language code sets. This is the Locale:...Language(3) page from User Contributed Perl Documentation, bestie, and it's here to make language codes make sense. 🫢

✨ SYNOPSIS ✨

okay so here's the first-look vibe check:

use Locale::Codes::Language;

$name = code2language(CODE);
$code = language2code(NAME);

@codes   = all_language_codes();
@names   = all_language_names();

πŸ’– DESCRIPTION πŸ’–

This module provides access to language code sets. Yes bestie, that's the whole assignment. πŸ’…

For a description of the code sets available, please refer to the Locale::Codes::Types document. It's giving reference material, and it's iconic. 🌸

Most of the routines take an optional additional argument which specifies the code set to use. You can specify the code set by using the name of a code set, or by using the perl constant specified in the above document. If you don't specify one, the default code set will be used. Easy peasy, no cap. ✨

πŸŽ€ ROUTINES πŸŽ€

All routines in this module call the appropriate method in the Locale::Codes module, using an object of type: language. Please refer to the documentation of the Locale::Codes module for details about each function. 🫢

The following functions are exported automatically:

  • code2language(CODE [,CODESET] [,'retired']) β€” See code2name in Locale::Codes.
  • code2languages(CODE [,CODESET]) β€” See code2names in Locale::Codes.
  • language2code(NAME [,CODESET] [,'retired']) β€” See name2code in Locale::Codes.
  • language_code2code(CODE ,CODESET ,CODESET2) β€” See code2code in Locale::Codes.
  • all_language_codes([CODESET] [,'retired']) β€” See all_codes in Locale::Codes.
  • all_language_names([CODESET] [,'retired']) β€” See all_names in Locale::Codes.

The following functions are not exported and must be called fully qualified with the package name:

  • Locale::Codes::Language::show_errors(FLAG) β€” By default, invalid input will produce empty results, but no errors. By passing in a non-zero value of FLAG, errors will be produced. See show_errors in Locale::Codes, but note that the default for the non-OO modules are to NOT produce errors. 🚨
  • Locale::Codes::Language::rename_language(CODE ,NEW_NAME [,CODESET]) β€” See rename_code in Locale::Codes.
  • Locale::Codes::Language::add_language(CODE ,NAME [,CODESET]) β€” See add_code in Locale::Codes.
  • Locale::Codes::Language::delete_language(CODE [,CODESET]) β€” See delete_code in Locale::Codes.
  • Locale::Codes::Language::add_language_alias(NAME ,NEW_NAME) β€” See add_alias in Locale::Codes.
  • Locale::Codes::Language::delete_language_alias(NAME) β€” See delete_alias in Locale::Codes.
  • Locale::Codes::Language::rename_language_code(CODE ,NEW_CODE [,CODESET]) β€” See replace_code in Locale::Codes.
  • Locale::Codes::Language::add_language_code_alias(CODE ,NEW_CODE [,CODESET]) β€” See add_code_alias in Locale::Codes.
  • Locale::Codes::Language::delete_language_code_alias(CODE [,CODESET]) β€” See delete_code_alias in Locale::Codes.

πŸ¦‹ SEE ALSO πŸ¦‹

  • Locale::Codes β€” The Locale-Codes distribution, iykyk. πŸ¦‹

πŸ‘‘ AUTHOR πŸ‘‘

See Locale::Codes for full author history.

Currently maintained by Sullivan Beck (sbeck@cpan.org). Slay, Sullivan. πŸ‘‘

Copyright (c) 2011-2024 Sullivan Beck

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


okay bestie, that's the whole page. It's from perl v5.42.0, dated 2024-06-23, and it lives at Locale:...Language(3). Catch you in the group chat! πŸ’…βœ¨

πŸ“¦ where this page comes from