Giter Site home page Giter Site logo

Comments (9)

leolabs avatar leolabs commented on May 27, 2024

Hey @jammind,

could you elaborate on which behavior you'd expect from json-autotranslate in your scenario? I've tried recreating the problem and json-autotranslate translates all other languages just fine, not touching the files that are in unsupported language folders.

from json-autotranslate.

leolabs avatar leolabs commented on May 27, 2024

I've made a small improvement that may enable the behavior that you're expecting. The dry-run and manual services now don't check languages anymore and thus support any language code you give them. Change is in a0c6f95. Does this solve your problem? :)

from json-autotranslate.

onionhammer avatar onionhammer commented on May 27, 2024

I'm also having an issue where it doesnt support 'fil' for filipino - would this resolve this issue?

from json-autotranslate.

leolabs avatar leolabs commented on May 27, 2024

That should solve it, as long as the translation service you chose supports the language :)

from json-autotranslate.

onionhammer avatar onionhammer commented on May 27, 2024

No such luck.. (at least for 1.5.4) "🙈 Google Translate doesn't support fil. Skipping this language." No sure why though, since google translate definitely does support filipino. Sorry to muddy this issue

from json-autotranslate.

leolabs avatar leolabs commented on May 27, 2024

Hey @onionhammer,
In general, all languages in Google Translate are following the two-letter ISO code. When you go to the Google Translate website and select Filipino, you'll see that its language code is tl in the URL parameters. Could you try it with that one and see if it works? :)

from json-autotranslate.

jammind avatar jammind commented on May 27, 2024

Thanks for the quick response. I have updated json-autotranslate to 1.5.4, but I still get this error:
Google Translate doesn't support "pe". Skipping this language. "pe" here means Peru Espania, which is an ISO locale code.
image

from json-autotranslate.

leolabs avatar leolabs commented on May 27, 2024

Hey, @jammind!
That warning makes sense since pe is not supported by Google Translate. All other languages should be automatically translated and the pe folder should be left as-is. You can translate it manually if you need it :)

Can you confirm that this is the behavior you're experiencing and elaborate on how you'd expect json-autotranslate to behave in that situation?

from json-autotranslate.

jammind avatar jammind commented on May 27, 2024

Indeed. It works like charm! Thank you @leolabs

from json-autotranslate.

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.