Generate inline i18n dictionary dictionary:
For Perl:
# This is auto-generated by App::I18N
# ------------------------------
package
{{app}}::dict::en;
our
$DICT
= {
"msgid"
=>
"msgstr"
,
...
};
package
{{app}}::dict::zh_tw;
our
$DICT
= {
"msgid"
=>
"msgstr"
,
....
};
...
For PHP:
en.php:
<?php
$DICT
= array(
"msgid"
=>
"msgstr"
....
);
?>
....
For JSON
en.json:
{
"msgid..."
:
"msgstr"
...
};
zh_tw.json:
{
....
};
Static JS
var dict;
dict[
"en"
] = { ... };
dict[
"zh_tw"
] = { ... };
NAME
App::I18N::Command::Gen - Export dictionary to other formats.
USAGE
po gen [TYPE] [OPTIONS]
TYPE:
Can be json
, js
, pm
.
OPTIONS
--podir=[path]
Po files directory
--locale
Use locale directory structure.
--output=[path]
Path
for
output.