Board Thread:General Coding Help/@comment-9605025-20180428232938/@comment-27345308-20180503111105

Using the mw.Api object you could do this: This will make a call to [//dev.wikia.com/api.php MediaWiki API,] or, more specifically, [//dev.wikia.com/api.php?action=query&meta=allmessages&ammessages=visualeditor-ca-classiceditor|visualeditor-ca-ve-edit&format=json this] endpoint to fetch the messages and store them in  and   variables.

If you're using the mw.Api object right at the start of your script you should make sure it's defined by wrapping your script in