You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.
The current translation is simple and enough, but an improvement doesn't stop it from being perfect. Arabic has suffix/prefix which changes depending on the number.
English: 3 hours ago
Arabic: منذ 3 ساعات مضت
The prefix after the number depends on the number if it's 1, 2, or bigger than 10 or small than 10. The following, let's say, simple code is a way that you can improve the Arabic translation.
// The following applies only if the time is countable, which means that it's not a date, but time offset (3 hours ago, 24 minutes ago, etc)
We will call this countable time as $time. If the time is just now, you can use the current translation which is "منذ بضعة دقائق" which means a few minutes ago or "منذ قليل" which means "before/just now/a few moments ago"
We will call the type of time $type, this type will hold the info that the time is hours or minutes or seconds.
The current translation is simple and enough, but an improvement doesn't stop it from being perfect. Arabic has suffix/prefix which changes depending on the number.
English: 3 hours ago
Arabic: منذ 3 ساعات مضت
The prefix after the number depends on the number if it's 1, 2, or bigger than 10 or small than 10. The following, let's say, simple code is a way that you can improve the Arabic translation.
// The following applies only if the time is countable, which means that it's not a date, but time offset (3 hours ago, 24 minutes ago, etc)
We will call this countable time as
$time
. If the time is just now, you can use the current translation which is "منذ بضعة دقائق" which means a few minutes ago or "منذ قليل" which means "before/just now/a few moments ago"We will call the type of time
$type
, this type will hold the info that the time is hours or minutes or seconds.Feel free to apply this small improvement. The current translation has only a grammatical issue, other than that, it's usable.
The text was updated successfully, but these errors were encountered: