LightPHP
Adapter
ArrayLocale.php
GetTextLocale.php
JSONLocale.php
LocaleInterface.php
Exception
LocaleNotExistException.php
Wrapper
AutoLocaleAgent.php
LocaleAgent.php
ArrayLocale 提供了一个返回 PHP 数组的文件的形式的本地化文件格式,示例:
<?php
return [
"hello" => "你好",
"Locale" => "本地化"
];
GetTextLocale 提供了 GUN gettext 的本地化文件格式,即 .po/mo 格式。
JSONLocale 提供了 JSON 的本地化文件格式,示例:
{
"hello": "你好",
"Locale": "本地化"
}