opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
22 stars 0 forks source link

show good and bad example for server side usage in docs #152

Closed samuelstroschein closed 2 weeks ago

samuelstroschein commented 3 weeks ago

Context

https://www.reddit.com/r/sveltejs/comments/1dbx0ps/comment/l7v18d2/?utm_source=share&utm_medium= web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

That document illustrates a solution, but it could use more clarification on what problem it solves. Specifically, an example showing the "bad approach" would go a long way here to help the reader determine whether they themselves are suffering from this problem.

Proposal

Show a good and bad example like https://eslint.org/docs/latest/rules/no-debugger#rule-details for on https://inlang.com/m/dxnzrydw/paraglide-sveltekit-i18n/serverside-usage

NilsJacobsen commented 3 weeks ago

That makes sense 👍 @loris.sigrist do you take care of that? Do we need graphics for that or is it just a code example?

LorisSigrist commented 3 weeks ago

@nils.jacobsen Just a code example, there already is a PR, although I'm not yet happy with the wording