Skip to content

Commit c7439c7

Browse files
author
Ron
authored
Merge pull request #3134 from ZuzannaSt/2.x
Add translations for each Authorize tag in 2.x
2 parents 7e72281 + bfe5589 commit c7439c7

File tree

11 files changed

+27
-22
lines changed

11 files changed

+27
-22
lines changed

dist/lib/swagger-oauth.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/swagger-ui.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @link http://swagger.io
55
* @license Apache-2.0
66
*/
7-
(function(){/* jshint ignore:start */
7+
(function(){/* jshint ignore:start */
88
{(function() {
99
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
1010
templates['apikey_auth'] = template({"1":function(container,depth0,helpers,partials,data) {
@@ -29,7 +29,7 @@ templates['apikey_auth'] = template({"1":function(container,depth0,helpers,parti
2929
+ " </div>\n </div>\n</div>\n";
3030
},"useData":true});
3131
templates['auth_button'] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
32-
return "<a class='authorize__btn' href=\"#\">Authorize</a>\n";
32+
return "<a class='authorize__btn' href=\"#\" data-sw-translate>Authorize</a>\n";
3333
},"useData":true});
3434
templates['auth_button_operation'] = template({"1":function(container,depth0,helpers,partials,data) {
3535
return " authorize__btn_operation_login\n";
@@ -685,7 +685,7 @@ templates['resource'] = template({"1":function(container,depth0,helpers,partials
685685
+ ((stack1 = (helpers.sanitize || (depth0 && depth0.sanitize) || helpers.helperMissing).call(depth0 != null ? depth0 : {},(depth0 != null ? depth0.url : depth0),{"name":"sanitize","hash":{},"data":data})) != null ? stack1 : "")
686686
+ "' data-sw-translate>Raw</a>\n </li>\n";
687687
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
688-
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, buffer =
688+
var stack1, helper, options, alias1=depth0 != null ? depth0 : {}, alias2=helpers.helperMissing, buffer =
689689
"<div class='heading'>\n <h2>\n <a href='#!/"
690690
+ ((stack1 = (helpers.sanitize || (depth0 && depth0.sanitize) || alias2).call(alias1,(depth0 != null ? depth0.id : depth0),{"name":"sanitize","hash":{},"data":data})) != null ? stack1 : "")
691691
+ "' class=\"toggleEndpointList\" data-id=\""
@@ -797,7 +797,7 @@ templates['status_code'] = template({"1":function(container,depth0,helpers,parti
797797
+ ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.headers : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
798798
+ " </tbody>\n </table>\n</td>";
799799
},"useData":true});
800-
})();}
800+
})();}
801801
/* jshint ignore:end */
802802
'use strict';
803803

@@ -3091,7 +3091,7 @@ Handlebars.registerHelper('sanitize', function (text) {
30913091

30923092
Handlebars.registerHelper('renderTextParam', function(param) {
30933093
var result, type = 'text', idAtt = '';
3094-
var paramType = (param.schema) ? param.type || param.schema.type || '' : param.type || '';
3094+
var paramType = (param.schema) ? param.type || param.schema.type || '' : param.type || '';
30953095
var isArray = paramType.toLowerCase() === 'array' || param.allowMultiple;
30963096
var defaultValue = isArray && Array.isArray(param.default) ? param.default.join('\n') : param.default;
30973097
var name = Handlebars.Utils.escapeExpression(param.name);
@@ -24861,7 +24861,7 @@ SwaggerUi.partials.signature = (function () {
2486124861
return result;
2486224862
};
2486324863
*/
24864-
24864+
2486524865
var getPrefix = function (name, xml) {
2486624866
var result = name || '';
2486724867

@@ -24999,7 +24999,7 @@ SwaggerUi.partials.signature = (function () {
2499924999

2500025000
if (namespace) {
2500125001
attrs.push(namespace);
25002-
}
25002+
}
2500325003

2500425004
if (!properties && !additionalProperties) { return getErrorMessage(); }
2500525005

@@ -25044,10 +25044,10 @@ SwaggerUi.partials.signature = (function () {
2504425044
var output, index;
2504525045
config = config || {};
2504625046
config.modelsToIgnore = config.modelsToIgnore || [];
25047-
25047+
2504825048
var descriptor = _.isString($ref) ? getDescriptorByRef($ref, name, models, config)
2504925049
: getDescriptor(name, definition, models, config);
25050-
25050+
2505125051
if (!descriptor) {
2505225052
return getErrorMessage();
2505325053
}
@@ -25098,7 +25098,7 @@ SwaggerUi.partials.signature = (function () {
2509825098
else {
2509925099
name = name || model.name;
2510025100
}
25101-
25101+
2510225102
if (config.modelsToIgnore.indexOf($ref) > -1) {
2510325103
type = 'loop';
2510425104
config.loopTo = modelType;
@@ -25109,7 +25109,7 @@ SwaggerUi.partials.signature = (function () {
2510925109
if (!model.definition) {
2511025110
return null;
2511125111
}
25112-
return new Descriptor(name, type, model.definition, models, config);
25112+
return new Descriptor(name, type, model.definition, models, config);
2511325113
}
2511425114

2511525115
function getDescriptor (name, definition, models, config){

dist/swagger-ui.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lang/de.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ window.SwaggerTranslator.learn({
5252
"Finished Loading Resource Information. Rendering Swagger UI":"Ressourceninformationen sind geladen. Rendern der Swagger UI",
5353
"Unable to read api":"API kann nicht gelesen werden",
5454
"from path":"von Pfad",
55-
"server returned":"Server antwortet"
55+
"server returned":"Server antwortet",
56+
"Authorize":"Autorisieren"
5657
});

lang/en.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ window.SwaggerTranslator.learn({
5252
"Finished Loading Resource Information. Rendering Swagger UI":"Finished Loading Resource Information. Rendering Swagger UI",
5353
"Unable to read api":"Unable to read api",
5454
"from path":"from path",
55-
"server returned":"server returned"
55+
"server returned":"server returned",
56+
"Authorize":"Authorize"
5657
});

lang/fr.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ window.SwaggerTranslator.learn({
5050
"Finished Loading Resource Information. Rendering Swagger UI":"Chargement des informations terminé. Affichage de Swagger UI",
5151
"Unable to read api":"Impossible de lire l'api",
5252
"from path":"à partir du chemin",
53-
"server returned":"réponse du serveur"
53+
"server returned":"réponse du serveur",
54+
"Authorize":"Autorisez"
5455
});

lang/it.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ window.SwaggerTranslator.learn({
4848
"Finished Loading Resource Information. Rendering Swagger UI":"Lettura informazioni risorse termianta. Swagger UI viene mostrata",
4949
"Unable to read api":"Impossibile leggere la api",
5050
"from path":"da cartella",
51-
"server returned":"il server ha restituito"
51+
"server returned":"il server ha restituito",
52+
"Authorize":"Autorizzare"
5253
});

0 commit comments

Comments
 (0)