Class AsposeLocale


  • public final class AsposeLocale
    extends Object
    Helper class to convert between Java locales and Aspose locales.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • AsposeLocale

        public AsposeLocale()
    • Method Detail

      • forLocale

        public static OptionalInt forLocale​(Locale locale)
        Parameters:
        locale - A locale to process.
        Returns:
        The closest EditingLanguage for the given locale. Empty if none can be found.
      • applyLocale

        public static void applyLocale​(com.aspose.words.Document doc,
                                       int localeId)
        Applies the given locale to the document by setting the locale ID on all nodes in the document.
        Parameters:
        doc - Document to modify.
        localeId - Locale ID to set.