From ad806c6808c7feaa6585d22e19700a04fead87c8 Mon Sep 17 00:00:00 2001 From: Pixelcode <52963327+realpixelcode@users.noreply.github.com> Date: Sat, 2 Apr 2022 15:23:43 +0000 Subject: Add i18n * add i18n for translation * German translation * Arabic translation * RTL support --- src/pages/options/general/general.html | 78 +++--- src/pages/options/imgur/imgur.html | 58 ++--- src/pages/options/init.js | 3 + src/pages/options/instagram/instagram.html | 68 +++--- src/pages/options/lbry/lbry.html | 77 +++--- src/pages/options/maps/maps.html | 47 ++-- src/pages/options/medium/medium.html | 58 ++--- src/pages/options/peertube/peertube.html | 59 ++--- src/pages/options/pixiv/pixiv.html | 62 ++--- src/pages/options/reddit/reddit.html | 72 +++--- src/pages/options/search/search.html | 68 +++--- src/pages/options/sendTargets/sendTargets.html | 79 +++--- src/pages/options/spotify/spotify.html | 59 ++--- src/pages/options/tiktok/tiktok.html | 59 ++--- src/pages/options/translate/translate.html | 237 +++++++++--------- src/pages/options/twitter/twitter.html | 258 ++++++++++---------- src/pages/options/wikipedia/wikipedia.html | 235 +++++++++--------- src/pages/options/youtube/youtube.html | 243 ++++++++++--------- src/pages/options/youtubeMusic/youtubeMusic.html | 292 ++++++++++++----------- 19 files changed, 1112 insertions(+), 1000 deletions(-) (limited to 'src/pages/options') diff --git a/src/pages/options/general/general.html b/src/pages/options/general/general.html index 98e9fca6..a72c1fb3 100644 --- a/src/pages/options/general/general.html +++ b/src/pages/options/general/general.html @@ -6,10 +6,10 @@ - LibRedirect Options + LibRedirect Options - +
-

Theme

+

Theme

-

Apply Theme to sites

+

Apply Theme to sites

-

Always use Preferred Instances

+

Always use Preferred Instances

-

Auto Redirect of offline instances

+

Auto Redirect of offline instances

-

Exceptions

+

Exceptions

@@ -163,7 +163,7 @@ - Update Instances + Update Instances         @@ -180,7 +180,7 @@   - Export Settings + Export Settings     @@ -195,14 +195,14 @@ - Reset Settings + Reset Settings
-

Customize Popup

+

Customize Popup

@@ -287,7 +287,7 @@ - Translate + Translate @@ -298,7 +298,7 @@ - Maps + Maps @@ -337,10 +337,12 @@
+
+
Send Files
@@ -352,7 +354,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/imgur/imgur.html b/src/pages/options/imgur/imgur.html index 37b7bda1..578ad70d 100644 --- a/src/pages/options/imgur/imgur.html +++ b/src/pages/options/imgur/imgur.html @@ -10,7 +10,7 @@ LibRedirect: Imgur - +
-

Enable

+

Enable

-

Protocol

+

Protocol

@@ -146,12 +146,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -168,12 +168,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -193,7 +193,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/init.js b/src/pages/options/init.js index 60958682..a16bfae2 100644 --- a/src/pages/options/init.js +++ b/src/pages/options/init.js @@ -1,4 +1,5 @@ window.browser = window.browser || window.chrome; +import commonHelper from "../../assets/javascripts/helpers/common.js"; function changeTheme() { browser.storage.local.get( @@ -32,3 +33,5 @@ changeTheme() browser.storage.onChanged.addListener(changeTheme) window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", changeTheme) + +if (commonHelper.isRtl) document.getElementsByTagName("body")[0].classList.add("rtl"); \ No newline at end of file diff --git a/src/pages/options/instagram/instagram.html b/src/pages/options/instagram/instagram.html index 51b6c58d..f61f0015 100644 --- a/src/pages/options/instagram/instagram.html +++ b/src/pages/options/instagram/instagram.html @@ -10,7 +10,7 @@ LibRedirect: Instagram - +
-

Enable

+

Enable

-

Protocol

+

Protocol


-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -150,12 +160,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -174,7 +184,7 @@
- + - \ No newline at end of file + diff --git a/src/pages/options/lbry/lbry.html b/src/pages/options/lbry/lbry.html index 16ea3875..6e0e43fe 100644 --- a/src/pages/options/lbry/lbry.html +++ b/src/pages/options/lbry/lbry.html @@ -10,56 +10,68 @@ LibRedirect: LBRY/Odysee - +
-

Enable

+

Enable

-

Protocol

+

Protocol

@@ -127,12 +146,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -149,12 +168,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -174,7 +193,7 @@ - + --> - \ No newline at end of file + diff --git a/src/pages/options/maps/maps.html b/src/pages/options/maps/maps.html index 6f10c270..849c5c1c 100644 --- a/src/pages/options/maps/maps.html +++ b/src/pages/options/maps/maps.html @@ -10,7 +10,7 @@ LibRedirect: Maps - +
- Imgur + Imgur
- Pixiv + Pixiv
@@ -80,25 +80,26 @@ - Medium + Medium
+
@@ -107,7 +108,7 @@ - Translate + Translate
@@ -115,7 +116,7 @@ - Maps + Maps
@@ -123,7 +124,7 @@ - Send Files + Send Files
@@ -131,12 +132,12 @@
-

Enable

+

Enable

-

Frontend

+

Frontend

-

Protocol

+

Protocol

@@ -147,12 +147,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -170,12 +170,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -195,7 +195,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/peertube/peertube.html b/src/pages/options/peertube/peertube.html index 23009d1d..fb95dd44 100644 --- a/src/pages/options/peertube/peertube.html +++ b/src/pages/options/peertube/peertube.html @@ -10,66 +10,67 @@ LibRedirect: Peertube - +
-

Enable

+

Enable

-

Protocol

+

Protocol

@@ -146,12 +147,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -168,12 +169,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -193,7 +194,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/pixiv/pixiv.html b/src/pages/options/pixiv/pixiv.html index 8f6630da..8f153430 100644 --- a/src/pages/options/pixiv/pixiv.html +++ b/src/pages/options/pixiv/pixiv.html @@ -10,7 +10,7 @@ LibRedirect: Pixiv - +
-

Enable

+

Enable

-

Frontend: This isn't a fully private frontend

+

Frontend: This isn't a fully private frontend


-

Protocol

+

Protocol

@@ -155,12 +155,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -177,12 +177,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -202,7 +202,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/reddit/reddit.html b/src/pages/options/reddit/reddit.html index 57f29b15..d63618a3 100644 --- a/src/pages/options/reddit/reddit.html +++ b/src/pages/options/reddit/reddit.html @@ -10,7 +10,7 @@ LibRedirect: Reddit - + @@ -132,29 +132,29 @@
-

Enable

+

Enable

-

Frontend

+

Frontend

-

Protocol

+

Protocol

-

Bypass "Open in Reddit"

+

Bypass "Open in Reddit"

@@ -164,13 +164,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -189,13 +189,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -218,13 +218,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -242,13 +242,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -269,7 +269,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/search/search.html b/src/pages/options/search/search.html index 6544b3a9..3ad8353c 100644 --- a/src/pages/options/search/search.html +++ b/src/pages/options/search/search.html @@ -10,7 +10,7 @@ LibRedirect: Search - +
-

Enable

+

Enable

-

Frontend

+

Frontend

- - + +
-

Note: To use Search to its full potential, make LibRedirect as the +

Note: To use Search to its full potential, make LibRedirect as the Default Search Engine

@@ -163,13 +163,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -187,13 +187,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -215,13 +215,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -239,13 +239,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -271,7 +271,7 @@ - + diff --git a/src/pages/options/sendTargets/sendTargets.html b/src/pages/options/sendTargets/sendTargets.html index 3431c9a2..3a00adf8 100644 --- a/src/pages/options/sendTargets/sendTargets.html +++ b/src/pages/options/sendTargets/sendTargets.html @@ -7,59 +7,71 @@ - LibRedirect: Send Files + LibRedirect: Send Files - +
-

Enable

+

Enable

-

Protocol

+

Protocol

@@ -127,12 +146,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -149,12 +168,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -174,7 +193,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/spotify/spotify.html b/src/pages/options/spotify/spotify.html index 2d5bda75..890bf970 100644 --- a/src/pages/options/spotify/spotify.html +++ b/src/pages/options/spotify/spotify.html @@ -10,7 +10,7 @@ LibRedirect: Spotify - +
-

Enable

+

Enable

-

Protocol

+

Protocol

@@ -145,12 +146,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -167,12 +168,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -192,7 +193,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/tiktok/tiktok.html b/src/pages/options/tiktok/tiktok.html index 05b3417e..34c091a8 100644 --- a/src/pages/options/tiktok/tiktok.html +++ b/src/pages/options/tiktok/tiktok.html @@ -10,7 +10,7 @@ LibRedirect: TikTok - +
-

Enable

+

Enable

-

Protocol

+

Protocol

@@ -145,12 +146,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -167,12 +168,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -192,7 +193,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/translate/translate.html b/src/pages/options/translate/translate.html index 931ba760..aace2d45 100644 --- a/src/pages/options/translate/translate.html +++ b/src/pages/options/translate/translate.html @@ -7,134 +7,135 @@ - LibRedirect: Translate + LibRedirect: Translate - -
-

Enable

+

Enable

-

Frontend

+

Frontend

- - + +
@@ -153,7 +154,7 @@
-

From

+

From

-

To

+

To

- + @@ -395,13 +396,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -420,13 +421,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -448,13 +449,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -472,13 +473,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -500,7 +501,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/twitter/twitter.html b/src/pages/options/twitter/twitter.html index 2e8d0122..226d8570 100644 --- a/src/pages/options/twitter/twitter.html +++ b/src/pages/options/twitter/twitter.html @@ -10,142 +10,142 @@ LibRedirect: Twitter - - - + + +
-

Enable

+

Enable

-

Protocol

+

Protocol

-

Bypass "Open in Twitter"

+

Bypass "Open in Twitter"

@@ -154,12 +154,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -179,12 +179,12 @@
-

Default Tor Instances

+

Default Tor Instances


-

Custom Instances

+

Custom Instances

@@ -205,7 +205,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/wikipedia/wikipedia.html b/src/pages/options/wikipedia/wikipedia.html index 21fa9ced..7ad257c0 100644 --- a/src/pages/options/wikipedia/wikipedia.html +++ b/src/pages/options/wikipedia/wikipedia.html @@ -10,116 +10,135 @@ LibRedirect: Wikipedia - - + +
-

Enable

+

Enable

-

Protocol

+

Protocol

@@ -127,13 +146,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -152,13 +171,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -179,7 +198,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/youtube/youtube.html b/src/pages/options/youtube/youtube.html index e2d627c7..fba8de63 100644 --- a/src/pages/options/youtube/youtube.html +++ b/src/pages/options/youtube/youtube.html @@ -10,57 +10,69 @@ LibRedirect: YouTube - +
-

Enable

+

Enable

-

Frontend

+

Frontend

@@ -145,29 +164,29 @@
-

Protocol

+

Protocol

-

Redirect Type

+

Redirect Type

-

Bypass Watch On YouTube

+

Bypass Watch On YouTube

-

Enable Custom Settings (will use cookies and localStorage)

+

Enable Custom Settings (will use cookies and localStorage)

@@ -176,12 +195,12 @@
-

Autoplay Video

+

Autoplay Video

-

Volume: --%

+

Volume: --%

@@ -194,40 +213,40 @@
-

Player Style

+

Player Style

-

Always loop

+

Always loop

-

Play next by default

+

Play next by default

-

Autoplay next video

+

Autoplay next video

-

Always proxy videos

+

Always proxy videos

-

Listen by default

+

Listen by default

-

Default speed

+

Default speed

- +
-

Preferred DASH video quality

+

Preferred DASH video quality

-

Default comments

+

Default comments

 
-

Default captions

+

Default captions

   
-

Show annotations by default

+

Show annotations by default

-

Automatically extend video description

+

Automatically extend video description

-

Interactive 360 degree videos (requires WebGL)

+

Interactive 360 degree videos (requires WebGL)

-

Save playback position

+

Save playback position

@@ -718,13 +737,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -743,13 +762,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -773,62 +792,62 @@
-

Enable Sponsorblock

+

Enable Sponsorblock

-

Skip Sponsors

+

Skip Sponsors

-

Skip Intermission/Intro Animation

+

Skip Intermission/Intro Animation

-

Skip Endcards/Credits

+

Skip Endcards/Credits

-

Skip Preview/Recap

+

Skip Preview/Recap

-

Skip Interaction Reminder (Subscribe)

+

Skip Interaction Reminder (Subscribe)

-

Skip Unpaid/Self Promotion

+

Skip Unpaid/Self Promotion

-

Skip Music: Non-Music Section

+

Skip Music: Non-Music Section

-

Skip Highlight

+

Skip Highlight

-

Skip Filler Tangent

+

Skip Filler Tangent

-

Audio Only

+

Audio Only

-

Default Quality

+

Default Quality

-

Country Selection

+

Country Selection

- - + +
-

Show Comments

+

Show Comments

-

Minimize Description by default

+

Minimize Description by default

-

Store Watch History

+

Store Watch History

-

Enabled Codecs (Multiple)

+

Enabled Codecs (Multiple)

-

Enable Proxy for LBRY

+

Enable Proxy for LBRY

@@ -1093,13 +1112,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -1118,13 +1137,13 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -1148,72 +1167,72 @@
-

Audio Only

+

Audio Only

-

Disable LBRY

+

Disable LBRY

-

Proxy LBRY videos

+

Proxy LBRY videos

-

Enable Sponsorblock

+

Enable Sponsorblock

-

Skip to the last watched point when encountering a video already seen

+

Skip to the last watched point when encountering a video already seen

-

Skip Sponsors

+

Skip Sponsors

-

Skip Intermission/Intro Animation

+

Skip Intermission/Intro Animation

-

Skip Endcards/Credits

+

Skip Endcards/Credits

-

Skip Preview/Recap

+

Skip Preview/Recap

-

Skip Interaction Reminder (Subscribe)

+

Skip Interaction Reminder (Subscribe)

-

Skip Unpaid/Self Promotion

+

Skip Unpaid/Self Promotion

-

Skip Music: Non-Music Section

+

Skip Music: Non-Music Section

-

Skip Highlight

+

Skip Highlight

-

Skip Filler Tangent

+

Skip Filler Tangent


@@ -1222,12 +1241,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -1246,12 +1265,12 @@
-

Default Instances

+

Default Instances


-

Custom Instances

+

Custom Instances

@@ -1270,7 +1289,7 @@
-

Embed Exceptions

+

Embed Exceptions

@@ -1303,7 +1322,7 @@ - + - \ No newline at end of file + diff --git a/src/pages/options/youtubeMusic/youtubeMusic.html b/src/pages/options/youtubeMusic/youtubeMusic.html index 1993d449..d2cc4906 100644 --- a/src/pages/options/youtubeMusic/youtubeMusic.html +++ b/src/pages/options/youtubeMusic/youtubeMusic.html @@ -2,155 +2,171 @@ - - - - - - LibRedirect: YT Music + + + + + + LibRedirect: YT Music - + - + - - - + + + \ No newline at end of file -- cgit 1.4.1