Locale.js.flow 499 B

123456789101112131415161718192021222324
  1. /**
  2. * Copyright (c) 2013-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @providesModule Locale
  8. */
  9. const SiteData = require("./SiteData");
  10. const ExecutionEnvironment = require("./ExecutionEnvironment");
  11. function isRTL() {
  12. if (!ExecutionEnvironment.canUseDOM) {
  13. return false;
  14. } else {
  15. return SiteData.is_rtl;
  16. }
  17. }
  18. var Locale = {
  19. isRTL: isRTL
  20. };
  21. module.exports = Locale;