瀏覽代碼

Adding in Lingva Translate (#322)

Robert Middleswarth 3 年之前
父節點
當前提交
fb762b6684
共有 2 個文件被更改,包括 229 次插入0 次删除
  1. 188 0
      images/lingva-translate.svg
  2. 41 0
      template/apps/lingva-translate.json

+ 188 - 0
images/lingva-translate.svg

@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="210mm"
+   height="210mm"
+   viewBox="0 0 210 210"
+   version="1.1"
+   id="svg8">
+  <defs
+     id="defs2">
+    <rect
+       x="-92.429436"
+       y="-19.13651"
+       width="72.370021"
+       height="109.22579"
+       id="rect1014" />
+    <rect
+       x="-24.02615"
+       y="29.84538"
+       width="66.966906"
+       height="235.78504"
+       id="rect967" />
+    <rect
+       x="109.98237"
+       y="71.427592"
+       width="37.616221"
+       height="35.617969"
+       id="rect880" />
+    <rect
+       x="38.092336"
+       y="131.59943"
+       width="8.2558791"
+       height="28.893294"
+       id="rect837" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.7"
+     inkscape:cx="341.82297"
+     inkscape:cy="499.99149"
+     inkscape:document-units="mm"
+     inkscape:current-layer="g1046"
+     inkscape:document-rotation="0"
+     showgrid="false"
+     inkscape:pagecheckerboard="false"
+     showborder="true"
+     borderlayer="false"
+     inkscape:showpageshadow="true"
+     inkscape:window-width="1848"
+     inkscape:window-height="1016"
+     inkscape:window-x="72"
+     inkscape:window-y="27"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata5">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Capa 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <text
+       xml:space="preserve"
+       id="text878"
+       style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect880);fill:#000000;fill-opacity:1;stroke:none;" />
+    <g
+       id="g998">
+      <g
+         id="g982">
+        <g
+           id="g1046"
+           transform="matrix(1.3340125,0,0,1.3180561,-28.946798,-23.266825)">
+          <g
+             id="g1193">
+            <g
+               id="g987">
+              <rect
+                 style="fill:#3cb371;fill-opacity:1;stroke-width:0.420772"
+                 id="rect833-4"
+                 width="90"
+                 height="90"
+                 x="85.370766"
+                 y="21.445843"
+                 ry="30.319227" />
+              <g
+                 aria-label="语"
+                 transform="scale(0.98945822,1.0106541)"
+                 id="text892"
+                 style="font-style:normal;font-weight:normal;font-size:60.2376px;line-height:1.25;font-family:sans-serif;fill:#e4f4ea;fill-opacity:1;stroke:none;stroke-width:1.50595">
+                <path
+                   d="m 119.77244,48.005419 c -1.86737,-2.469741 -6.02376,-6.324948 -9.21636,-8.975402 l -2.8914,2.710692 c 3.19259,2.891405 7.16827,6.927324 9.03564,9.457303 z M 117.00151,82.34085 V 56.197732 h -12.52942 v 4.27687 h 8.31278 v 21.806011 c 0,2.469741 -1.26499,3.794968 -2.10831,4.397344 0.72285,0.963802 1.86736,2.891405 2.22879,3.975682 0.90356,-1.144515 2.46974,-2.349267 12.46918,-9.216353 -0.42166,-0.903564 -0.9638,-2.650454 -1.20475,-3.794969 z m 33.61258,-6.927324 v 10.78253 h -20.42055 v -10.78253 z m -24.69742,17.047241 h 4.27687 V 90.1115 h 20.42055 v 2.168554 h 4.39734 V 71.498082 h -29.09476 z m 22.70958,-38.190638 c -0.24096,2.529979 -0.54214,5.541859 -0.90357,8.192314 h -12.28847 c 0.60238,-2.409504 1.26499,-5.240671 1.9276,-8.192314 z m 3.3733,8.192314 c 0.4819,-3.855207 0.9638,-8.252551 1.20475,-12.04752 l -3.19259,-0.301188 -0.66261,0.24095 h -11.14396 c 0.54214,-2.289028 1.02404,-4.638295 1.4457,-6.746611 h 17.34843 v -4.035919 h -34.03424 v 4.035919 h 12.10776 c -0.36143,2.108316 -0.78309,4.457583 -1.32523,6.746611 h -8.55374 v 3.915444 h 7.65017 c -0.66261,2.951643 -1.32522,5.78281 -1.98784,8.192314 h -9.9392 v 4.096156 h 38.1304 v -4.096156 z"
+                   style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:sans-serif;-inkscape-font-specification:sans-serif;fill:#e4f4ea;fill-opacity:1;stroke-width:1.50595"
+                   id="path855" />
+              </g>
+            </g>
+            <g
+               id="g1031">
+              <rect
+                 style="fill:#e7f5ed;fill-opacity:1;stroke-width:0.420772"
+                 id="rect833"
+                 width="90"
+                 height="90"
+                 x="25.447136"
+                 y="83.184448"
+                 ry="30.319227" />
+              <path
+                 sodipodi:type="star"
+                 style="fill:#3cb371;fill-opacity:1;stroke-width:0.396874"
+                 id="path901"
+                 sodipodi:sides="5"
+                 sodipodi:cx="62.212276"
+                 sodipodi:cy="21.296686"
+                 sodipodi:r1="13.796687"
+                 sodipodi:r2="6.0469499"
+                 sodipodi:arg1="-1.5707963"
+                 sodipodi:arg2="-0.9424778"
+                 inkscape:flatsided="false"
+                 inkscape:rounded="0"
+                 inkscape:randomized="0"
+                 inkscape:transform-center-y="0.02069705"
+                 transform="matrix(0.93840962,0.16603043,-0.17042345,0.98670226,37.939196,73.151738)"
+                 d="m 62.212277,7.499999 3.554307,8.904602 9.567122,0.628675 -7.370438,6.13202 2.358497,9.293145 -8.109489,-5.114805 -8.109489,5.114804 2.358498,-9.293144 -7.370438,-6.132021 9.567121,-0.628674 z"
+                 inkscape:transform-center-x="-0.82124876" />
+              <g
+                 aria-label="L"
+                 transform="matrix(0.95061396,0,0,0.95061396,66.090838,-28.284925)"
+                 id="text965"
+                 style="font-style:normal;font-weight:normal;font-size:176.389px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect967);fill:#3cb371;fill-opacity:1;stroke:none">
+                <path
+                   d="m -12.873615,185.69496 c 6.902593,-2.76882 17.5637656,0.71579 31.41496,-0.11246 l 1.232521,-0.0737 c 0.234764,-0.014 0.818171,-0.10783 1.750216,-0.28136 1.91128,-1.52792 3.616843,-1.57101 5.11669,-0.12927 1.499847,1.44176 1.542935,2.61815 0.129264,4.58752 -1.199961,1.6032 -5.790964,2.64345 -13.773008,3.12076 l -3.6975644,0.22111 c -8.2027702,0.72612 -15.276744,-2.85522 -20.6533586,-0.17765 -2.056739,1.06541 -4.337715,1.79177 -6.842929,3.23741 -1.850051,0.58184 -3.283214,0.25523 -4.299491,-0.97983 -0.891874,-1.12469 -0.917413,-2.5368 -0.07662,-4.23632 3.927088,-9.18783 6.491205,-17.52845 7.692351,-25.02185 1.318529,-7.50042 2.296411,-13.80244 2.933645,-18.90606 0.747598,-5.22803 1.753557,-11.06051 3.0178765,-17.49747 0.9371193,-2.05868 2.3035991,-2.84721 4.0994402,-2.36559 1.9132246,0.47461 2.8156271,1.77538 2.7072086,3.90231 -1.8212127,8.94411 -3.4006398,17.99157 -4.7382824,27.14236 -1.2272781,9.02641 -3.2315849,18.92199 -6.0129189,27.5701 z"
+                   style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:176.389px;font-family:Karumbi;-inkscape-font-specification:Karumbi;fill:#3cb371;fill-opacity:1"
+                   id="path1024"
+                   sodipodi:nodetypes="csscscsccccccccccccc" />
+              </g>
+            </g>
+            <g
+               id="g1175">
+              <g
+                 id="g1163">
+                <path
+                   id="rect968-6"
+                   style="fill:#e4f4ea;fill-opacity:1;stroke-width:0.209149"
+                   d="m 139.90603,100.08438 -11.64762,11.375 h 16.79314 c 2.03994,0 4.03091,-0.20129 5.9559,-0.58183 l -11.05222,-10.79317 z" />
+                <path
+                   id="rect860"
+                   style="fill:#e4f4ea;stroke-width:1.21865"
+                   d="M 559.05273 466.72461 L 559.05273 629.24414 L 634.64258 553.44922 L 634.64258 466.72461 L 559.05273 466.72461 z "
+                   transform="matrix(0.19833647,0,0,0.20073754,21.699046,17.652378)" />
+              </g>
+              <g
+                 id="g1167">
+                <path
+                   id="rect968"
+                   style="fill:#3cb371;fill-opacity:1;stroke-width:1.04819"
+                   d="M 472.67188 533.07812 L 416.03125 591.7793 L 416.03125 592.02734 L 470.62109 648.60156 C 471.96307 640.52345 472.67188 632.22851 472.67188 623.76367 L 472.67188 533.07812 z "
+                   transform="matrix(0.19833647,0,0,0.20073754,21.699046,17.652378)" />
+                <path
+                   id="rect860-3"
+                   style="fill:#3cb371;fill-opacity:1;stroke-width:1.21865"
+                   d="M 472.12305 553.6543 L 472.12305 629.24414 L 559.05273 629.24414 L 634.4375 553.6543 L 472.12305 553.6543 z "
+                   transform="matrix(0.19833647,0,0,0.20073754,21.699046,17.652378)" />
+              </g>
+            </g>
+          </g>
+        </g>
+      </g>
+    </g>
+  </g>
+</svg>

+ 41 - 0
template/apps/lingva-translate.json

@@ -0,0 +1,41 @@
+{
+	"categories": [
+		"Other",
+		"Tools"
+	],
+	"description": "Alternative front-end for Google Translate, serving as a Free and Open Source translator with over a hundred languages available",
+	"env": [
+		{
+			"default": "true",
+			"label": "dark_theme",
+			"name": "dark_theme"
+		},
+		{
+			"default": "lingva.ml",
+			"label": "site_domain",
+			"name": "site_domain"
+		},
+		{
+			"default": "auto",
+			"label": "default_source_lang",
+			"name": "default_source_lang"
+		},
+		{
+			"default": "en",
+			"label": "default_target_lang",
+			"name": "default_target_lang"
+		}
+	],
+	"image64": "cinetube/lingva-translate:latest",
+	"logo": "https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/images/lingva-translate.png",
+	"name": "lingva-translate",
+	"officialDoc": "https://github.com/TheDavidDelta/lingva-translate",
+	"platform": "linux",
+	"ports": [
+		"3010:3000/tcp"
+	],
+	"restart_policy": "unless-stopped",
+	"title": "Lingva Translate",
+	"type": 1,
+	"webpage": "https://lingva.ml/"
+}