Giter Site home page Giter Site logo

deeplx's Issues

Supported Languages Type

const langs = [
    "el",
    "bg",
    "lv",
    "ko",
    "lt",
    "id",
    "uk",
    "sl",
    "sk",
    "tr",
    "ro",
    "cs",
    "et",
    "fi",
    "da",
    "hu",
    "sv",
    "nb",
    "ru",
    "pl",
    "pt",
    "nl",
    "it",
    "es",
    "fr",
    "de",
    "ja",
    "en",
    "zh"
] as const

type Lang = typeof langs[number]
type SourceLang = Lang | 'auto'
type TargetLang = Lang

Error running the exported Edge Handler TypeError: (t.text || "").split is not a function

Error running the exported Edge Handler TypeError: (t.text || "").split is not a function
at a (/var/task/node_modules/@ifyour/deeplx/dist/deeplx.cjs.production.min.js:1:7637)
at /var/task/node_modules/@ifyour/deeplx/dist/deeplx.cjs.production.min.js:1:8287
at f (/var/task/node_modules/@ifyour/deeplx/dist/deeplx.cjs.production.min.js:1:643)
at Generator.<anonymous> (/var/task/node_modules/@ifyour/deeplx/dist/deeplx.cjs.production.min.js:1:1974)
at Generator.next (/var/task/node_modules/@ifyour/deeplx/dist/deeplx.cjs.production.min.js:1:1053)
at e (/var/task/node_modules/@ifyour/deeplx/dist/deeplx.cjs.production.min.js:1:6562)
at u (/var/task/node_modules/@ifyour/deeplx/dist/deeplx.cjs.production.min.js:1:6765)
at /var/task/node_modules/@ifyour/deeplx/dist/deeplx.cjs.production.min.js:1:6824
at new Promise (<anonymous>)
at /var/task/node_modules/@ifyour/deeplx/dist/deeplx.cjs.production.min.js:1:6705

seems to be here

return (translateText || '').split('i').length - 1;

adding .toString() should fix it?

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.