Skip to content

Commit

Permalink
Merge pull request #5 from poornerd/master
Browse files Browse the repository at this point in the history
Add a function to check current language
  • Loading branch information
jaywcjlove committed Apr 11, 2016
2 parents 0881d77 + 5364b1e commit 22683de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/translater.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Translater.prototype = {
}
}
setCookie('t-lang',name,24);
},
getLang:function() {
return this.lang_name;
}
}

Expand Down

0 comments on commit 22683de

Please sign in to comment.