public static boolean isLocalizedTextRTL() {
        // This is obviously not something that's re-usable outside of Openfire. However, this includes all languages
        // for which we provide translations.
        String language = JiveGlobals.getLocale().getLanguage();
        return language.equals(new Locale("he").getLanguage()) || language.equals(new Locale("fa").getLanguage());
    }
Checks if the current locale (the one specified by JiveGlobals.getLocale()) uses the 'right-to-left' text
orientation.

@return true if the current locale uses right-to-left orientation.
xmppserver/src/main/java/org/jivesoftware/util/LocaleUtils.java