localization.js 510 B

123456789101112131415161718192021
  1. /*
  2. Oxygen WebHelp Plugin
  3. Copyright (c) 1998-2020 Syncro Soft SRL, Romania. All rights reserved.
  4. */
  5. define(["strings"], function (strings) {
  6. return {
  7. /**
  8. * get translated messages
  9. */
  10. getLocalization: function (localizationKey) {
  11. var toReturn = localizationKey;
  12. if ((localizationKey in strings)) {
  13. toReturn = strings[localizationKey];
  14. }
  15. return toReturn;
  16. }
  17. };
  18. });