neojato/DeLorean-v2

Supporting multiple languages / localization

MrCsabaToth opened this issue · 3 comments

We'd want to provide localized version of our DevFest site. This will be crucial for us because this year we plan to support the large number of Spanish speaking minorities explicitly, and the front facing state for that is the conference website. (At some point Hoverboard v1 BTW provided support for that, using Polymer's capability, but was slashed due to people complaining about difficult setup).

Expected Behavior

The default resources would be separated from the source, and the additional locales would reside next to that. The build step would consume these versions and produce a site where it can be toggled somewhere.

Current Behavior

Right now it seems that the resources are not separated. As far as I see there's no localization foundation. I'm not skilled in Angular particularly to tell how easy it is to implement this whole ticket.

Possible Implementation

  1. Separate resources into a file.
  2. Tune the build system to consume that.
  3. Allow additional resources and provide toggle system.

Context (Environment)

We at least Spanish version besides English. At some point with Hoverboard v1 we had Hmong and Farsi localizations as well, which I produced by auto translation script using Google Translate API.

I have an implementation (https://robisim74.github.io/angular-l10n) using https://robisim74.github.io/angular-l10n but I'd need to separate it into a clean branch and also improve it further for a PR

See it working on https://valleydevfest.com

I have a PR in the pipeline but first I'd like the #31 to be reviewed and merged