DEV Community

Daniel Zotti
Daniel Zotti

Posted on

#LearnedToday: ng-input-number-i18n

๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‡ฌ๐Ÿ‡ง Have you ever worked with i18n and numbers?

๐Ÿค” A few years ago I needed an angular directive to handle displaying an approximate decimal number for different locales.

At the same time I needed to edit the value by displaying the full number with all the decimal digits when the input had the focus (imagine having some kinf of excel sheet full of such cells).

๐Ÿ’ก I couldn't find a ready-made component, so in the end, I created an open source project myself and I deployed an npm package to use in different projects.

ng-i18n-input-number demo

๐Ÿ“ฆ npm package
๐ŸŽฎ demo
๐Ÿ’ป github

Top comments (0)