ソース情報
- リポジトリ
- loonghao/transx
- ソースの最終更新活動
- 2026年3月7日 04:51
- 検出された SKILL.md の言語
- 英語
- スター
- 5
- フォーク
- 1
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
SOC 職業分類に基づく
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/loonghao/transx --skill transx-best-practicesコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SKILL.md を表示中
| name | transx-best-practices |
| description | Best practices for building i18n flows with TransX |
Use this skill when working on projects that use transx for localization.
tx.tr() for high-level runtime translation in app code.tx.translate() for low-level direct translation cases.context.Use standard gettext layout:
<locales_root>/<locale>/LC_MESSAGES/messages.po
<locales_root>/<locale>/LC_MESSAGES/messages.mo
Examples:
./locales/zh_CN/LC_MESSAGES/messages.po./locales/ja_JP/LC_MESSAGES/messages.moTransX supports:
TransX(locales_root=["./pkg_a/locales", "./pkg_b/locales"])
Rules:
(msgid, context)WARNING, do not raise by defaultlocales_root property still points to first rootlocales_rootsUse PotExtractor and keep keyword config explicit:
tr, _, gettext, pgettext, npgettextadditional_keywordsRecommended flow:
.pot.po files.mo filesWhen adding i18n features:
msgctxt)