adobe/brackets — pull request #1285 by jdiehl (2012-07-20 08:04:11+00:00)
Title: Added Language Switching

I noticed several people offering to do localization work. To help these people, I added a basic localization infrastructure to Brackets and an option to switch languages from the Debug menu.

Localizations are added to the strings folder using their ISO language and country names (en-US for American English). These localizations show up when initiating the switch language command. The language preference is stored in localStorage.

If things break (e.g., the language file is deleted after enabling it in Brackets), the user must manually reset the localStore (window.localStore.removeItem("language") ). This is no state that can occur under normal conditions but might happen as people play around with this.

All code is JSLinted.