-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Georgian translation #272
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, make sure to run |
Made both changes, also ran both commands, both seems to be satisfied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran the auto-formatter because there were still issues with the linter.
But at the moment the test isn't passing, check my comments below.
src/i18n/ka/index.ts
Outdated
@@ -0,0 +1,163 @@ | |||
import type { BaseTranslation } from '../i18n-types'; | |||
|
|||
const en = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be const ka
. Also update the default export below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is not passing, I'm guessing it's related to the ISO code for the language but I'm not sure.
Can you double check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ISO code for Georgian is ka-GE.
tests/locales.test.ts
Outdated
await page.evaluate(() => window.localStorage.clear()); | ||
await page.reload(); | ||
await expect(page.getByText('Servers')).not.toBeVisible(); | ||
await expect(page.getByText('Serveurs')).toBeVisible(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assertion is in French, should be in Georgian.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better now?
No description provided.