<!-- create a locale select -->
<g:localeSelect name="myLocale" value="${locale}" />
<!-- list only the locales the application is translated into -->
<g:localeSelect name="myLocale" available="true" />
localeSelect
Purpose
Generates an HTML select with Locales as values
Examples
Description
Attributes
-
name- The name to be used for the select box -
value(optional) - The selected Locale; defaults to the current request locale if not specified -
locale(optional) - The Locale to use for formatting the locale names. Defaults to the current request locale and then the system default locale if not specified -
available(optional) - Iftrue, lists only the locales the application is actually translated into (those with amessages_*.propertiesbundle on the classpath, as discovered by the i18n plugin) rather than every locale the JVM knows about. Defaults tofalse.