forked from AkkomaGang/akkoma-fe
Merge branch 'sorted-messages' into 'develop'
Sort messages object See merge request pleroma/pleroma-fe!362
This commit is contained in:
commit
5f65520287
1 changed files with 10 additions and 9 deletions
|
@ -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.
|
// 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
|
// 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
|
// 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:
|
// sed command for converting currently formatted JS to JSON:
|
||||||
|
@ -8,24 +9,24 @@
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
ar: require('./ar.json'),
|
ar: require('./ar.json'),
|
||||||
|
ca: require('./ca.json'),
|
||||||
de: require('./de.json'),
|
de: require('./de.json'),
|
||||||
fi: require('./fi.json'),
|
|
||||||
en: require('./en.json'),
|
en: require('./en.json'),
|
||||||
eo: require('./eo.json'),
|
eo: require('./eo.json'),
|
||||||
|
es: require('./es.json'),
|
||||||
et: require('./et.json'),
|
et: require('./et.json'),
|
||||||
hu: require('./hu.json'),
|
fi: require('./fi.json'),
|
||||||
ro: require('./ro.json'),
|
|
||||||
ja: require('./ja.json'),
|
|
||||||
fr: require('./fr.json'),
|
fr: require('./fr.json'),
|
||||||
|
he: require('./he.json'),
|
||||||
|
hu: require('./hu.json'),
|
||||||
it: require('./it.json'),
|
it: require('./it.json'),
|
||||||
|
ja: require('./ja.json'),
|
||||||
|
nb: require('./nb.json'),
|
||||||
oc: require('./oc.json'),
|
oc: require('./oc.json'),
|
||||||
pl: require('./pl.json'),
|
pl: require('./pl.json'),
|
||||||
es: require('./es.json'),
|
|
||||||
pt: require('./pt.json'),
|
pt: require('./pt.json'),
|
||||||
ru: require('./ru.json'),
|
ro: require('./ro.json'),
|
||||||
nb: require('./nb.json'),
|
ru: require('./ru.json')
|
||||||
he: require('./he.json'),
|
|
||||||
ca: require('./ca.json')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default messages
|
export default messages
|
||||||
|
|
Loading…
Reference in a new issue