-
-
Notifications
You must be signed in to change notification settings - Fork 565
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(i18n): Add Persian translation #2535
Conversation
Run & review this pull request in StackBlitz Codeflow. |
✅ Deploy Preview for elk-docs canceled.
|
✅ Deploy Preview for elk-zone ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@mehr32 check https://github.com/elk-zone/elk/blob/main/CONTRIBUTING.md#adding-a-new-language Check also https://github.com/elk-zone/elk/blob/main/CONTRIBUTING.md#named-interpolation if you need some custom plurals. EDIT: check |
The docs not working and so we cannot check missing/outdated entries, here transaltion status from the json file ( fa-IR translation status"missing": [
"compose.draft_title",
"compose.drafts",
"report.limiting",
"report.mute_desc",
"report.other",
"report.other_desc",
"report.reporting",
"report.select_many",
"report.select_one",
"report.select_posts",
"report.select_posts_other",
"report.spam",
"report.spam_desc",
"report.submit",
"report.unfollow_desc",
"report.violation",
"report.whats_wrong_account",
"report.whats_wrong_post",
"search.search_desc",
"search.search_empty"
],
"outdated": [
"menu.open_in_original_site_2",
"report.report.limiting",
"report.report.mute_desc",
"report.report.other",
"report.report.other_desc",
"report.report.reporting",
"report.report.select_many",
"report.report.select_one",
"report.report.select_posts",
"report.report.select_posts_other",
"report.report.spam",
"report.report.spam_desc",
"report.report.submit",
"report.report.unfollow_desc",
"report.report.violation",
"report.report.whats_wrong_account",
"report.report.whats_wrong_post",
"report.search.search_desc",
"report.search.search_empty"
], You also need to review lines 249 and 250, it seems you've duplicated entries with same translation: EDIT: review also the plurals entries, I just copy/paste it from |
locales/fa-IR.json
Outdated
"profile_description": "توضیحات بالای صفحه پروفایل {0}", | ||
"profile_personal_note": "یادداشت شخصی", | ||
"profile_unavailable": "پروفایل در دسترس نیست", | ||
"reject": "رد درخواست دنبال کردن", |
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.
isn't رد درخواست enough for this case?
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.
Why, I'll fix it
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.
it's just shorter and smoother.
locales/fa-IR.json
Outdated
}, | ||
"error": { | ||
"account_not_found": "حساب {0} یافت نشد", | ||
"explore_list_empty": "هیچ چیز داغی الآن وجود ندارد. بعداً بررسی کنید!", |
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.
instead of داغ can we have تازه ?
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 don't think there is a problem. It looks smoother
locales/fa-IR.json
Outdated
"title": "ناوبری" | ||
} | ||
}, | ||
"sequence_then": "سپس" |
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.
why سپس ?
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 think در ادامه دنباله is a better translation
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.
exactly
locales/fa-IR.json
Outdated
"dialog_header": "میانبرهای صفحهکلید", | ||
"groups": { | ||
"actions": { | ||
"boost": "بوست", |
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.
isn't بوست english?
any other alternative? but it's ok after all.
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.
He is not, this is not correct in Farsi. A better translation is تقویت
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.
Thank you so much, feel free to work on the issues, I just tried reviewing your amazing PR! Thank you.
I think تقویت means strengthening more! but let's go with it.
@userquin |
@mehr32 there is no problem, you should remove the |
I reviewed the translation. Well, I don't know which ones are not used! I have considered the English Jason file as the base and translated it based on its values One fact is that Elk does not have a good translation structure at all, you have to accept this! Why not use .po and .mo files? Why don't you make it simple to distinguish the translation file from changing the config file in a few lines of code? |
I want to see why the app name is the same as "نام نرمافزار" in the preview? This is really bad, let me fix it |
do you have any ref/doc? we're using nuxt i18n module, I've no idea if supporting those formats. |
What do you mean? |
In the corner of the screen, instead of Elk, the value of "نام نرمفزار" was displayed, which means the "name of the app" |
i18n does not support .po or .mo directly, but it seems to be possible to implement it with gettext-parser in JavaScript and converting the file to an object. In general, I work with Python and do not know much |
I think the correct translation has been used now. How can I have a preview? |
Go to home, and click on update button (when new version ready) |
@mehr32 you should open PR preview in private browsing, this way when closing the window pwa resources will be automatically removed, between commits you can just close the private browsing window and reopen a new one, you'll get a fresh copy with a new fresh service worker (browser caches empty) |
@mehr32 (not related directly with this PR) check LTR/RTL content support here #2545 and https://main.elk.zone (check #2541) |
Hello, Farsi translation for elk with the help of friends:
@DrCode32
@sadraiiali