mirror of
https://github.com/immich-app/immich.git
synced 2026-03-02 02:28:50 +03:00
feat: use prettier for i18n translations (#24623)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user