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

v1.0.1 2025-10-21 08:03 UTC

This package is auto-updated.

Last update: 2025-12-22 09:00:16 UTC


README

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