Giter Site home page Giter Site logo

sheepla / strans Goto Github PK

View Code? Open in Web Editor NEW
33.0 1.0 0.0 67 KB

πŸ“– A command line translate tool with interactive mode inspired by translate-shell

License: MIT License

Go 96.23% Makefile 3.77%
cli go-cli translate translate-shell translate-cli lingva repl lingva-translate

strans's Issues

Error `404 Not Found` `panic: runtime error: invalid memory address or nil pointer dereference`

Translation may fail with a 404 error if the source text contains / symbol(s):

[auto -> en]
> こんにけは/δΈ–η•Œ
an error occurred on executing HTTP method: https://lingva.ml/api/v1/auto/en/%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF/%E4%B8%96%E7%95%8C 404 Not Found
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0xb00467]

goroutine 1 [running]:
github.com/sheepla/strans/repl.Start(0xc000027140, 0x0)
        C:/Users/admin/ghq/github.com/sheepla/strans/repl/repl.go:78 +0x487
main.run(0xc000026540)
        C:/Users/admin/ghq/github.com/sheepla/strans/main.go:165 +0x471
github.com/urfave/cli/v2.(*Command).Run(0xc000002c80, 0xc000026540, {0xc000026080, 0x4, 0x4})
        C:/Users/admin/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:271 +0xa42
github.com/urfave/cli/v2.(*App).RunContext(0xc000108000, {0xcc32d0?, 0xc00000e0d8}, {0xc000026080, 0x4, 0x4})
        C:/Users/admin/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:333 +0x665
github.com/urfave/cli/v2.(*App).Run(...)
        C:/Users/admin/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:310
main.main()
        C:/Users/admin/ghq/github.com/sheepla/strans/main.go:38 +0x45

Support voice read aloud

Getting audio in a byte array from this point of API and play the audio: /api/v1/audio/:lang/:query

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.