承接 robinncode/onubadok 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

robinncode/onubadok

最新稳定版本:1.0.2

Composer 安装命令:

composer require robinncode/onubadok

包简介

This is a Composer package for translating your PHP software to other languages, primarily in Bengali.

README 文档

README

Localize your laravel project with ease using onubadok.

Installation

composer require robinncode/onubadok

Usage

  • To generate language files run the following command

    php artisan onubadok:generate your_language_code
    

    Example

    php artisan onubadok:generate bn
    

    This will generate a necessary files on as lang/en and lang/bn. Now you can translate the file and save it.

  • To publish the Controller file run the following command

    php artisan onubadok:publish
    

    This will publish the controller file to app/Http/Controllers/OnubadokController.php. Now you can use the controller to get the translated text. Also append the following line to your routes/web.php file

    Route::get('/onubadok/change/{lang}', 'OnubadokController@change');
    

Usage in blade file

Now run your project then goto your browser and type http://your_project_url/onubadok/change/your_language_code to change the language to your_language_code. Now you can use the following code to get the translated text.

{{ __( 'Your text' ) }}

Example

Here is an example of a data table column name. Here data_table is the file name and Name is the key.

{{ __( 'data_table.Name' ) }}

License

This package is open-sourced software licensed under the MIT license.

Contribution

Feel free to contribute to this project. Any kind of contribution is welcome.

Author

MsM Robin msmrobin518@gmail.com

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固