定制 richarddobron/laravel-fbt 二次开发

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

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

richarddobron/laravel-fbt

Composer 安装命令:

composer require richarddobron/laravel-fbt

包简介

A PHP Internationalization Framework for Laravel Application.

README 文档

README

FBT

FBT is an internationalization framework for Laravel Application designed to be not just powerful and flexible, but also simple and intuitive. It helps with the following:

  • Organizing your source text for translation
  • Composing grammatically correct translatable UI
  • Eliminating verbose boilerplate for generating UI

This library is based on the JavaScript implementation of Facebook's FBT.

FBT intro

FBT plurals

FBT enum

FBT pronouns

📖 Requirements

  • Laravel 5.5 or higher
  • Composer is required for installation

📦 Installing

$ composer require richarddobron/laravel-fbt

✨ Features

  • Parameters and interpolation
  • Implicit parameters
  • Auto-parameterization
  • Plurals
  • Enumerations
  • Pronouns
  • Number formatting
  • Phrase extracting
  • Inline translating

🚀 Getting started

Integrating into your app

📑 Version Guidance

Version Released Status Repo Laravel Version PHP Version
3.x 2022-02-21 Maintained v3 ^5.5 ^7.0
4.x 2022-04-09 Latest v4 ^5.6|^5.7|^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 ^7.2|^8.0

⚙️ How FBT works

FBT works by transforming your <fbt> and fbt(...) constructs via DOM Forge. It serves to extract strings from source and lookup translated payloads generated during execution. FBT creates tables of all possible variations for each fbt phrase and accesses them at runtime.

📕 Full documentation

https://github.com/richarddobron/laravel-fbt/tree/main/docs

🤝 Contributing

Please see CONTRIBUTING for details.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固