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: Persian translations #29580

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CodeWithEmad
Copy link
Contributor

No description provided.

Copy link

request-info bot commented Jul 12, 2024

We would appreciate it if you could provide us with more info about this issue/pr! Please do not leave the title or description empty.

@request-info request-info bot added the need:more-info Requires more information from author label Jul 12, 2024
@github-actions github-actions bot added i18n Namespace | Anything related to localization packages labels Jul 12, 2024
Copy link

codecov bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.39%. Comparing base (76d897e) to head (6bc55cf).
Report is 463 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #29580      +/-   ##
==========================================
+ Coverage   60.48%   70.39%   +9.90%     
==========================================
  Files        1931     1970      +39     
  Lines       76236    78640    +2404     
  Branches     8568     8974     +406     
==========================================
+ Hits        46114    55360    +9246     
+ Misses      28017    21078    -6939     
- Partials     2105     2202      +97     
Flag Coverage Δ
hive 49.12% <100.00%> (-0.04%) ⬇️
javascript 58.05% <ø> (+0.34%) ⬆️
mysql 76.99% <100.00%> (?)
postgres 77.07% <100.00%> (?)
presto 53.70% <100.00%> (-0.11%) ⬇️
python 83.74% <100.00%> (+20.25%) ⬆️
sqlite 76.55% <100.00%> (?)
unit 59.86% <100.00%> (+2.24%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rusackas
Copy link
Member

You can install and run the pre-commit hook to fix the linting errors. The SQLite test failure is probably unrelated.

@rusackas

This comment was marked as resolved.

This comment was marked as outdated.

@CodeWithEmad
Copy link
Contributor Author

Fixed. I checked the test env (which is such a cool command!) but haven't seen the flags. in login. maybe I should add it somewhere else?

@rusackas
Copy link
Member

Oh... turning on the test language file in config.py should work for this ephemeral environment testing (or local testing, I believe)

@@ -370,6 +370,7 @@ def _try_json_readsha(filepath: str, length: int) -> str | None:
"en": {"flag": "us", "name": "English"},
"es": {"flag": "es", "name": "Spanish"},
"it": {"flag": "it", "name": "Italian"},
"fa": {"flag": "ir", "name": "Persian"},
Copy link
Member

Choose a reason for hiding this comment

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

It's good to add this here, but line 389 below disables this whole block. For testing purposes, you can add a few languages there and they should show up on the ephemeral/test environments on this PR.

Sorry I haven't had time to build/test this locally yet... I'm still hoping to.

Copy link
Contributor Author

@CodeWithEmad CodeWithEmad Jul 17, 2024

Choose a reason for hiding this comment

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

Done. You're right, I didn't check other lines.

Don't even mention it. Thanks for helping me out.

@rusackas
Copy link
Member

/testenv up

Copy link
Contributor

@rusackas Ephemeral environment spinning up at http://34.220.159.126:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@CodeWithEmad
Copy link
Contributor Author

OMG. I'm so so sorry. It's working fine in the test env. There must be something wrong with my local setup. I'll close the issue, but keep this PR as a draft so I can add translations in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n Namespace | Anything related to localization need:more-info Requires more information from author packages review:draft size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants