i18n icon indicating copy to clipboard operation
i18n copied to clipboard

Feature Request: Fix URL in npmjs

Open BrodaNoel opened this issue 1 year ago • 4 comments

Description

After reading this issue https://github.com/fnando/i18n/issues/107, I would suggest to update the project URL in https://www.npmjs.com/package/i18n-js

It is currently pointing to https://github.com/fnando/i18n, instead of https://github.com/fnando/i18n-js

Describe the solution

Update URL

Alternatives you considered

n/a

Additional context

I'm quite sure that those 120.000 downloads in https://www.npmjs.com/package/i18n-js are because people is opening the project URL in npmjs, pointing to this wrong project, and after not seeing any migration file, they just quit the migration.

Screen Shot 2024-11-18 at 21 45 46

BrodaNoel avatar Nov 19 '24 00:11 BrodaNoel

@fnando/i18n is the javascript package, while https://github.com/fnando/i18n-js hosts the CLI code. As of today, they're independent and one doesn't require the other.

The reason that happens today is because the original version of i18n-js was too rails focused, while some people wanted to use i18n-js on non-rails environments.

tl;dr: npm i i18n-js (v4) is the way to go today, while gem install i18n-js will install the CLI and give you some niceties on your workflow.

fnando avatar Nov 19 '24 00:11 fnando

How is that possible? I have i18n-js in my project since 6 years ago.

Screen Shot 2024-11-18 at 21 54 35 Screen Shot 2024-11-18 at 21 54 58

BrodaNoel avatar Nov 19 '24 00:11 BrodaNoel

The change happened on v4, released about two years ago.

fnando avatar Nov 19 '24 00:11 fnando

Just to clarify, I'm using i18n-js in a React Native project, using the i18n.t method.

BrodaNoel avatar Nov 19 '24 00:11 BrodaNoel