Wire up i18n for the React frontend (#1962)

Co-authored-by: Quentin Gliech <quenting@element.io>
This commit is contained in:
Michael Telatynski
2023-10-19 13:41:38 +01:00
committed by GitHub
parent 7207ebdc63
commit af1a960c2f
47 changed files with 2176 additions and 167 deletions

View File

@@ -3,13 +3,26 @@
"readKey": "a7633943728394577700-c0f9f1df124fbdbe76b2c7dfcbfe574476d56509e0da6180e2a321dbbe056c40",
"upload": {
"type": "json",
"files": "translations/en.json",
"features": [
"arb_metadata",
"plural_object"
]
"files": [{
"file": "file.json",
"pattern": "translations/en.json",
"features": [
"arb_metadata",
"plural_object"
]
}, {
"file": "frontend.json",
"pattern": "frontend/locales/en.json",
"features": ["plural_postfix_dd"]
}]
},
"download": {
"files": "translations/${lang}.json"
"files": [{
"conditions": "equals: ${file}, file.json",
"output": "translations/${lang}.json"
}, {
"conditions": "equals: ${file}, frontend.json",
"output": "frontend/locales/${lang}.json"
}]
}
}
}