I am using angular-gettext for a project. I was wondering if somehow I could translate decimal numbers. FX in some languages you write 2.5 and some other 2,5. Do you have any idea if this is doable via the angular-gettext?
What other workaround could there be?
Angular-gettext doesn't do this for you, but if you combine it with the built-in $locale
service from Angular.JS, it should just work. What you're looking for is the number
filter.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.