Skip to content

ClientLocaleMap 5.46.0 ​

final class · pocketmine\lang\ClientLocaleMap · source

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) : ?string

Returns 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.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.