Git Product home page Git Product logo

Comments (9)

ospfranco avatar ospfranco commented on May 21, 2024

type something then press CMD + 1

from sol.

Angelk90 avatar Angelk90 commented on May 21, 2024

@ospfranco : I would never understand how to use it.

in this way, when can the text sent be large?

from sol.

Angelk90 avatar Angelk90 commented on May 21, 2024

When I do CMD + 1, the browser with the email also opens.

from sol.

ospfranco avatar ospfranco commented on May 21, 2024
  • don't understand the question
  • I know, this needs a tutorial
  • there is some problem with listeners/mobx and hot reload, do a hard reload and it will work fine

from sol.

Angelk90 avatar Angelk90 commented on May 21, 2024

@ospfranco : In this case with the call how can you not have problems with cors?

from sol.

ospfranco avatar ospfranco commented on May 21, 2024

CORS is a browser feature, react-native can do requests to wherever it pleases

from sol.

Angelk90 avatar Angelk90 commented on May 21, 2024

@ospfranco , Ok, it would have been nice if the browser worked.

I did a test with the script on react-native, using my device as an emulator.

It works well, but the console comes back to me with a strange problem:

translatorLanguage.tsx (113:35)
Parsing error: Unexpected token, expected ";"
(ESLint)
  111 |       try {
  112 |         
> 113 |         length = /^\d+/.exec(json)![0]
      |                                   ^
  114 | 
  115 |         json = JSON.parse(
  116 |           json.slice(length.length, parseInt(length, 10) + length.length), (null)

Does that check serve to verify if it is not null?
Why haven't you used RegExp?

P.s.
That semicolon at the beginning what is it for?

;(json[1][0][0][5] as any).forEach(function (obj: any) {

Link: snack

from sol.

ospfranco avatar ospfranco commented on May 21, 2024

I don't know which code are you pointing me to, that looks like the code from the translation library but that shouldn't be your concern, I meant more about language handling and the list of supported languages.

https://github.com/ospfranco/google_translate_supported_languages

from sol.

ospfranco avatar ospfranco commented on May 21, 2024

Will take care of setting translation languages and the whole setting UI for it later

from sol.

Related Issues (20)

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.