nadeesha/laravel-si-localization
最新稳定版本:v1.0.1
Composer 安装命令:
composer require nadeesha/laravel-si-localization
包简介
Sinhala (si) localization for Laravel using JSON translations.
README 文档
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
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-21