Internationalization #1

Closed
opened 5 years ago by elegaanz · 1 comments
elegaanz commented 5 years ago (Migrated from github.com)
There is no content yet.
elegaanz commented 5 years ago (Migrated from github.com)

(I'm posting this here as a reminder for my future self)

The problem here is that Middleman uses a YAML file to store translations, which is not so standard, and probably not supported by Weblate.

So if we want to go with gettext, we should probably use this gem and configure Middleman to generate one directory per locale, with all the translated files.

I think it will be possible to use this Caddy module to do display the correct language depending on the visitor's language: https://caddyserver.com/docs/rewrite

(I'm posting this here as a reminder for my future self) The problem here is that Middleman uses a YAML file to store translations, which is not so standard, and probably not supported by Weblate. So if we want to go with gettext, we should probably use this [gem](https://github.com/ruby-gettext/gettext) and configure Middleman to generate one directory per locale, with all the translated files. I think it will be possible to use this Caddy module to do display the correct language depending on the visitor's language: https://caddyserver.com/docs/rewrite
Sign in to join this conversation.
Loading…
There is no content yet.