Closed jhildenbiddle closed 5 years ago
Hey @jperasmus!
Figured I'd take a crack at the i18n/l10n stuff. The implementation here mimics the one used by docsify's full text search plugin which seemed like the easiest approach since many folks will be accustomed do it.
There area a few style changes to better align with theme styles and fix IE issues (the current version doesn't show "Copied!" in IE).
The demo sites just makes testing easier and provides a clean example of how to do localization using directories and the new plugin options.
Other changes are self-explanatory.
Let me know what you think. If all is well we can merge and publish.
Thanks!
Awesome, happy for this to be merged 👏
Merged!
Do you mind handling the version bump to 2.1.0 and publishing the update to npm? If not I can give it a shot. I only ask because I'm not sure if I have the correct permissions since I haven't published this package previously.
No problem, I'll get it released quick.
Done, v2.1.0 is available on NPM now. Thanks again for tackling this one. Looks like you had fun with it.
Thank you, @jperasmus. Always a pleasure.
From CHANGELOG.md
copyCode
options (#13)Other:
dev
task to npm scriptscontributors
prop to package.jsonTo test:
npm run dev
docsify-copy-code
buttons for each local