fix: Remove unused localization keys (#2432)
This commit is contained in:
committed by
dermotduffy
parent
a1202e8b8f
commit
31f13f40cf
@@ -115,7 +115,7 @@ describe('loadLanguages', () => {
|
||||
|
||||
await loadLanguages(hass);
|
||||
|
||||
expect(localize('common.live')).toBe('En directe');
|
||||
expect(localize('common.no_media')).toBe('No hi ha suport per mostrar');
|
||||
});
|
||||
|
||||
it('should load and use German translations', async () => {
|
||||
@@ -135,7 +135,7 @@ describe('loadLanguages', () => {
|
||||
|
||||
await loadLanguages(hass);
|
||||
|
||||
expect(localize('common.live')).toBe('En direct');
|
||||
expect(localize('common.no_media')).toBe('Aucun média à afficher');
|
||||
});
|
||||
|
||||
it('should load and use Italian translations', async () => {
|
||||
@@ -167,7 +167,7 @@ describe('loadLanguages', () => {
|
||||
|
||||
await loadLanguages(hass);
|
||||
|
||||
expect(localize('common.live')).toBe('Ao Vivo');
|
||||
expect(localize('common.no_media')).toBe('Sem média');
|
||||
});
|
||||
|
||||
it('should load and use Brazilian Portuguese translations', async () => {
|
||||
@@ -178,7 +178,7 @@ describe('loadLanguages', () => {
|
||||
|
||||
await loadLanguages(hass);
|
||||
|
||||
expect(localize('common.live')).toBe('Ao Vivo');
|
||||
expect(localize('common.no_media')).toBe('Nenhuma mídia para exibir');
|
||||
});
|
||||
|
||||
it('should fall back to English for unsupported language', async () => {
|
||||
@@ -225,9 +225,9 @@ describe('localize', () => {
|
||||
hass.language = 'de';
|
||||
await loadLanguages(hass);
|
||||
|
||||
// 'common.dismiss' exists only in English, so the German lookup throws and
|
||||
// falls back to English.
|
||||
expect(localize('common.dismiss')).toBe('Dismiss');
|
||||
// 'common.no_media' exists only in English, so the German lookup throws
|
||||
// and falls back to English.
|
||||
expect(localize('common.no_media')).toBe('No media to display');
|
||||
});
|
||||
|
||||
it('should perform search and replace', async () => {
|
||||
|
||||
Reference in New Issue
Block a user