mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 17:24:56 +03:00
feat(web): add chinese (traditional), bislama and croatian to our supported languages (#10283)
* feat(web): add chinese (traditional), bislama and croatian to our supported languages * test: remove language tag tests as it doesn't really test the correctness of tags
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { langs } from '$lib/constants';
|
||||
import messages from '$lib/i18n/en.json';
|
||||
import { exec as execCallback } from 'node:child_process';
|
||||
import { promisify } from 'node:util';
|
||||
@@ -31,16 +30,4 @@ describe('i18n', () => {
|
||||
// Only translations directly using the store seem to get extracted
|
||||
expect({ ...extractedMessages, ...existingMessages }).toEqual(existingMessages);
|
||||
});
|
||||
|
||||
describe('language tags', () => {
|
||||
for (const lang of langs) {
|
||||
if (lang.code === 'dev') {
|
||||
continue;
|
||||
}
|
||||
|
||||
test(`language tag ${lang.code} is valid`, () => {
|
||||
expect(Intl.NumberFormat.supportedLocalesOf(lang.code)).toHaveLength(1);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user