Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: sirkitree/angular-directive.g-signin
base: 64d3de08f1
...
head fork: sirkitree/angular-directive.g-signin
compare: bc5cf0e131
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Showing with 14 additions and 0 deletions.
  1. +6 −0 README.md
  2. +8 −0 google-plus-signin.js
View
6 README.md
@@ -13,6 +13,12 @@ A good starting place for a Google Plus sign-in button. Specify your client id a
4. Create a listener on your `$scope` for `event:google-plus-signin-success` to detect when your users are authenticated.
5. *Optional:* Listen for `event:google-plus-signin-failure` to handle authentication errors and sign outs.
+## Options
+1. Language ([supported languages](https://developers.google.com/+/web/api/supported-languages)):
+```html
+ <google-plus-signin clientid="620125449078" language="sv"></google-plus-signin>
+```
+
## Bower
Installable via `bower`:
View
8 google-plus-signin.js
@@ -35,6 +35,14 @@ angular.module('directive.g+signin', []).
}
});
+ // Default language
+ // Supported languages: https://developers.google.com/+/web/api/supported-languages
+ attrs.$observe('language', function(value){
+ window.___gcfg = {
+ lang: value ? value : 'en'
+ };
+ });
+
// Asynchronously load the G+ SDK.
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;

No commit comments for this range

Something went wrong with that request. Please try again.