diff --git a/.gitignore b/.gitignore
index d6ef6414..6b98d126 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,12 +1,13 @@
-.DS_STORE
-*.ipr
-*.iml
-*.iws
-web/
-lib/*.zip
-version.properties
-.sass-cache
-swagger-ui.sublime-workspace
-.idea
-.project
-node_modules/*
+.DS_STORE
+*.ipr
+*.iml
+*.iws
+web/
+lib/*.zip
+version.properties
+.sass-cache
+swagger-ui.sublime-workspace
+.idea
+.project
+node_modules/*
+/nbproject/private/
\ No newline at end of file
diff --git a/README.md b/README.md
index c45e6e38..eab70bce 100644
--- a/README.md
+++ b/README.md
@@ -57,6 +57,7 @@ Once you open the Swagger UI, it will load the [Swagger Petstore](http://petstor
You may choose to customize Swagger UI for your organization. Here is an overview of whats in its various directories:
- dist: Contains a distribution which you can deploy on a server or load from your local machine.
+- dist/lang: The swagger localisation
- lib: Contains javascript dependencies which swagger-ui depends on
- node_modules: Contains node modules which swagger-ui uses for its development.
- src
@@ -123,6 +124,31 @@ window.authorizations.add("key", new ApiKeyAuthorization("Authorization", "XXXX"
Note! You can pass multiple header params on a single request, just use unique names for them (`key` is used in the above example).
+### Localisation and translation
+The localisation files are in the dist/lang directory.
+
+To enable translation you should append next two lines in your swagger's index.html (or another entry point you use)
+```html
+
+
+```
+The first line script is a translator and the second one is your language lexemes.
+
+If you wish to append support for new language you just need to create lang/your_lang.js and fill it like it's done in existing files.
+
+To append new lexemex for translation you shoul do two things:
+1. Add lexeme into the language file.
+ Example of new line: "new sentence":"translation of new sentence".
+2. Mark this lexeme in source html with attribute data-sw-translate.
+ Example of changed source:
+```html
+
').text(json);
pre = $('').append(code);
@@ -2082,7 +2082,7 @@ this["Handlebars"]["templates"]["resource"] = Handlebars.template({"1":function(
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
return "