定制 nadeesha/laravel-si-localization 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

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

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-21