about summary refs log tree commit diff stats
path: root/pug/options/translate/translate.pug
blob: f6a192c46f581539cb3d45f15bcbd1e7c68f4126 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
doctype html
html(lang="en")
    include ../../widgets/head.pug
        title General
script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto")
    include ../../widgets/links.pug
    +links('translate')

    section.option-block
        .some-block.option-block
            h4(data-localise="__MSG_enable__") Enable
            input#disable-simplyTranslate(type="checkbox")

        .some-block.option-block
            h4(data-localise="__MSG_frontend__") Frontend
            select#translate-frontend
                option(value="simplyTranslate") SimplyTranslate
                option(value="lingva") Lingva

        .some-block.option-block
            h4(data-localise="__MSG_protocol__") Protocol
            select#protocol
                option(value="normal" data-localise="__MSG_normal__") Normal
                option(value="tor" data-localise="__MSG_tor__") Tor

        hr

        #simplyTranslate
            .some-block.option-block
                h4(data-localise="__MSG_from__") From
                select.from
                    option(value="auto") Auto
                    include ../../widgets/from-to.pug

            .some-block.option-block
                h4(data-localise="__MSG_to__") To
                select.to
                    include ../../widgets/from-to.pug

            .some-block.option-block
                h4(data-localise="__MSG_engine__") Engine
                select.engine
                    option(value="google") Google
                    option(value="libre") Libre
                    option(value="deepl") Deepl
                    option(value="iciba") ICIBA
                    option(value="reverso") Reverso

            .normal
                include ../../widgets/instances.pug
                +instances('https://simplytranslate.org')
                include ../../widgets/latency.pug
                +latency('simplyTranslate')
            .tor
                include ../../widgets/instances.pug
                +instances('http://hxecvvetgrznmprg.onion')

        #lingva 

            .normal
                include ../../widgets/instances.pug
                +instances('https://lingvatranslate.com')
                +latency('lingva')
            .tor
                include ../../widgets/instances.pug
                +instances('http://tyzxppdeoojdnaux.onion')

    script(type="module" src="../init.js")
    script(type="module" src="./translate.js")