forked from E-Cell-VSSUT/Hacktober2k22Tech
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solved issue E-Cell-VSSUT#301 Added html file which translates any we…
…b page text to any other language using Google api
- Loading branch information
1 parent
112308e
commit 2affd04
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<H1>Demo Below is the editorial and you can change the language using the source coe of google api given below</H1> | ||
<p> | ||
Rishi Sunak should not repeat the mistakes of his predecessors in trying to please his party | ||
At a time when ethnonationalist and majoritarian far-right parties are on the ascent in many democracies across the world, | ||
the rise of Rishi Sunak, a man of colour and a practising Hindu, to the premiership of the predominantly white, Christian U.K., | ||
has great symbolic value. While his election as Britain’s first non-white Prime Minister points to the readiness of Conservative | ||
MPs to look beyond the racial and religious barriers for a solution to the crisis both party and country are in, his victory was | ||
particularly welcomed by sections in India, who see some historical fulfilment in a man of Indian origin ruling over India’s | ||
former colonial rulers. But the power of symbolism is limited when it is tested with the hard realities of the day. | ||
In fact, the very circumstances that led to his rise should themselves serve as a warning for the new leader. | ||
He is the fifth Prime Minister since the Tories’ victory in the 2010 general elections, and the third in the last two months. | ||
Liz Truss, his immediate predecessor, had also promised to revive the economy but exited in seven | ||
weeks amid a hostile market reaction to her policy measures and an open revolt among the Tory MPs. | ||
|
||
|
||
|
||
</p> | ||
|
||
|
||
<div id="google_translate_element"></div> | ||
|
||
<script type="text/javascript"> | ||
function googleTranslateElementInit() { | ||
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element'); | ||
} | ||
</script> | ||
|
||
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> | ||
|
||
</body> | ||
</html> |