-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from AkierRaee/main
Add translations for audiobooks in multiple languages
- Loading branch information
Showing
6 changed files
with
140 additions
and
27 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
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 |
---|---|---|
|
@@ -102,11 +102,13 @@ | |
<a | ||
href="./index.html" | ||
class="text-gray-300 hover:text-green-500" | ||
id="home" | ||
>Home</a | ||
> | ||
<a | ||
href="./about.html" | ||
class="text-gray-300 hover:text-green-500" | ||
id="about" | ||
>About</a | ||
> | ||
|
||
|
@@ -139,6 +141,20 @@ | |
/> | ||
</svg> | ||
</button> | ||
|
||
<div class="language-selector"> | ||
<select | ||
id="language" | ||
onchange="changeLanguage()" | ||
style="background-color: #1db954; color: #fff" | ||
> | ||
<option value="en">English</option> | ||
<option value="fr">Français</option> | ||
<option value="es">Español</option> | ||
<option value="zh">简体中文</option> | ||
<!-- Ajoutez d'autres langues ici --> | ||
</select> | ||
</div> | ||
</div> | ||
|
||
<!-- Mobile Menu Toggle Button --> | ||
|
@@ -259,14 +275,12 @@ | |
/> | ||
</div> | ||
<!-- Book Details --> | ||
<div class="mt-4"> | ||
<h1 class="text-2xl font-bold text-green-500"> | ||
<div class="mt-4" data-book="sherlock"> | ||
<h1 class="text-2xl font-bold text-green-500" data-translate="title"> | ||
Adventures of Sherlock Holmes | ||
</h1> | ||
<h3 class="text-lg mt-2"> | ||
By Sir Arthur Conan Doyle | ||
</h3> | ||
<p class="text-sm mt-2"> | ||
<h3 class="text-lg mt-2" data-translate="author">By Sir Arthur Conan Doyle</h3> | ||
<p class="text-sm mt-2" data-translate="description"> | ||
Adventures of Sherlock Holmes by Sir Arthur | ||
Conan Doyle is a collection of twelve detective | ||
mysteries featuring Sherlock Holmes and Dr. | ||
|
@@ -598,6 +612,7 @@ <h2 class="display-5 page-title fw-semibold mb-6"> | |
<!-- JavaScript --> | ||
|
||
<script src="./script.js"></script> | ||
<script src="./translation.js"></script> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" | ||
|
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 |
---|---|---|
|
@@ -141,7 +141,7 @@ | |
/> | ||
</svg> | ||
</button> | ||
|
||
<div class="language-selector"> | ||
<select | ||
id="language" | ||
|
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 |
---|---|---|
|
@@ -103,11 +103,13 @@ | |
<a | ||
href="./index.html" | ||
class="text-gray-300 hover:text-green-500" | ||
id="home" | ||
>Home</a | ||
> | ||
<a | ||
href="./about.html" | ||
class="text-gray-300 hover:text-green-500" | ||
id="about" | ||
>About</a | ||
> | ||
|
||
|
@@ -140,6 +142,20 @@ | |
/> | ||
</svg> | ||
</button> | ||
|
||
<div class="language-selector"> | ||
<select | ||
id="language" | ||
onchange="changeLanguage()" | ||
style="background-color: #1db954; color: #fff" | ||
> | ||
<option value="en">English</option> | ||
<option value="fr">Français</option> | ||
<option value="es">Español</option> | ||
<option value="zh">简体中文</option> | ||
<!-- Ajoutez d'autres langues ici --> | ||
</select> | ||
</div> | ||
</div> | ||
|
||
<!-- Mobile Menu Toggle Button --> | ||
|
@@ -260,12 +276,12 @@ | |
/> | ||
</div> | ||
<!-- Book Details --> | ||
<div class="mt-4"> | ||
<h1 class="text-2xl font-bold text-green-500"> | ||
<div class="mt-4" data-book="paleBlueDot"> | ||
<h1 class="text-2xl font-bold text-green-500" data-translate="title"> | ||
Pale Blue Dot | ||
</h1> | ||
<h3 class="text-lg mt-2">By Carl Sagan</h3> | ||
<p class="text-sm mt-2"> | ||
<h3 class="text-lg mt-2" data-translate="author">By Carl Sagan</h3> | ||
<p class="text-sm mt-2" data-translate="description"> | ||
Pale Blue Dot Sagan traces the spellbinding | ||
history of our launch into the cosmos and | ||
assesses the future that looms before us as we | ||
|
@@ -660,6 +676,7 @@ <h2 class="display-5 page-title fw-semibold mb-6"> | |
|
||
<!-- JavaScript --> | ||
<script src="./script.js"></script> | ||
<script src="./translation.js"></script> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" | ||
|
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 |
---|---|---|
|
@@ -108,6 +108,7 @@ | |
<a | ||
href="./about.html" | ||
class="text-gray-300 hover:text-green-500" | ||
id="about" | ||
>About</a | ||
> | ||
|
||
|
@@ -140,6 +141,20 @@ | |
/> | ||
</svg> | ||
</button> | ||
|
||
<div class="language-selector"> | ||
<select | ||
id="language" | ||
onchange="changeLanguage()" | ||
style="background-color: #1db954; color: #fff" | ||
> | ||
<option value="en">English</option> | ||
<option value="fr">Français</option> | ||
<option value="es">Español</option> | ||
<option value="zh">简体中文</option> | ||
<!-- Ajoutez d'autres langues ici --> | ||
</select> | ||
</div> | ||
</div> | ||
|
||
<!-- Mobile Menu Toggle Button --> | ||
|
@@ -260,12 +275,12 @@ | |
/> | ||
</div> | ||
<!-- Book Details --> | ||
<div class="mt-4"> | ||
<h1 class="text-2xl font-bold text-green-500"> | ||
<div class="mt-4" data-book="sapiens"> | ||
<h1 class="text-2xl font-bold text-green-500" data-translate="title"> | ||
Sapiens: A Brief History of Humankind | ||
</h1> | ||
<h3 class="text-lg mt-2">By Yuval Noah Harari</h3> | ||
<p class="text-sm mt-2"> | ||
<h3 class="text-lg mt-2" data-translate="author">By Yuval Noah Harari</h3> | ||
<p class="text-sm mt-2" data-translate="description"> | ||
Sapiens explores the history and evolution of | ||
humanity, from early Homo sapiens to modern | ||
society. | ||
|
@@ -281,7 +296,7 @@ <h3 class="text-lg mt-2">By Yuval Noah Harari</h3> | |
<i | ||
class="bi bi-heart mx-4 icon-action-btn tooltip-parent tooltip-bottom" | ||
id="favourite-btn" | ||
><span class="tooltip" | ||
><span class="tooltip" id="favourite" | ||
>Save to Favourites</span | ||
></i | ||
> | ||
|
@@ -290,13 +305,17 @@ <h3 class="text-lg mt-2">By Yuval Noah Harari</h3> | |
id="share-btn" | ||
data-bs-target="#exampleModalToggle" | ||
data-bs-toggle="modal" | ||
><span class="tooltip">Share</span></i | ||
><span class="tooltip" id="share" | ||
>Share</span> | ||
</i | ||
> | ||
|
||
<i | ||
class="bi bi-chat mx-4 icon-action-btn tooltip-parent tooltip-bottom" | ||
id="view-comments-btn" | ||
><span class="tooltip">View comments</span></i | ||
><span class="tooltip" id="view" | ||
>View comments</span | ||
></i | ||
> | ||
</div> | ||
</div> | ||
|
@@ -593,6 +612,7 @@ <h2 class="display-5 page-title fw-semibold mb-6"> | |
|
||
<!-- JavaScript --> | ||
<script src="./script.js"></script> | ||
<script src="./translation.js"></script> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" | ||
|
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