GithubHelp home page GithubHelp logo

Comments (7)

fayderflorez avatar fayderflorez commented on May 25, 2024

Hey. It's possible to get more translations by simply adding them to the source file: restcountries/src/main/resources/countriesV2.json

from restcountries.

princeofnaxos avatar princeofnaxos commented on May 25, 2024

I mean in the API call, e.g. https://restcountries.eu/rest/v2/name/holland?translations=[sv,fr,de]

from restcountries.

fayderflorez avatar fayderflorez commented on May 25, 2024

Ah OK. This is not available at the moment but thanks for the suggestion

from restcountries.

princeofnaxos avatar princeofnaxos commented on May 25, 2024

I wish to express my hope that this will be added in the short future. The current list of translations is just not sufficient for European users.

So, either extend the list of translations (which might make the API slower?), or make the list definable (as I suggested).

Thanks!

from restcountries.

fayderflorez avatar fayderflorez commented on May 25, 2024

I'll keep this thread open to remind myself about it, but anyone is welcome to contribute to the project thru a Pull Request or Donation :)

from restcountries.

VCardWEb avatar VCardWEb commented on May 25, 2024

I was thinking something like:
restcountries.eu/rest/v2/language/fr/all
restcountries.eu/rest/v2/language/fr/name/aruba?fullText=true
The result can be everything translated to the requested language, if this gets implemented I can help with translations. I'm sure there will be many more willing to help with that.

from restcountries.

fayderflorez avatar fayderflorez commented on May 25, 2024

Hi @VCardWEb This is something that I'm actually considering for the version 3 of restcountries API

from restcountries.

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.