stencil-site icon indicating copy to clipboard operation
stencil-site copied to clipboard

Add i18n documentation

Open alexgagnon opened this issue 3 years ago • 2 comments

Prerequisites

Describe the Feature Request

Hi, I've been looking at adopting Stencil to create primitives for our design system, but I'm struggling to find information on best-practices for i18n (a must for our system). I notice LitElement just shipped an officially supported i18n package (https://lit.dev/docs/localization/overview/), is there something similar in the works for Stencil? Or if there's already a solution in place, would it be possible to put some documentation under Guides?

Describe the Use Case

Be able to ship i18n-ready components

Describe Preferred Solution

Something officially supported by the StencilJS team, or at least a document with best-practices

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

alexgagnon avatar Nov 19 '21 16:11 alexgagnon

At work, we are using Polyglot.

But I referenced the libs, I saw in most exemples in articles.

I'll write an exemple here and provide a PR for the documentation to help newcomers.

dmartinjs avatar Nov 22 '21 09:11 dmartinjs

I'm going to move this to the Stencil Site repo, actually! This can be documented best there.

splitinfinities avatar Dec 02 '21 23:12 splitinfinities