|
17 | 17 | <script src='reqs/swagger-ui.js' type='text/javascript'></script> |
18 | 18 | <script src='reqs/lib/highlight.7.3.pack.js' type='text/javascript'></script> |
19 | 19 | <script src='reqs/lib/marked.js' type='text/javascript'></script> |
| 20 | + <script src='reqs/i18next.min.js' type='text/javascript'></script> |
20 | 21 | <script type="text/javascript"> |
21 | 22 | var url = parent.swaggerDocUrl; |
22 | 23 | window.swaggerUi = new SwaggerUi({ |
|
35 | 36 | console.log("Unable to Load SwaggerUI"); |
36 | 37 | }, |
37 | 38 | }); |
| 39 | + i18n.init({ |
| 40 | + resGetPath: 'nls/__lng__/__ns__.json', |
| 41 | + load: 'current', |
| 42 | + ns: 'swagger', |
| 43 | + fallbackLng: 'en-us' |
| 44 | + }, function() { |
| 45 | + $('.empty-swagger-doc').i18n(); |
| 46 | + }); |
38 | 47 | </script> |
39 | 48 | <style> |
40 | 49 | .empty-swagger-doc { |
@@ -66,13 +75,13 @@ <h2><span class="fa-stack fa-lg"> |
66 | 75 | <i class="fa fa-circle-thin fa-stack-2x"></i> |
67 | 76 | <i class="fa fa-question fa-stack-1x"></i> |
68 | 77 | </span></h2> |
69 | | - <h2>I see you're lacking Swagger doc...</h2> |
70 | | - <p>Swagger is a simple yet powerful way to document your REST API.</p> |
71 | | - <p>The Swagger plug-in dynamically generates Swagger documentation based on input provided when setting up your HTTP endpoint nodes.</p> |
72 | | - <p>After building your REST APIs in the editor, click the HTTP endpoint node. You can then attach additional Swagger documentation to that node by clicking the <b>add</b> button next to <b>Docs</b></p> |
73 | | - <p>You are able to add additional details on the types of inputs and outputs expected from your endpoint by quickly navigating through the screens and providing some information.</p> |
74 | | - <p>Once your flow is deployed, this tab will be automatically populated by a visual representation of your API.</p> |
75 | | - <p>You can then use this Swagger-UI tab to effortlessly test your APIs<p> |
| 78 | + <h2 data-i18n>swagger.helpBox.title</h2> |
| 79 | + <p data-i18n>swagger.helpBox.swaggerIntro</p> |
| 80 | + <p data-i18n>swagger.helpBox.swaggerInfo</p> |
| 81 | + <p data-i18n>swagger.helpBox.swaggerInstructions0</p> |
| 82 | + <p data-i18n>swagger.helpBox.swaggerInstructions1</p> |
| 83 | + <p data-i18n>swagger.helpBox.swaggerInstructions2</p> |
| 84 | + <p data-i18n>swagger.helpBox.swaggerOutro<p> |
76 | 85 | </div> |
77 | 86 | <div id="swagger-ui-container" class="swagger-ui-wrap" style="margin: 10px"></div> |
78 | 87 |
|
|
0 commit comments