yandere_fe/src/i18n/messages.js

37 lines
1.6 KiB
JavaScript
Raw Normal View History

2018-09-09 08:54:23 -07:00
// 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.
2018-09-09 08:54:23 -07:00
// For anyone contributing to old huge messages.js and in need to quickly convert it to JSON
2018-09-06 09:39:56 -07:00
// 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
2018-09-09 08:54:23 -07:00
// There's only problem that apostrophe character ' gets replaced by \\ so you have to fix it manually, sorry.
2017-11-10 20:21:49 -08:00
2017-11-07 06:14:37 -08:00
const messages = {
2018-10-21 01:51:22 -07:00
ar: require('./ar.json'),
ca: require('./ca.json'),
2018-09-09 08:54:23 -07:00
de: require('./de.json'),
en: require('./en.json'),
2018-09-09 08:54:23 -07:00
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.json'),
2019-01-09 21:56:05 -08:00
ko: require('./ko.json'),
nb: require('./nb.json'),
2019-01-27 10:44:17 -08:00
nl: require('./nl.json'),
2018-09-09 08:54:23 -07:00
oc: require('./oc.json'),
pl: require('./pl.json'),
2018-09-09 08:54:23 -07:00
pt: require('./pt.json'),
ro: require('./ro.json'),
2018-11-08 21:42:32 -08:00
ru: require('./ru.json'),
2018-11-08 22:15:55 -08:00
zh: require('./zh.json')
2017-11-07 06:14:37 -08:00
}
export default messages