Changing the way the translations are handled:

To make the Weblate integration simplier, this commit merge all
translations in yml files (there is no more distinction between
standards and settings strings)

This yml files will be handled by Weblate.

TODO: document the new translation process.
This commit is contained in:
John Livingston
2023-06-09 17:08:39 +02:00
parent df27e4ead1
commit 89a11cd3d6
23 changed files with 198 additions and 316 deletions

View File

@ -23,7 +23,7 @@ function loc (key: string): string {
}
async function loadLoc (): Promise<void> {
const filePath = resolve(__dirname, '..', '..', 'languages', 'settings.reference.json')
const filePath = resolve(__dirname, '..', '..', 'languages', 'en.reference.json')
if (!existsSync(filePath)) {
throw new Error(`File ${filePath} missing, can't load plugin settings`)
}