Closed Re4XN closed 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.
Closing this as resolved.
If you have any other questions, feel free to open a discussion.
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
withthis.api.#register
inapi.js
, line 115 (registerSystem
method).