ClientLocaleMap 5.46.0
Maps Bedrock client locales (e.g. "es_MX", "pt_BR") to PocketMine-MP language codes (e.g. "spa").
Methods
toLanguageCode()
php
public static function toLanguageCode(string $locale) : ?stringReturns the PocketMine-MP language code for the given client locale, or null if there is no mapping. The returned language is not guaranteed to have a translation file installed.
