aboutsummaryrefslogtreecommitdiffstats
path: root/development
diff options
context:
space:
mode:
authorVincent <Bunjin@users.noreply.github.com>2018-10-09 22:47:38 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-10-09 22:47:38 +0800
commitcd91b45686864c5d38fc95e3a561ca66b36ade7c (patch)
tree45e3719ef89ae3684551f5aae0fc31cdba58f82c /development
parentebdefe81a10595bb3341afa2ab0851c8269c19d8 (diff)
downloadtangerine-wallet-browser-cd91b45686864c5d38fc95e3a561ca66b36ade7c.tar
tangerine-wallet-browser-cd91b45686864c5d38fc95e3a561ca66b36ade7c.tar.gz
tangerine-wallet-browser-cd91b45686864c5d38fc95e3a561ca66b36ade7c.tar.bz2
tangerine-wallet-browser-cd91b45686864c5d38fc95e3a561ca66b36ade7c.tar.lz
tangerine-wallet-browser-cd91b45686864c5d38fc95e3a561ca66b36ade7c.tar.xz
tangerine-wallet-browser-cd91b45686864c5d38fc95e3a561ca66b36ade7c.tar.zst
tangerine-wallet-browser-cd91b45686864c5d38fc95e3a561ca66b36ade7c.zip
100% French locale, reordering of English locale, fixes #5457 (#5470)
* french locales: fix typos and improve wording * french locales: more fixes and rewording * fixed typo * fixed typo * added missing translations * fixed alphabetical order * fixed alphabetical order * added missing translations for FR * fixed verify-locale-strings.js * fixed indentation * fixed indentation * updated french locale * updated changelog with changes logs * a few fixes after receiving comments, mostly Caps removing and adding
Diffstat (limited to 'development')
-rw-r--r--development/verify-locale-strings.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/development/verify-locale-strings.js b/development/verify-locale-strings.js
index 0eef2b35d..0f408ea39 100644
--- a/development/verify-locale-strings.js
+++ b/development/verify-locale-strings.js
@@ -20,7 +20,7 @@ const specifiedLocale = process.argv[2]
if (specifiedLocale) {
console.log(`Verifying selected locale "${specifiedLocale}":\n\n`)
const locale = localeIndex.find(localeMeta => localeMeta.code === specifiedLocale)
- verifyLocale({ locale })
+ verifyLocale(locale)
} else {
console.log('Verifying all locales:\n\n')
localeIndex.forEach(localeMeta => {
@@ -30,11 +30,10 @@ if (specifiedLocale) {
}
-function verifyLocale ({ localeMeta }) {
+function verifyLocale (localeMeta) {
const localeCode = localeMeta.code
const localeName = localeMeta.name
let targetLocale, englishLocale
-
try {
const localeFilePath = path.join(process.cwd(), 'app', '_locales', localeCode, 'messages.json')
targetLocale = JSON.parse(fs.readFileSync(localeFilePath, 'utf8'))