Skypack shows Alpine's German README #1407
Replies: 12 comments
-
Looks like they just grab the first one, which happens to be german. |
Beta Was this translation helpful? Give feedback.
-
Ew, any ideas on the best way to fix this? do we have to add some sort of prefix that's after "R" to all the other languages? |
Beta Was this translation helpful? Give feedback.
-
My suspicion is that it will have to be fixed on their side. :-/ |
Beta Was this translation helpful? Give feedback.
-
👋🏻 Gave a longer explanation here: skypackjs/skypack-cdn#68, but the short version is that this is the data we get directly from npm (see the
I can‘t confirm it, but I agree that this seems to be the case. Of all the
I have no idea why, but https://www.npmjs.com/package/alpinejs shows English 🤷🏻 . We can fix it on Skypack’s end for all packages, but if you care about any other CDNs (e.g. Yarn) or other things talking to npm’s API, then yeah perhaps moving the non-English files into a This is the first time I’ve seen this so I wouldn‘t have predicted it either 😄 |
Beta Was this translation helpful? Give feedback.
-
that's probably because it explicitly reads the README.md |
Beta Was this translation helpful? Give feedback.
-
For what it's worth, I've had only positive experiences with NPM support so I bet they would be helpful here. |
Beta Was this translation helpful? Give feedback.
-
We could also npm-ignore those files so they don't get uploaded. |
Beta Was this translation helpful? Give feedback.
-
Oooh if npm ignore works, that's the cleanest. |
Beta Was this translation helpful? Give feedback.
-
Now it shows the Arabic version on Skypack, this threw me off as a first timer 😅 |
Beta Was this translation helpful? Give feedback.
-
Hey all, Fred from Skypack here. For some reason, npm's registry sends back different languages for alpinejs: http://registry.npmjs.org/alpinejs you can see Arabic in the "readme" section of the JSON object. I'll look into adding a one-off fix for our search catalog |
Beta Was this translation helpful? Give feedback.
-
@FredKSchott I believe it's a bug in npm to be fair. It seams like they send the first file they can find in the root starting with the word |
Beta Was this translation helpful? Give feedback.
-
Seems like the solution is this one (npmignore the non English READMEs) @FredKSchott #867 (comment) |
Beta Was this translation helpful? Give feedback.
-
Background: Skypack is an unpkg-like CDN from the Snowpack/Pika people.
For some reason, the entry for Alpine shows the German README instead of English: https://www.skypack.dev/view/alpinejs. Maybe it's getting bad info off of package.json or something on NPM?
Beta Was this translation helpful? Give feedback.
All reactions