Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-si-localization maintained by nadeesha

Description
Sinhala (si) localization for Laravel using JSON translations.
Last update
2025/10/22 10:43 (dev-main)
License
Downloads
4

Comments
comments powered by Disqus

Laravel Sinhala Localization (si)

Sinhala (සිංහල) JSON translations for Laravel.
Works with Laravel 9, 10, 11, 12. Version v1.0.0 Developer : Nadeesha Sahen weerasekara country : sri lanka

Package

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