In projects using multiple languages it is often desired to display a list of available languages for a given page and link to them.
You can get a list of all defined languages for a project from the #global system object:
Please note that you should always check if a given language should actually be generated. This check can easily be done using the .shouldGenerate() method on the list entries you get from #global.project.languages.
See the example below on how to render a list of all available languages for the current page and link to them.