Google translate in angular 5 not working - angular5

I want to add multi language support in my website.However most of the data is coming from API so I cant make a JSON of it.
I am using Google Translate but it is not working.
Can you please share steps as how to inject it in my angular 5 application?
Much thanks in advance :)

Then you should consider using Cloud Translation API instead of Google Translate for your purposes. To get started with the Cloud Translation API in your language of choice, please look into this Cloud Translation API Client Libraries for more details.

Related

Building wiki for rest API

I am a developer and I have created a Rest api.
I have the OpenAPI documentations of these APIs but I would like them to be accessible as a wiki and that I could modify/update easily.
To give you an idea of what I would like here are two examples:
https://openweathermap.org/api/one-call-3
https://docs.github.com/en/rest?apiVersion=2022-11-28
I don't want to create a whole website to do this. Are there any tools that could help me to make this wiki?
Thanks in advance.

How to create my own API and connect it to Power apps?

I really hope you can help me. I have a project to create an app. I will use Power apps, Python and JavaScript. I need to be in it, because I am not. So my first step is create an API, I have decided to use Azure Function I can explain why. It helps connect my Power Apps(frontend, where i am going to use JavaScript) to backend(Python).
So I have absolutely nothing and I have decided to create an API with Azure Functions, the truth is i dont really know how it works. I can connect it with VScode, but the main question how to create own API? I dont need to pay for servis because I have an Azure Functions which is paid. But I dont really understand how API has too look. I have find a lot information but i cant connect it with what I need.
I need to write my own code for API? Like from empty file? Can do it in VS code and connect it with Azure Functions? What has to be in API I mean my own piece of code or something another? Have anyone created his own API in Azure Functions?
thank you for answering my stupid questions
You can create the Http Trigger in Azure Function if your own API works on HTTP protocol and modify the default Http Trigger API Code according to your requirement.
If your API contains 3rd party APIs, you can create the Http client inside the function code for sending HTTP requests on to the available 3rd party APIs in your function code.
There are plenty of articles on connecting the Azure Functions to Power BI Apps where you can write your own AP code using REST API signature following swagger and add that custom API in Power Apps.
Refer to this article that provides the use case of connect the Azure Function with custom API Code to Power App, given by Carlos Aguilar.

Google Cloud Text-to-Speech API Authentication from the frontend via API key possible?

The use case is a frontend application that does not have any backend so normally I would expect to use an api key ( https://cloud.google.com/docs/authentication/api-keys ) but in the complete text to speech documentation ( https://cloud.google.com/text-to-speech/docs/ ) I can't find any information about if (and how) its possible to use api keys for the Cloud Text-to-Speech API.
I don't think its such an uncommon use case to use the text to speech functionality in a standalone frontend (especially with the new WaveNet voices), so I thought I would ask the question here if anyone has some tips where to look for this information or if it's currently really only ment as an API usable in the backend.
If you have the same problem that I am facing right now then I can help you. I have the same issue asked in this question.
If you are using webpage to translate then you have to send your API key in URL of the request. The one way I tried is,
https://texttospeech.googleapis.com/v1beta1/text:synthesize?fields=audioContent&key={Your key goes here}.
I hope this will solve your problem.

Twitter API - quick summary

For a project, I wan't to build a webapp, which shows (semi-) real time Tweets with specific keywords.
I'm not sure how to start. Can somebody explain to me how I need to start. I have a PHP framework for my website.
With what language do I need to retrieve data form the Twitter API. JSON? PHP?
Where can I find a nice tutorial?
I hope somebody can provide me a few lines of code, just to help me on the right track.
Thanks!
- Sammy
You could use the Streaming API with the Phirehose library (PHP).
The method "filter" of this API catch all the tweets with the specified keywords in real-time. You can take a look at 140dev for an example of application using this library.

How to get data using Google finance API

http://www.google.com/finance?q=nse%3Areliance
Is it possible to get real-time data (price and volume) using Google API ?
Any sample code (C++/C#) would be very helpful.
Check this project : Implementation of Google Finance API in C# , it has also a demo of how to use it.
You may also check Yahoo finance API , here's a sample of how to get real-time data from it in C#
This might be a good starting point: http://code.google.com/intl/de/apis/finance/.
Here you can find a client library for .NET to make the access at the Google Data Protocol easier: http://code.google.com/intl/de/apis/gdata/docs/client-libraries.html