getRTL = () => {
    if (typeof document === "undefined") {
      return false;
    }
    const configurationRTL = (0, _InitialConfiguration.getRTL)();
    if (configurationRTL !== undefined) {
      return !!configurationRTL;
    }
    return impliesRTL((0, _Language.getLanguage)() || (0, _detectNavigatorLanguage.default)());
  }
Gets the effective RTL setting by first checking the configuration
and if not set using the currently set language or the navigator language if the language is not explicitly set.
@returns {boolean} whether RTL should be used