Giter Club home page Giter Club logo

Comments (5)

bouncepaw avatar bouncepaw commented on July 24, 2024
  • i18n is not bloat
  • quicktemplate interoperation won't be any issue
  • as for the library, go-localize seems the coolest
    • the fact that it stores all the strings in the binary is nice

Do we need wiki-local locales? I don't think so.

The real issue with translations is that they are always outdated. It takes significant amount of work to keep them up-to-date

from mycorrhiza.

handlerug avatar handlerug commented on July 24, 2024

My opinion is that gettext is the most bloaty thing I've ever seen in my life. I would prefer something simple, maybe something YAML- or JSON-based. Gettext syntax is really ugly and is almost impossible to write by hand. So I'm already negatively biased towards gotext.

go-localize looks pretty clean, I like it. go-i18n doesn't look bloaty but yeah it does have a lot of stuff. All other ones are pretty cool too.

We could even have our own i18n solution myco-style. However, I wouldn't really support front-end translations for the same reason @bouncepaw has stated.

from mycorrhiza.

chekoopa avatar chekoopa commented on July 24, 2024

i18n is not bloat

Seemed bloated to me.

quicktemplate interoperation won't be any issue

I have little idea how would I inject these strings. But as we're coming up with the library choice, I seem to understand a proper way for it.

the fact that it stores all the strings in the binary is nice

If you're not against that, I'm ready for code-generated solutions, like fore-mentioned go-localize. Plurals, though, would be a hot mess.

Do we need wiki-local locales? I don't think so.

Well, that was just an assumption, as some themed wikis would utilize that. It might be difficult to implement. However, there is a little dirty hack for go-localize which would let us inject wiki-local strings. :^)

The real issue with translations is that they are always outdated. It takes significant amount of work to keep them up-to-date

Fallback locale to the rescue. If something isn't translated, it falls back to English.

from mycorrhiza.

bouncepaw avatar bouncepaw commented on July 24, 2024

We could even have our own i18n solution myco-style

I already have some dirty thoughts about that. But let's use something else (go-localize ig)

i18n is not bloat

Seemed bloated to me.

Let's consider i18n a form of accessibility. Accessibility is never bloat.

However, there is a little dirty hack for go-localize which would let us inject wiki-local strings.

What hack?

from mycorrhiza.

chekoopa avatar chekoopa commented on July 24, 2024

Let's consider i18n a form of accessibility. Accessibility is never bloat.

Oh, I've thought about i18n the library. I'm eagerly agree with you about the i18n itself.

What hack?

:^) go-localize generates a very neat and flexible code.

Okay, so I've heard in the dev chat about fallback locales are a bad idea. But what are alternatives?

from mycorrhiza.

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.