New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
En-GB language support #562
Comments
@glintik It would be welcome 😊 I had made a guide how to add a locale with the same language as another locale: https://github.com/date-fns/date-fns/blob/master/docs/i18nContributionGuide.md#creating-a-locale-with-the-same-language-as-another-locale |
Hi @leshakoss, Thank you for guide. I see an example with locale en-GB in this article, is it not in master yet? |
@glintik no, there is no such locale in date-fns at the time. The example code is made up for the guide |
Ok, I'll prepare one soon. |
package.json looks as not ready to run module, any advise please on running build/tests? |
For tests, For building a package to test it in your project: env PACKAGE_OUTPUT_PATH="$(pwd)/../PATH-TO-YOUR-MODULE/node_modules/date-fns" ./scripts/build/package.sh |
I have run
Got:
Ok, install globally babel-cli:
Run again:
Got an error:
What I'm doing wrong? |
@glintik did you install date-fns dev dependencies? I mean |
That's I did at the first with no luck:
|
@glintik oh. Please change "DON'T CHANGE; IT'S SET AUTOMATICALLY DURING DEPLOYMENT" in package.json to something version-like (e.g. "2.0.0") for now and run "npm install" again. It is indeed a bug. We'll fix it later |
Now it works, tests are ok, thanks! However, some outdated modules are found:
|
Locale en-GB is prepared and sent in PR #563. |
Resolved by #563 |
We use Yarn for development. I've adjusted the |
Hi,
How about adding en-GB locale support?
The text was updated successfully, but these errors were encountered: