flarum-lang/utils
最新稳定版本:1.0.1
Composer 安装命令:
composer require flarum-lang/utils
包简介
Utilities for Flarum Language Packs.
关键字:
README 文档
README
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
- 点击次数: 0
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 未知