mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00: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:
parent
0de15121f2
commit
5e99f651ec
2 changed files with 3 additions and 13 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue