Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/src/i18n/messages.js b/src/i18n/messages.js
index a25e4b85b7..404a407979 100644
--- a/src/i18n/messages.js
+++ b/src/i18n/messages.js
@@ -1,38 +1,38 @@
// 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:
// sed -i -e "s/'//gm" -e 's/"/\\"/gm' -re 's/^( +)(.+?): ((.+?))?(,?)(\{?)$/\1"\2": "\4"/gm' -e 's/\"\{\"/{/g' -e 's/,"$/",/g' file.json
// There's only problem that apostrophe character ' gets replaced by \\ so you have to fix it manually, sorry.
const messages = {
ar: require('./ar.json'),
ca: require('./ca.json'),
cs: require('./cs.json'),
de: require('./de.json'),
en: require('./en.json'),
eo: require('./eo.json'),
es: require('./es.json'),
et: require('./et.json'),
fi: require('./fi.json'),
fr: require('./fr.json'),
ga: require('./ga.json'),
he: require('./he.json'),
hu: require('./hu.json'),
it: require('./it.json'),
- ja: {...require('./ja_pedantic.json'), ...require('./ja.json')},
- ja_pedantic: {...require('./ja.json'), ...require('./ja_pedantic.json')},
+ ja: require('./ja.json'),
+ ja_pedantic: require('./ja_pedantic.json'),
ko: require('./ko.json'),
nb: require('./nb.json'),
nl: require('./nl.json'),
oc: require('./oc.json'),
pl: require('./pl.json'),
pt: require('./pt.json'),
ro: require('./ro.json'),
ru: require('./ru.json'),
zh: require('./zh.json')
}
export default messages

File Metadata

Mime Type
text/x-diff
Expires
Sat, Oct 31, 1:52 AM (19 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1800874
Default Alt Text
(2 KB)

Event Timeline