Laravel localization in Hebrew עברית
Everything you need to ship Hebrew in a Laravel app: the right locale codes,
the exact plural forms trans_choice() expects,
real localized Carbon output and Hebrew-script considerations.
Every value on this page was generated by running ICU, CLDR and Carbon — not copied from another article.
ISO 639-1
he
Script / Direction
Hebrew · RTL
Plural forms (Laravel)
2
Text vs English
Contracts
Locale codes
Set the base locale in config/app.php. For regional variants,
Hebrew commonly uses:
he_IL
// config/app.php
'locale' => 'he',
'fallback_locale' => 'en',
// Or switch at runtime
App::setLocale('he');
Plural rules: what Hebrew actually needs
CLDR defines 3 cardinal categories for Hebrew. The sample numbers below were computed by ICU for this exact locale:
| CLDR category | Numbers that select it |
|---|---|
| one | 1 |
| two | 2 |
| other | 0, 3–130, 200, 1000, 1000000, 1.5 |
Laravel's trans_choice() maps numbers to
2 pipe-separated
forms for this locale:
| Form index | Numbers that select it |
|---|---|
| 0 | 1 |
| 1 | 0, 2–130, 200, 1000 |
// lang/he/messages.php
'items' => ':count item|:count items'
// Usage
trans_choice('messages.items', $count, ['count' => $count]);
Try any number live in the pluralization tester.
Localized dates with Carbon
Real output for Hebrew (he locale),
generated by Carbon for March 21, 2026:
$date = now()->locale('he');
$date->translatedFormat('l, j F Y');
// "שבת, 21 מרץ 2026"
$date->isoFormat('LLLL');
// "שבת, 21 במרץ 2026 14:30"
$date->isoFormat('L');
// "21/03/2026"
$date->subDays(3)->diffForHumans();
// "לפני 3 חודשים"
What to watch out for in Hebrew
- Right-to-left script: mirror layouts and set dir="rtl"; numbers and Latin fragments remain left-to-right (bidi).
- Gender pervades the grammar, including second-person verbs, so "you"-form strings may need masculine/feminine variants.
- Everyday text is written without vowel points (niqqud).
- CLDR defines one/two/many/other plural categories for Hebrew.
-
Right-to-left script: set
dir="rtl"on the<html>element and use CSS logical properties (or Tailwind's rtl: variant) instead of left/right.
Framework strings already translated
Laravel's own validation, auth and pagination strings are maintained in Hebrew by the open-source Laravel-Lang project (MIT). Install them, then manage your app's own strings live:
composer require laravel-lang/common --dev
php artisan lang:add he
php artisan lang:update
Translate your app into Hebrew today
Import your lang files, translate every key into Hebrew with one AI click, and publish changes live — no deploy. Set up in 5 minutes.