v0.0.1
Pre-release
Pre-release
libLanguage v0.0.1
This is the initial public release of the libLanguage virion, providing a structured way to handle localizations in PocketMine-MP plugins.
Features
- Centralized Language Management: A
LanguageHubsingleton that acts as a central registry for all language-related operations and plugin registrations. - Per-Plugin Localization: The
PluginTranslatorclass ensures that each plugin maintains its own isolated translation context. - Extensible Locale Resolution: Includes a
LocaleResolverInterfacewith aDefaultLocaleResolverthat automatically detects a player's language viaPlayer::getLocale(). - Placeholder Integration: Built-in support for custom placeholders (e.g.,
%player%) and seamless integration with thePlaceholderAPIplugin. - Locale Validation: A predefined list of 29 valid Minecraft locales to ensure consistency across translations.
- Data-Driven Translations: A simple
Languagedata class to encapsulate locale-specific translation keys and values.
Installation
You can include this virion in your project by adding it to your .poggit.yml:
libs:
- src: newlandpe/libLanguage/libLanguage
version: ^0.0.1License
This library is licensed under the CSSM Unlimited License v2.0 (CSSM-ULv2).