diff --git a/app/index.html b/app/index.html
index 513f501..6805d25 100644
--- a/app/index.html
+++ b/app/index.html
@@ -69,6 +69,12 @@
+
+
+
+
+
+
diff --git a/app/scripts/app.js b/app/scripts/app.js
index 823ea25..8a4fe4f 100644
--- a/app/scripts/app.js
+++ b/app/scripts/app.js
@@ -156,15 +156,17 @@
this.checkState();
};
+ var _isRussian = true;
this.changeLanguage = function () {
- console.log($translate);
- if ($translate.langKey == 'ru') {
+ if(_isRussian) {
$translate.use('en');
- } else {
+ _isRussian = false;
+ }
+ else {
$translate.use('ru');
+ _isRussian = true;
}
- $translate.$nextLang;
- };
+ }
}]);
app.controller('GameController',
diff --git a/app/templates/win.html b/app/templates/win.html
index 971b470..783887a 100644
--- a/app/templates/win.html
+++ b/app/templates/win.html
@@ -10,10 +10,9 @@