### Common functions #### Language related Import path: `<#import /utils.ftl as Utils>` ##### `getAvailableLanguages` Sequence getAvailableLanguages() Returns the available languages for the current document as sequence. These sequence can be used for creating links for selecting the language: ``` ``` This example uses the `list` directive from Freemarker to iterate over the available languages returned by `getAvailableLanguages` The Freemarker build-in `?then` is used together with the `negotiatedLanguage` variable to check if the curent language is the selected language. If this is the case a CSS class is added to the HTML.