spike
spike copied to clipboard
i18n plugin!
Multi-language sites are a thing, and we should have a recommended way to support them.
Ok so this is ready to be implemented, and can be used already through the multi
option being passed to htmlStandards
. I still will probably build a plugin to make the interface smoother, but if this is blocking anyone, it can be solved immediately with this feature:
https://github.com/reshape/loader#producing-multiple-outputs-from-a-single-file
Is there an example where I could checkout the implementation of the multi option?
Sure! These three are the ones currently in the wild, in production:
- https://github.com/reshape/loader/blob/master/test/index.js#L118
- https://github.com/static-dev/spike-datocms/blob/master/lib/index.js#L50 https://github.com/static-dev/spike-contentful/blob/master/lib/index.js#L58
In addition, of course, to the example provided above in the link to the docs.