Hi, I don't know why but I can't open a new Pull request. I have a very short but effective component code based on the functions moments has. This code uses the function fromNow in momentjs and it uses all locales from moments. As far as I tested this it works for all locale as it should be. Because the suffix 'ago' now is managed by the locales of moments there is no need use a coded argument/prop. Be aware that the local for Korean in moments is 'ko' not 'kr'. This solution solves a lot of specials which some locales (like german en french) have a prefix like (german:'vor', french:'il y a') for the suffix 'ago'. These exceptions are very difficult to manage with coding yourself.
Like I said before if you don't want these changes I consider to publish this variant as a new npm module.
Hi, I don't know why but I can't open a new Pull request. I have a very short but effective component code based on the functions moments has. This code uses the function fromNow in momentjs and it uses all locales from moments. As far as I tested this it works for all locale as it should be. Because the suffix 'ago' now is managed by the locales of moments there is no need use a coded argument/prop. Be aware that the local for Korean in moments is 'ko' not 'kr'. This solution solves a lot of specials which some locales (like german en french) have a prefix like (german:'vor', french:'il y a') for the suffix 'ago'. These exceptions are very difficult to manage with coding yourself. Like I said before if you don't want these changes I consider to publish this variant as a new npm module.