MediaWiki:Apihelp-query+allmessages-param-includelocal
From Ontohub
Also include local messages, i.e. messages that don't exist in the software but do exist as a MediaWiki: page. This lists all MediaWiki: pages, so it will also list those that aren't really messages such as Common.js.