mozilla / mozilla-presentation-templates

DEPRECATED
141 stars 121 forks source link

Support multilingual slides #12

Closed nth10sd closed 9 years ago

nth10sd commented 9 years ago

I have added support for multilingual slides. By choosing the desired language option, the slides that have content within the respective language class names (e.g. "en-US" and "zh-TW") will switch between them.

The language change is persistent across slides, and in Firefox, the URL bar will update the lang attribute as well.

In this pull request, only the 2nd and 3rd (shout slide) slides have multilingual content as an example.

Credits to :MattN for greatly helping me out throughout.

nth10sd commented 9 years ago

Rev a032ef3 is needed to allow the updating of the URL bar.

Ms2ger commented 9 years ago

Why classes rather than lang?