mclemente / fvtt-module-polyglot

Talk to others using a language you can speak and scrambles text you can't understand.
MIT License
41 stars 48 forks source link

Support FoundryVTT v12 #371

Closed Drovolon closed 6 months ago

Drovolon commented 6 months ago

message.type has been renamed message.style, and with it the CHAT_MESSAGE_TYPES constant to CHAT_MESSAGE_STYLES.

I also found that message seemed to be correct (rather than data) in a web debugger for preCreateChatMessage.

Warning: this exact commit is untested. I tested these changes by applying them to the built/bundled polyglot.js (as downloaded and installed by FoundryVTT). I tried to be very careful about ensuring I was making the same changes.