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

Fix Persian translation for before and after #2941

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Carbon/Lang/fa.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
's' => ':count ثانیه',
'ago' => ':time پیش',
'from_now' => ':time دیگر',
'after' => ':time پس از',
'before' => ':time پیش از',
'after' => ':time بعد',
'before' => ':time قبل',
'diff_now' => 'اکنون',
'diff_today' => 'امروز',
'diff_today_regexp' => 'امروز(?:\\s+ساعت)?',
Expand Down
8 changes: 4 additions & 4 deletions tests/Localization/FaAfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,19 @@ class FaAfTest extends LocalizationTestCase

// Carbon::now()->addSecond()->diffForHumans(Carbon::now())
// '1 second after',
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), false, true)
// '1s after',
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond())
// '1 second before',
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond(), false, true)
// '1s before',
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), true)
// '1 second',
Expand Down
8 changes: 4 additions & 4 deletions tests/Localization/FaIrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,19 @@ class FaIrTest extends LocalizationTestCase

// Carbon::now()->addSecond()->diffForHumans(Carbon::now())
// '1 second after',
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), false, true)
// '1s after',
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond())
// '1 second before',
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond(), false, true)
// '1s before',
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), true)
// '1 second',
Expand Down
8 changes: 4 additions & 4 deletions tests/Localization/FaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,19 @@ class FaTest extends LocalizationTestCase

// Carbon::now()->addSecond()->diffForHumans(Carbon::now())
// '1 second after',
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), false, true)
// '1s after',
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond())
// '1 second before',
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond(), false, true)
// '1s before',
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), true)
// '1 second',
Expand Down
8 changes: 4 additions & 4 deletions tests/Localization/MznTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,19 @@ class MznTest extends LocalizationTestCase

// Carbon::now()->addSecond()->diffForHumans(Carbon::now())
// '1 second after',
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), false, true)
// '1s after',
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond())
// '1 second before',
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond(), false, true)
// '1s before',
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), true)
// '1 second',
Expand Down
8 changes: 4 additions & 4 deletions tests/Localization/UzArabTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,19 @@ class UzArabTest extends LocalizationTestCase

// Carbon::now()->addSecond()->diffForHumans(Carbon::now())
// '1 second after'
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), false, true)
// '1s after'
'1 ثانیه پس از',
'1 ثانیه بعد',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond())
// '1 second before'
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->diffForHumans(Carbon::now()->addSecond(), false, true)
// '1s before'
'1 ثانیه پیش از',
'1 ثانیه قبل',

// Carbon::now()->addSecond()->diffForHumans(Carbon::now(), true)
// '1 second'
Expand Down
Loading