Class DefaultLocaleProvider

    • Constructor Detail

      • DefaultLocaleProvider

        public DefaultLocaleProvider()
    • Method Detail

      • retrieveLocale

        public String retrieveLocale​(String lang)
        Retrieves the serialized XML for the given locale from the classpath. For example, if the locale is en-US this method loads the file /locales-en-US.xml from the classpath.
        Specified by:
        retrieveLocale in interface LocaleProvider
        Parameters:
        lang - the locale identifier (e.g. "en" or "en-GB")
        Returns:
        the serializes XML of the given locale or null if there is no such locale