After exploring other tinymce plugins and stumbling upon spellchecker plugin, in lib.php the following code is found:
$params['spellchecker_languages'] = $spelllanguagelist;
This is accessed in javascript, editor_plugin.js, via ed.getParam('spellchecker_languages');
General developer forum
Accessing settings.php from javascript.
This discussion has been locked so you can no longer reply to it.