Coder Social home page Coder Social logo

Different languages? about covidtrends HOT 6 OPEN

aatishb avatar aatishb commented on May 22, 2024 3
Different languages?

from covidtrends.

Comments (6)

edg2s avatar edg2s commented on May 22, 2024 4

I would recommend using i18n files rather than maintaining parallel branches. You could use a plugin such as https://kazupon.github.io/vue-i18n/, then keep all the messages in separate files i18n/en.json, i18n/fr.json etc.

from covidtrends.

aatishb avatar aatishb commented on May 22, 2024 1

I would love to see translations! Thank you for suggesting this.

Currently I am imaging parallel branches of this website with the content translated, hosted on other peoples github accounts. We can create a translations page over here that links to sites with translations of this page in different languages, and then link to this translations page in the footer of the website. Or if there are fewer languages, we can just link directly in the footer.

Open to other thoughts on how to go about this.

from covidtrends.

edg2s avatar edg2s commented on May 22, 2024

As an open source project you would even be able to get your translations done for free by the TranslateWiki community. This is the same site that does translations for Wikipedia, OpenStreetMap and others. However this might be a bit too much effort to setup and maintain.

from covidtrends.

aatishb avatar aatishb commented on May 22, 2024

Interesting! Let's look into these options. cc @mustpax

from covidtrends.

aatishb avatar aatishb commented on May 22, 2024

Labeling this as a question so we can gather input on how best to implement translations (and as a note to self to look more into the options above)

from covidtrends.

CharsiBabu avatar CharsiBabu commented on May 22, 2024

I second the opinion to added lib for handling translations.
Since the number of text entries would be relatively low, we could start with single js/json for all languages.

Not sure where would the language selector go. (header / footer / aside)

from covidtrends.

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.