laravel-lang/native-currency-names
Provides native-language currency names for Laravel apps. Includes localized currency name data you can use in UI, formatting, and locale-aware displays. Easy Composer install with docs from the Laravel Lang ecosystem.
__() helper, language files, and service providers). No architectural deviations required; integrates seamlessly into existing AppServiceProvider or custom language providers.LaravelLang\NativeCurrencyNames and lang/vendor/native-currency-names, preventing conflicts with custom or third-party translations.laravel-lang/native-currency-names releases).config('app.locale')).ja_JP, hi_IN, de_DE)? Validate coverage against supported locales.USD or symbol $).dir="rtl").tideways/xhprof to confirm no latency.lang/vendor/native-currency-names/{locale}.json.LaravelLang\NativeCurrencyNames\ServiceProvider.@lang directives or __('native-currency-names::currency.USD').File::get() or a custom service provider.json_decode(file_get_contents(__DIR__.'/vendor/native-currency-names/ja_JP.json'), true)).currency_code) in DB tables, then fetch names via __('native-currency-names::currency.' . $row->currency_code).ja_JP → JPY, hi_IN → INR).composer require laravel-lang/native-currency-names
php artisan lang:publish --provider="LaravelLang\NativeCurrencyNames\ServiceProvider"
@lang('native-currency-names::currency.' . $currencyCode)
$currencyName = __('native-currency-names::currency.' . $currencyCode);
return response()->json([
'amount' => $amount,
'currency_name' => __('native-currency-names::currency.' . $currencyCode),
]);
¥ + 円 for JPY in ja_JP).د.إ for AED).| Component | Compatibility | Notes |
|---|---|---|
| Laravel Version | 11–13 (explicit), 10 (may require adjustments) | Check config/app.php for LaravelLang\NativeCurrencyNames\ServiceProvider. |
| PHP Version | 8.0+ (Laravel 11+ requirement) | No PHP-specific risks. |
| Database | None (stateless) | Works with any DB (MySQL, PostgreSQL, SQLite). |
| Caching | Laravel’s default cache (e.g., file, redis) |
No custom cache keys needed. |
| Frontend Frameworks | Blade, Inertia, Livewire, or API-driven (React/Vue) | For SPAs, fetch translations via API (e.g., /api/translations). |
| Internationalization | Works alongside laravel-lang/lang or spatie/laravel-translatable |
No conflicts; focuses solely on currency names. |
$, €) with native names.USD vs. ドル in Japan).composer update laravel-lang/native-currency-names (monitor releases for new currencies/locales).lang/vendor/native-currency-names/).lang/ directory from backup.lang/vendor/native-currency-names/{locale}.json to lang/{locale}/native-currency-names/.crypto namespaceHow can I help you explore Laravel packages today?