spike icon indicating copy to clipboard operation
spike copied to clipboard

i18n plugin!

Open jescalan opened this issue 7 years ago • 3 comments

Multi-language sites are a thing, and we should have a recommended way to support them.

jescalan avatar Dec 01 '16 15:12 jescalan

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

jescalan avatar Aug 03 '17 14:08 jescalan

Is there an example where I could checkout the implementation of the multi option?

ghost avatar Sep 26 '17 08:09 ghost

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.

jescalan avatar Sep 26 '17 15:09 jescalan