nadeesha / laravel-si-localization
Sinhala (si) localization for Laravel using JSON translations.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/nadeesha/laravel-si-localization
Requires
- php: ^8.1
- illuminate/support: ^9.0|^10.0|^11.0|^12.0
README
Sinhala (සිංහල) JSON translations for Laravel.
Works with Laravel 9, 10, 11, 12.
Version v1.0.0
Developer : Nadeesha Sahen weerasekara
country : sri lanka
Install
composer require nadeesha/laravel-si-localization
If you want to customize the file inside your app
php artisan vendor:publish --tag=sinhala-lang
This will create/update:
/resources/lang/si.json
Usage
Set the app locale to si:
// globally (config/app.php) 'locale' => 'si'; // or per-request app()->setLocale('si')
Translate anywhere:
__('100%'); // ➜ "සියත්ව | හැතප්ම" __('A'); // ➜ "ක | අ | වරයකු | වරයෙකු | තාවයක්" __('3D'); // ➜ "ත්රිමාණ" __('ANP'); // ➜ "ඒජාප | ඇන්පී"
Requirements
PHP 8.1+
Laravel 9/10/11/12
Contributing
PRs welcome! Please run:
composer validate
License
MIT © Nadeesha