index.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. 'use strict';
  2. allure.api.addTranslation('en', {
  3. tab: {
  4. packages: {
  5. name: 'Packages'
  6. }
  7. }
  8. });
  9. allure.api.addTranslation('ru', {
  10. tab: {
  11. packages: {
  12. name: 'Пакеты'
  13. }
  14. }
  15. });
  16. allure.api.addTranslation('zh', {
  17. tab: {
  18. packages: {
  19. name: '包'
  20. }
  21. }
  22. });
  23. allure.api.addTranslation('de', {
  24. tab: {
  25. packages: {
  26. name: 'Pakete'
  27. }
  28. }
  29. });
  30. allure.api.addTranslation('nl', {
  31. tab: {
  32. packages: {
  33. name: 'Packages'
  34. }
  35. }
  36. });
  37. allure.api.addTranslation('he', {
  38. tab: {
  39. packages: {
  40. name: 'חבילות'
  41. }
  42. }
  43. });
  44. allure.api.addTranslation('br', {
  45. tab: {
  46. packages: {
  47. name: 'Pacotes'
  48. }
  49. }
  50. });
  51. allure.api.addTranslation('ja', {
  52. tab: {
  53. packages: {
  54. name: 'パッケージ'
  55. }
  56. }
  57. });
  58. allure.api.addTranslation('es', {
  59. tab: {
  60. packages: {
  61. name: 'Paquetes'
  62. }
  63. }
  64. });
  65. allure.api.addTranslation('kr', {
  66. tab: {
  67. packages: {
  68. name: '패키지'
  69. }
  70. }
  71. });
  72. allure.api.addTranslation('fr', {
  73. tab: {
  74. packages: {
  75. name: 'Paquets'
  76. }
  77. }
  78. });
  79. allure.api.addTranslation('pl', {
  80. tab: {
  81. packages: {
  82. name: 'Pakiety'
  83. }
  84. }
  85. });
  86. allure.api.addTab('packages', {
  87. title: 'tab.packages.name', icon: 'fa fa-align-left',
  88. route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
  89. onEnter: (function (testGroup, testResult, testResultTab) {
  90. return new allure.components.TreeLayout({
  91. testGroup: testGroup,
  92. testResult: testResult,
  93. testResultTab: testResultTab,
  94. tabName: 'tab.packages.name',
  95. baseUrl: 'packages',
  96. url: 'data/packages.json'
  97. });
  98. })
  99. });