aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-17 11:25:10 +0800
committerDan <danjm.com@gmail.com>2018-04-17 11:25:10 +0800
commit7b5d506cec7fe182f64e71772c7f17bf697f31d8 (patch)
tree4a3b757270d5689ed887ca2ea3cc368d4b12f4b1 /app/scripts/lib
parent128cb1af46224da9c0f5158107b6ac2da40b0622 (diff)
downloadtangerine-wallet-browser-7b5d506cec7fe182f64e71772c7f17bf697f31d8.tar
tangerine-wallet-browser-7b5d506cec7fe182f64e71772c7f17bf697f31d8.tar.gz
tangerine-wallet-browser-7b5d506cec7fe182f64e71772c7f17bf697f31d8.tar.bz2
tangerine-wallet-browser-7b5d506cec7fe182f64e71772c7f17bf697f31d8.tar.lz
tangerine-wallet-browser-7b5d506cec7fe182f64e71772c7f17bf697f31d8.tar.xz
tangerine-wallet-browser-7b5d506cec7fe182f64e71772c7f17bf697f31d8.tar.zst
tangerine-wallet-browser-7b5d506cec7fe182f64e71772c7f17bf697f31d8.zip
Document async function as returning a promise.
Diffstat (limited to 'app/scripts/lib')
-rw-r--r--app/scripts/lib/get-first-preferred-lang-code.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/get-first-preferred-lang-code.js b/app/scripts/lib/get-first-preferred-lang-code.js
index 78448ad43..5473fccf0 100644
--- a/app/scripts/lib/get-first-preferred-lang-code.js
+++ b/app/scripts/lib/get-first-preferred-lang-code.js
@@ -8,7 +8,7 @@ const existingLocaleCodes = allLocales.map(locale => locale.code.toLowerCase().r
* Returns a preferred language code, based on settings within the user's browser. If we have no translations for the
* users preferred locales, 'en' is returned.
*
- * @returns {string} A locale code, either one from the user's preferred list that we have a translation for, or 'en'
+ * @returns {Promise<string>} Promises a locale code, either one from the user's preferred list that we have a translation for, or 'en'
*
*/
async function getFirstPreferredLangCode () {