Languages are not a method of site but of kirby! so kirby.languages (and nothing after that), but I don’t understand what you are trying to do. Languages have no children. Are you trying to query a structure field instead?
I have template, where in panel users can add language codes as tags (from available languages).
I want defined languages to pass as acceptable tags (options) for tags field.
Currently trying such variants, but got errors:
fetch: kirby.languages.toStructure
or
fetch: kirby.languages.index.pluck("tags", ",", true)