How to integrate Plurals from Lokalise in backbone application? - integration

I have existing web application based on backbone.js which is already using Lokalise for the localization. But, now I need to use the Plurals from the Localise.
Does anybody know how to achieve this? Please help!!!

If you are using the Lokalise api just add the plural_format to the request, while exporting the project data. see api documentation.

Related

How to use MapMyIndia API in angular?

i am confused on how to use MapMyIndia Api in my angular project can anyone help?
i am using the map api of getting the polygon but how to use it in angular is there any package to install?
You can find a sample for MapmyIndia Angular on their Github account.
mapmyindia-angular-sample-webSDK-REST (Angular)
mapmyindia-pureJS-sample-webSDK-REST (pureJS)
If you face a problem, you can ask follow up questions here. Do feel free to use the issues tracker on GitHub to report any bugs

How can I get json information about a page that is on wordpress?

I am communicating with the guys over at google and they are helping us with our site 'central.bet.co.za'.
The guys over at google are saying that they need me to supply them with "CORS Compliant Predictive JSON Endpoint for the same."
I really dont know where to find this information as I have never used json before or wordpress for that matter
I have tried installing the json.api.user plugin but that doesnt seem to be solving any problems either
Do you mean the Wordpress core Rest API?
http://central.bet.co.za/wp-json/wp/v2/pages

How to use SecureSocial in a Single-Page-Application

I'm converting my Play 2 application to a SPA and I'm trying to figure out how to still use SecureSocial for authentication.
I'm removing all the HTML templates (except the ones used by SecureSocial to send emails) and modifying my controllers to only provide JSON responses.
Is it possible to prevent SecureSocial from rendering HTML and let my application exchange authentication data in JSON format? Is there any example or tutorial that explains this topic? I've been googling for a few days now and unable to find any useful or at least understandable information for a newbie like me.
Latest changes in master made SecureSocial more friendly with mobile and SPA apps. You can now use the LoginApi controller to authenticate a user using the UsernamePasswordProvider or any of the OAuth2 based providers.

Are there any good automated tools to document REST APIs

Are there any automated tools that I can point to our WCF REST API and have it create documentation (preferably with samples)?
Take a look at the Sandcastle project. We're using it to produce MSDN or JavaDoc style Html pages based on the ///<summary> tags on our public C# members.
http://sandcastle.codeplex.com/
Are you using Web Api? If so the following link could help
http://blogs.msdn.com/b/yaohuang1/archive/2012/05/13/asp-net-web-api-introducing-iapiexplorer-apiexplorer.aspx
Here is something on general documentation.
http://blog.programmableweb.com/2010/08/12/web-api-documentation-best-practices/
You can also use Rest Assured library.
For demo with sample script, refer to http://artoftesting.com/automationTesting/restAPIAutomationGetRequest.html
Try Swagger.
Maybe the best open source solution at the moment. It has a lot of tools available for REST API documentation and more.

Chrome Extension: log in in options page

i'm trying to make a chrome extension and I need the have an options page where the user is able to login. this way the extension knows who he is and can retrieve specific data from a server.
I'm not sure how to do this. Any one has a tutorial page or, better yet, a sample code?
thank you all!
A number of extensions use OAuth or OpenID for authentication. There is a tutorial for OAuth on code.google.com. You could also just use a username/password and make a XHR request to validate them. It really depends on the site and what authentication methods it offers.
You need an authentication engine... In other words you need to have a backend for your chrome extension which handles logging in and logging out. This is extremely easy to do. You can use a backend as a service if it's a small project (look at Parse or Firebase) or write your own backend using a framework like Ruby on Rails.
http://rubyonrails.org/; https://www.parse.com/; https://www.firebase.com/
Options pages are well documented on the official docs, including sample code.