Re: Internationalization on the new site
Florent Daigniere <[email protected]>
| Newsgroups | gmane.network.freenet.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2016-10-14 at 20:19 +0000, Ian Clarke wrote: > I posted a question to Reddit about how we can internationalize a > Github Pages > site, there are a few answers already: > https://www.reddit.com/r/github/comments/57gjpj/what_are_bestpractices > _for_localization_of_a/ > Thoughts? > You've had our thoughts already; either: - use the static-generator to produce different versions of the content (what we're doing at the moment)... but since there's no content- negotiation it won't work as well as it used to... - use a javascript library (we suggested https://pontoon.mozilla.org/ ; on reddit they suggested http://i18next.com/ ) In any case the result is inferior to the current solution. It will: - require user-interaction (and an ugly UX element) to switch language (for those without JS) - require JS if you want to guesstimate what the user wants (but that will always be slower since you'll have to make the determination before loading the content and/or load it twice) - require cookies/local storage if the choice is to be persisted across sessions Florent _______________________________________________ Devl mailing list [email protected] https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
signature.asc
(application/pgp-signature, 455 B)
-----BEGIN PGP SIGNATURE----- iQEcBAABCAAGBQJYAcNYAAoJEOrF6/B6qcKjBOoH/3W1CDfWpYa5vF92vvCZjaWJ Zrwgr4IMp6bCwBIi735ee5RnOJk74FUgt/MTRu/CGsnOzpXzFm78gv2CH1CeFUtC vu8hMhkjqA2Gx9SUfUJvAhUwH+sQ7lvkI0gJywhKeNk9375TDQx8rTp9vohbJpy0 vy9jYWZ0OjPaIYT3L5yxVDzKMd/nFImc7Q0DDENLUDiVdJk58RRSCNZffnUHptFd pxOVZUSRxgZAbw41Bo7Bd/vBX9VUqCr0DPLk4o+Q1g6DM2RZafBiqJ2+d19ndDXM wWTiWkehht1PYjvcJtvIzAg8FxEy6TIP83vk1TNix82bSedXPEKJtLHSJxrjCis= =zgmx -----END PGP SIGNATURE-----