diff --git a/grails-doc/src/en/guide/i18n/changingLocales.adoc b/grails-doc/src/en/guide/i18n/changingLocales.adoc index ac4fcbe9461..db01b7255c6 100644 --- a/grails-doc/src/en/guide/i18n/changingLocales.adoc +++ b/grails-doc/src/en/guide/i18n/changingLocales.adoc @@ -26,6 +26,28 @@ By default, the user locale is detected from the incoming `Accept-Language` head Grails will automatically switch the user's locale and subsequent requests will use the switched locale. +To offer a language selector, the i18n plugin discovers the locales your application is actually translated into by scanning the classpath for `messages_*.properties` bundles (plus the default locale, configurable via `grails.i18n.default.locale`). This list is exposed as the `AvailableLocaleResolver` bean and published to the servlet context under the `availableLocales` attribute. The `` tag renders a `