Coder Social home page Coder Social logo

Manage internationalization about kosmtik HOT 4 OPEN

kosmtik avatar kosmtik commented on May 19, 2024
Manage internationalization

from kosmtik.

Comments (4)

yohanboniface avatar yohanboniface commented on May 19, 2024

If we are talking about the UI, I would go on https://github.com/yohanboniface/Leaflet.i18n because I know it suits my taste ;)
Not sure what would be the best way to make simple for plugins to inherit from this though. I need to think about it a bit.
About the backend, I'm not sure it needs internationalisation (eg. console outputs).

from kosmtik.

ThomasG77 avatar ThomasG77 commented on May 19, 2024

Yes, only UI, end users in mind not devs: they are supposed to understand English when working IMO.

from kosmtik.

yohanboniface avatar yohanboniface commented on May 19, 2024

The big picture would be something like:

  • a way to compile every string to be translated from code base (maybe add a custom command, than uses Leaflet.I18n own command, but taking the kosmtik context into account to look for the right places without needing configuration)
  • expose those strings to Transifex
  • add a lang switcher somewhere on the UI (certainly on the top bar)
  • make that i18n files are loaded/reloaded dynamically according to user lang choice
  • define a sort of convention for plugins to be able to run the i18n command line and to expose their translated string (for example files go into {plugin_root}/locale/{lang_code}.json)

from kosmtik.

kocio-pl avatar kocio-pl commented on May 19, 2024

If you still plan to do it, I will make a polish translation for sure. =}

from kosmtik.

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.