[Solved] JS counter with adding spaces
You can just create another helper-function, that takes a number as an input and gives you the localized string back. Then you can wrap the part of your code with it, that gives you the actual number (Math.ceil(now)). The combination of the two for arabic (just an example) would look like this: function startCounter(){ $(‘.counter’).each(function … Read more