aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfadelkon <fadelkon@posteo.net>2018-10-21 22:18:38 +0200
committerfadelkon <fadelkon@posteo.net>2018-10-21 22:18:38 +0200
commitec7b7ab49cfd831f581f94f102a1fc2d0be15550 (patch)
tree15eee5066ad4a26dd082df501d6234d93606e7ef /src
parent82cc37a55eaf32e88748133c77901905e29172f8 (diff)
Sort messages object by language code so that it's easier from the UI to browse them.
Diffstat (limited to 'src')
-rw-r--r--src/i18n/messages.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/i18n/messages.js b/src/i18n/messages.js
index ff7e1c98..4cd3c4e2 100644
--- a/src/i18n/messages.js
+++ b/src/i18n/messages.js
@@ -1,5 +1,6 @@
// When contributing, please sort JSON before committing so it would be easier to see what's missing and what's being added compared to English and other languages. It's not obligatory, but just an advice.
// To sort json use jq https://stedolan.github.io/jq and invoke it like `jq -S . xx.json > xx.sorted.json`, AFAIK, there's no inplace edit option like in sed
+// Also, when adding a new language to "messages" variable, please do it alphabetically by language code so that users can search or check their custom language easily.
// For anyone contributing to old huge messages.js and in need to quickly convert it to JSON
// sed command for converting currently formatted JS to JSON:
@@ -8,24 +9,24 @@
const messages = {
ar: require('./ar.json'),
+ ca: require('./ca.json'),
de: require('./de.json'),
- fi: require('./fi.json'),
en: require('./en.json'),
eo: require('./eo.json'),
+ es: require('./es.json'),
et: require('./et.json'),
- hu: require('./hu.json'),
- ro: require('./ro.json'),
- ja: require('./ja.json'),
+ fi: require('./fi.json'),
fr: require('./fr.json'),
+ he: require('./he.json'),
+ hu: require('./hu.json'),
it: require('./it.json'),
+ ja: require('./ja.json'),
+ nb: require('./nb.json'),
oc: require('./oc.json'),
pl: require('./pl.json'),
- es: require('./es.json'),
pt: require('./pt.json'),
- ru: require('./ru.json'),
- nb: require('./nb.json'),
- he: require('./he.json'),
- ca: require('./ca.json')
+ ro: require('./ro.json'),
+ ru: require('./ru.json')
}
export default messages