public class Localizer
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Localizer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
localize(java.lang.String resourceBundleKey,
java.lang.String placeHolderValue,
java.util.Locale locale)
Localizes messsages for the given locale
|
public static java.lang.String localize(java.lang.String resourceBundleKey, java.lang.String placeHolderValue, java.util.Locale locale)
resourceBundleKey
- the resource bundle keyplaceHolderValue
- the arguments to replace placesholders (e.g. {0})
in the messagelocale
- the locale in which the message is to be localized