aedart/athenaeum-translation

Laravel 的翻译工具

8.10.0 2024-09-23 07:54 UTC

README

该翻译包包含一些用于 Laravel 本地化工具 的实用工具。

导出器

其中可用的工具包括翻译导出器。

$translations = $exporter->export('en', 'auth');

print_r($translations);
Array
(
    [en] => Array
        (
            [__JSON__] => Array
                (
                    [The :attribute must contain one letter.] => The :attribute must contain one letter.
                )
            [auth] => Array
                (
                    [failed] => These credentials do not match our records.
                    [password] => The provided password is incorrect.
                    [throttle] => Too many login attempts. Please try again in :seconds seconds.
                )
        )
)

文档

请阅读官方文档 获取更多信息。

仓库

单仓库位于 github.com/aedart/athenaeum

版本控制

该包遵循 语义版本控制 2.0.0

许可证

BSD-3-Clause,请阅读本包中包含的 LICENSE 文件