You want to make sure your user-facing text is user facing. Check out our i18n guidelines: https://edx-wiki.atlassian.net/wiki/display/ENG/I18n+coding+guidelines

for JS stuff you want to use "gettext"