question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update download page URL to match selected languages

See original GitHub issue

Upgrading the library is difficult when we’ve selected extra languages in the download page, as there’s no good way of downloading the same bundle in the future.

Prism.js solves this by updating the URL to match the selected checkboxes, and embedding that URL in the resulting download as a comment. See https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript, which includes markup, css, clike, and javascript. Having such a feature on our downloads page would be really wonderful.

Similar to #1035

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tammersalehcommented, Mar 3, 2021

Just a quick further comment. I think after https://github.com/highlightjs/highlight.js/issues/1035, y’all added a cookie-based approach that saved the current checkboxes. That really doesn’t work when the cookies get deleted or the project is team-wide. Having a URL is much better, especially if it’s embedded in the downloadable in some way.

1reaction
joshgoebelcommented, Mar 3, 2021

Would you prefer having a cURL option?

Didn’t they answer that already: 😉

I’d probably use a curl-based approach if it existed, but it’d be a nice-to-have.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Localized Versions of your Pages | Google Search Central
Learn how you can use a sitemap and other methods to tell Google about all of the different language and regional versions of...
Read more >
Configuring URLs for multilingual websites
Open the Sites application. · Edit ( ) your site. · On the General tab, select your website's primary language in the Visitor...
Read more >
Choose the languages for a SharePoint site user interface
On the settings page, in the Site Administration section, click Language Settings. Note: If the Language settings link doesn't appear on the Site...
Read more >
Setting language preferences in a browser - W3C
Firefox. Open the browser settings and the Content tab. Under the Languages heading, choose your preferred language(s) by selecting the language ...
Read more >
Change the language and region on iPhone - Apple Support
Go to Settings > General > Language & Region. Set the following: The language for iPhone. Your preferred form of address. (Choose feminine,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found