mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-06-06 00:29:12 +02:00
OcttKB Cross-Repo Sync (HTML to Raw)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
created: 20231105210128175
|
||||
creator: Octt
|
||||
list-after: $:/core/ui/ViewTemplate/tags
|
||||
modified: 20231105232834847
|
||||
modified: 20231105234639368
|
||||
modifier: Octt
|
||||
tags: $:/tags/ViewTemplate
|
||||
title: $:/Styles/View/i18n
|
||||
@@ -32,7 +32,7 @@ title: $:/Styles/View/i18n
|
||||
if (TidBodyParags[i].trim()) {
|
||||
/* TODO: make this not lock up the main thread */
|
||||
var req = new XMLHttpRequest();
|
||||
req.open('GET', `https://lingva.garudalinux.org/api/v1/${TidLangKnown ? TidLangKnown : 'auto'}/${window['OcttKB-i18n-current']}/${encodeURIComponent(TidBodyParags[i].trim())}`, false);
|
||||
req.open('GET', `https://lingva.garudalinux.org/api/v1/${TidLangKnown ? TidLangKnown : 'auto'}/${input.value}/${encodeURIComponent(TidBodyParags[i].trim())}`, false);
|
||||
req.send();
|
||||
var jsonResponse = JSON.parse(req.responseText);
|
||||
TidBodyTranslated += jsonResponse.translation + BodySplitter;
|
||||
|
Reference in New Issue
Block a user