Coder Social home page Coder Social logo

Comments (4)

deankarn avatar deankarn commented on June 15, 2024

@gedw99 are you saying you need to parse text with datetime and money values within it? if so this package is really for building the text from the ground up rather than parsing and manipulating.

perhaps I'm misunderstanding what you mean though, do you have an example?

from universal-translator.

 avatar commented on June 15, 2024

Hey @joeybloggs
You got it right. I need to do i18n but the translations include datetime and currency.
It must be something lots of people hit.
I COULD change thing so they no translated text every has a data time or currency in it.
then i just have to construct a sentence with bits of translated text and datetime and currency formatting at runtime.

thoughts ?

from universal-translator.

deankarn avatar deankarn commented on June 15, 2024

Parsing would be very difficult as you would also need to know the source text locale, I personally build the text in bits as you stated.

I have no plans to add that sort of functionality and I know I don't have the free time to. but if you wanted to build something on top of this or even a separate project that would be pretty awesome.

from universal-translator.

 avatar commented on June 15, 2024

Ah thanks Joey, will follow what you did. Was curious if i was boiling the ocean too much :)
Closing this.

from universal-translator.

Related Issues (15)

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.