mozilla / idea-town-meta

idea town parent repo with master dockerfile wut wut
3 stars 1 forks source link

Localization #8

Open nchapman opened 9 years ago

nchapman commented 9 years ago

There are probably many different patterns internally for how we can do localization. Let's discuss how we want to do this in Idea Town.

nchapman commented 9 years ago

Here are some pointers to how Firefox Accounts is doing it:

Here is the imitable fxa-content-server repo:

https://github.com/mozilla/fxa-content-server

Here is the repo with the actual localization strings:

https://github.com/mozilla/fxa-content-server-l10n

These are included with bower:

https://github.com/mozilla/fxa-content-server/blob/master/bower.json#L11

Here are some l10n-* tasks:

https://github.com/mozilla/fxa-content-server/tree/master/grunttasks

nchapman commented 9 years ago

Here's an example from Find My Device which is based on FxA but is slightly simpler:

Find My Device front-end

https://github.com/mozilla-services/FindMyDevice/tree/dev/static

Here are notes about localization from the README:

https://github.com/mozilla-services/FindMyDevice/tree/dev/static#localization

Here's the repo with the strings:

https://github.com/mozilla-services/FindMyDevice-l10n

The server actually serves the correct strings as a json file:

https://github.com/mozilla-services/FindMyDevice/blob/b0d51231e52047bb028432b0e8473a90fcdfcd4e/main.go#L204

pdehaan commented 9 years ago

https://github.com/l20n/l20n.js looks pretty interesting, and is developed by us (see http://l20n.org/). Devs were also pretty responsive on #l20n IRC channel when I was asking questions.