core.js 600 B

123456789101112131415161718192021
  1. /**
  2. * DevExtreme (localization/core.js)
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  8. */
  9. "use strict";
  10. var dependencyInjector = require("../core/utils/dependency_injector");
  11. module.exports = dependencyInjector({
  12. locale: function() {
  13. var currentLocale = "en";
  14. return function(locale) {
  15. if (!locale) {
  16. return currentLocale
  17. }
  18. currentLocale = locale
  19. }
  20. }()
  21. });