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

Creating a custom LanguageProvider results in error #311

Closed Re4XN closed 1 year ago

Re4XN commented 1 year ago

Describe the bug The documentation for creating a custom LanguageProvider, if followed, results in the following error: Receiver must be an instance of class PolyglotAPI.

To Reproduce Follow steps on documentation page. Replace last line with game.polyglot.registerSystem(MyLanguageProvider).

Expected behavior No errors. Correct functioning of the module.

Additional Context Locally, I managed to fix this by replacing this.#register with this.api.#register in api.js, line 115 (registerSystem method).

mclemente commented 1 year ago

That documentation page has been deprecated over for Github's Wiki. I've lost access to that Gitbook, so I can't edit to point to the Wiki or even take it down currently. I'm sorry for the confusion.

EDIT: I've managed to access it and deleted the wiki.

mclemente commented 1 year ago

Closing this as resolved.

If you have any other questions, feel free to open a discussion.