js-written-number icon indicating copy to clipboard operation
js-written-number copied to clipboard

Add a way not to include all locales

Open yamadapc opened this issue 7 years ago • 2 comments

There should be a means of not including all locales.

A very simple solution would be to move the logic to lib/core and keep lib/index including all locales, so people would be able to manually require just the logic and the locales they'll use:

import writtenNumber from 'written-number/lib/core';
import writtenNumberEn from 'written-number/lib/i18n/en';
// ...

yamadapc avatar Jul 03 '17 14:07 yamadapc

+1 from me!

leoseccia avatar Sep 18 '18 10:09 leoseccia

I made a PR #70 that exposes a standalone version that does not add all the locales. No breaking changes were introduced, please take the time to review it.

mtkcs avatar Oct 04 '19 07:10 mtkcs