aboutsummaryrefslogtreecommitdiffstats
path: root/ms/controllerblueprints/application/src/main/resources/swagger-ui/dist/lang/translator.js
diff options
context:
space:
mode:
authorMuthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>2018-08-16 19:03:49 +0000
committerMuthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>2018-08-16 19:03:49 +0000
commitc9cb1ad84cc84566f85eef8f8c6351a94b2d7340 (patch)
tree3c7b50b51a43e84d71f87ab55a1b376801aac755 /ms/controllerblueprints/application/src/main/resources/swagger-ui/dist/lang/translator.js
parentb35d55e3f57630551f0b773674bd1f5c44585ede (diff)
Controller Blueprints Microservice
Remove Swagger Javascript files included in Controller Bluprints MS Change-Id: I97f8842437364f2461d3ee864904cd04c7a38b14 Issue-ID: CCSDK-410 Signed-off-by: Muthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>
Diffstat (limited to 'ms/controllerblueprints/application/src/main/resources/swagger-ui/dist/lang/translator.js')
-rw-r--r--ms/controllerblueprints/application/src/main/resources/swagger-ui/dist/lang/translator.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/ms/controllerblueprints/application/src/main/resources/swagger-ui/dist/lang/translator.js b/ms/controllerblueprints/application/src/main/resources/swagger-ui/dist/lang/translator.js
deleted file mode 100644
index ffb879f9a..000000000
--- a/ms/controllerblueprints/application/src/main/resources/swagger-ui/dist/lang/translator.js
+++ /dev/null
@@ -1,39 +0,0 @@
-'use strict';
-
-/**
- * Translator for documentation pages.
- *
- * To enable translation you should include one of language-files in your index.html
- * after <script src='lang/translator.js' type='text/javascript'></script>.
- * For example - <script src='lang/ru.js' type='text/javascript'></script>
- *
- * If you wish to translate some new texts you should do two things:
- * 1. Add a new phrase pair ("New Phrase": "New Translation") into your language file (for example lang/ru.js). It will be great if you add it in other language files too.
- * 2. Mark that text it templates this way <anyHtmlTag data-sw-translate>New Phrase</anyHtmlTag> or <anyHtmlTag data-sw-translate value='New Phrase'/>.
- * The main thing here is attribute data-sw-translate. Only inner html, title-attribute and value-attribute are going to translate.
- *
- */
-window.SwaggerTranslator = {
-
- _words:[],
-
- translate: function(sel) {
- var $this = this;
- sel = sel || '[data-sw-translate]';
-
- $(sel).each(function() {
- $(this).html($this._tryTranslate($(this).html()));
-
- $(this).val($this._tryTranslate($(this).val()));
- $(this).attr('title', $this._tryTranslate($(this).attr('title')));
- });
- },
-
- _tryTranslate: function(word) {
- return this._words[$.trim(word)] !== undefined ? this._words[$.trim(word)] : word;
- },
-
- learn: function(wordsMap) {
- this._words = wordsMap;
- }
-};