Skip to content

Commit

Permalink
Adding Georgian translation
Browse files Browse the repository at this point in the history
  • Loading branch information
EkaterinePapava committed Feb 24, 2025
1 parent c880c96 commit 48ba279
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/settings/Interface.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
{ value: 'pt-br', label: 'Português (Brasil)' },
{ value: 'ja', label: '日本語' },
{ value: 'tr', label: 'Türkçe' },
{ value: 'ka', label: 'ქართული' },
{ value: 'vi', label: 'Tiếng Việt' }
]}
/>
Expand Down
15 changes: 15 additions & 0 deletions tests/locales.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,19 @@ test.describe('Locales', () => {
);
});
});
test.describe('Georgian', () => {
test.use({ locale: 'ka-GE' });
test('default language is Georgian', async ({ page }) => {
await page.goto('/settings');
expect(await page.evaluate(() => navigator.language)).toBe('ka-GE');

await page.evaluate(() => window.localStorage.clear());
await page.reload();
await expect(page.getByText('Servers')).not.toBeVisible();
await expect(page.getByText('Serveurs')).toBeVisible();
expect(await page.evaluate(() => window.localStorage.getItem('hollama-settings'))).toContain(
'"userLanguage":"ka"'
);
});
});
});

0 comments on commit 48ba279

Please sign in to comment.