Comments (4)
@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.
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.
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.
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)
- Request for Help creating tests for ALL locales HOT 4
- Fallback Language Support HOT 5
- Readme States Its the Latest CLDR version, v29? HOT 5
- example full with files failing HOT 2
- Is this a bug?
- go test all fails for all dependent projects
- Cannot contain "{" and "}" in the parameter text when using func (t *translator) Add(key interface{}, text string, override bool) error HOT 3
- Plural Types do not match CLDR Plural Rules, yields gramatically incorrect for many languages. HOT 7
- Translation Parameters order HOT 1
- fatal error: concurrent map read and map write HOT 5
- Is there any limitation when using Import?
- Web GUI for Translators HOT 18
- File format for interchange HOT 2
- Project Focus? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from universal-translator.