定制 flarum-lang/utils 二次开发

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

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

flarum-lang/utils

最新稳定版本:1.0.1

Composer 安装命令:

composer require flarum-lang/utils

包简介

Utilities for Flarum Language Packs.

README 文档

README

Latest Stable Version Latest Unstable Version License Total Downloads Monthly Downloads

This package provides useful utilities for Flarum Language Packs.

Installation

You can install this package using Composer:

composer require flarum-lang/utils

Usage

LanguagePackWithVariants

This is an extender dedicated for language packs with multiple variants of translations (for example formal and informal translations). Use it instead of Flarum\Extend\LanguagePack in extend.php:

return [
    new FlarumLang\Utils\Extend\LanguagePackWithVariants([
        'label' => 'Variant',
        'variants' => [
          'informal' => 'Informal',
          'formal' => 'Formal',
        ],
        'defaultVariant' => 'informal',
    ]),
];

Links

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 未知