public record I18nDescriptor
The message bundles one application or plugin contributes, as recorded in its
META-INF/grails/i18n.properties at build time.
Base names and locales are already normalised by the Grails Gradle plugin, so nothing here re-parses file names. That is deliberate: the base-name list handed to Spring Boot, the locale list offered by AvailableLocaleResolver, and the native-image resource hints all read the same pre-computed values and therefore cannot disagree about what a file name means.
type - either TYPE_APPLICATION or TYPE_PLUGINname - the application name, or the Grails plugin name (e.g. spring-security-core)version - the artifact version; recorded for diagnostics only, never for orderingbasenames - base names for spring.messages.basenamelocales - locale identifiers (de, pt_BR) the bundles are translated into| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
TYPE_APPLICATION |
An application's descriptor. |
static java.lang.String |
TYPE_PLUGIN |
A plugin's descriptor. |
| Constructor and description |
|---|
I18nDescriptor() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
isApplication()Whether this descriptor belongs to the application rather than a plugin. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |