Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

EkaterinePapava
Copy link

No description provided.

Copy link
Owner

@fmaclen fmaclen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this translation.
Before we roll this out we need to make a few more changes:

@fmaclen
Copy link
Owner

fmaclen commented Feb 24, 2025

Also, make sure to run npm run format and then npm run lint to make sure the linter requirements are satisfied.

@fmaclen fmaclen changed the title Adding Georgian translation feat add Georgian translation Feb 24, 2025
@fmaclen fmaclen changed the title feat add Georgian translation feat: add Georgian translation Feb 24, 2025
@EkaterinePapava
Copy link
Author

Made both changes, also ran both commands, both seems to be satisfied

Copy link
Owner

@fmaclen fmaclen left a 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.

@@ -0,0 +1,163 @@
import type { BaseTranslation } from '../i18n-types';

const en = {
Copy link
Owner

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment on lines +131 to +135
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');
Copy link
Owner

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?

Copy link
Author

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.

await page.evaluate(() => window.localStorage.clear());
await page.reload();
await expect(page.getByText('Servers')).not.toBeVisible();
await expect(page.getByText('Serveurs')).toBeVisible();
Copy link
Owner

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks better now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants