about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2023-09-03 14:53:50 +0300
committerManeraKai <manerakai@protonmail.com>2023-09-03 14:53:50 +0300
commit94a4ba8b850983c09a0dcfcd87a725506dec429d (patch)
tree269a9509de2c59c7c204367435572959de243ac5 /src
parent2.7.1 => 2.8.0 (diff)
downloadlibredirect-94a4ba8b850983c09a0dcfcd87a725506dec429d.zip
Added strings for localization https://github.com/libredirect/browser_extension/issues/805
Diffstat (limited to 'src')
-rw-r--r--src/_locales/en/messages.json11
-rw-r--r--src/pages/options/widgets/general.pug4
-rw-r--r--src/pages/options/widgets/services.pug2
-rw-r--r--src/pages/popup/popup.pug2
4 files changed, 14 insertions, 5 deletions
diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json
index 4879dc8c..251bbebe 100644
--- a/src/_locales/en/messages.json
+++ b/src/_locales/en/messages.json
@@ -99,5 +99,14 @@
     },
     "about": {
         "message": "About"
-    }
+    },
+    "unsupportedIframesHandling": {
+        "message": "Unsupported iframes handling"
+    },
+    "fetchPublicInstances": {
+        "message": "Fetch public instances"
+    },
+    "disable": {
+        "message": "Disable"
+    }   
 }
\ No newline at end of file
diff --git a/src/pages/options/widgets/general.pug b/src/pages/options/widgets/general.pug
index cbc0129e..7d91cd91 100644
--- a/src/pages/options/widgets/general.pug
+++ b/src/pages/options/widgets/general.pug
@@ -11,11 +11,11 @@ section(class="option-block" id="general_page")
             option(value="dark" data-localise="__MSG_dark__") Dark
 
     div(class="some-block option-block")
-        h4 Fetch public instances
+        h4(data-localise="__MSG_fetchPublicInstances__") Fetch public instances
         select(id="fetch-instances")
             option(value="github") GitHub
             option(value="codeberg") Codeberg
-            option(value="disable") Disable
+            option(value="disable" data-localise="__MSG_disable__") Disable
 
     div(class="some-block option-block")
         h4(data-localise="__MSG_excludeFromRedirecting__") Excluded from redirecting
diff --git a/src/pages/options/widgets/services.pug b/src/pages/options/widgets/services.pug
index d710ed7a..80c469c3 100644
--- a/src/pages/options/widgets/services.pug
+++ b/src/pages/options/widgets/services.pug
@@ -43,7 +43,7 @@ each val, service in services
 
 
             div(class="some-block option-block")
-                h4 Unsupported iframes handling
+                h4(data-localise="__MSG_unsupportedIframesHandling__") Unsupported iframes handling
                 select(id=service+"-unsupportedUrls")
                     option(value="bypass") bypass
                     option(value="block") block
diff --git a/src/pages/popup/popup.pug b/src/pages/popup/popup.pug
index 6af50870..d74e1d16 100644
--- a/src/pages/popup/popup.pug
+++ b/src/pages/popup/popup.pug
@@ -18,7 +18,7 @@ html(lang="en")
 
         div(class="some-block" id="change_instance_div" style="display: none")
             a(class="title button prevent" id="change_instance")
-                h4() Switch Instance
+                h4(data-localise="__MSG_switchInstance__") Switch Instance
                 svg(xmlns="http://www.w3.org/2000/svg" height="26px" width="26px" fill="currentColor")
                     path(d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z")