feat: use prettier for i18n translations (#24623)

This commit is contained in:
Brandon Wees
2026-01-06 10:02:10 -05:00
committed by GitHub
parent 006d02cfaf
commit f52bd9f38a
9 changed files with 37 additions and 6 deletions

View File

@@ -7,6 +7,10 @@ describe('i18n', () => {
const languageFiles = readdirSync('../i18n').sort();
for (const filename of languageFiles) {
test(`${filename} should have a loader`, async () => {
if (!filename.endsWith('.json') || filename == 'package.json') {
return;
}
const code = filename.replaceAll('.json', '');
const item = langs.find((lang) => lang.weblateCode === code || lang.code === code);
expect(item, `${filename} has no loader`).toBeDefined();