Why don't you use `var currentLocale = locale || brackets.getLocale();`?