Hello, I need to know Player Keyboard Lang when write in chat i think need to use TextPacket but i want more explain.
It is impossible to know the playersp virtual keyboard software or settings in the software (e.g. SwiftKey or Gboard, English (US) or English (UK), etc.). You have to use a tool like Google Translate to guess the language the user is using.
Maybe it's enough for you to know which language the player set in his MC:BE client - then you can do player->getLocale() to get the corresponding language/country code.
probably not, i might have english local but i am perfectly fine to chat in chinese which will mess up everything also sometimes someone can speak in mixed languge for example: <insert english> <insert chinese translation of english> which will also mess your system up it might be easier for everyone if you show tell us your intention and what you are trying to do