無料ツール

    GNU Gettext PO ファイルフォーマッター&エディター

    msgid、msgstr、msgid_plural、printfプレースホルダー(%s、%d)を使用してGNU Gettext PO翻訳ファイルをフォーマット、検証、テストします。

    テンプレート9
    PO エディター
    有効な構文
    68 文字3

    テスト変数とライブプレビュー

    変数を調整し言語を切り替えてCLDR複数形ルールを確認します

    言語:
    メッセージ文字列に変数は検出されませんでした。
    出力結果 (fr):
    # Simple greeting msgid "Hello, world!" msgstr "Bonjour, le monde !"
    Intlayer の型安全な宣言にエクスポート
    import { type Dictionary } from 'intlayer';const convertedMessageContent = {  key: 'converted-message',  content: `# Simple greetingmsgid "Hello, world!"msgstr "Bonjour, le monde !"`,} satisfies Dictionary;export default convertedMessageContent;
    Intlayerは完全なTypeScript自動補完によりコンパイル時に翻訳を検証します。

    GNU Gettext PO Syntax Cheat Sheet

    構文ルールとIntlayerの型安全な宣言へのマッピング一覧

    機能構文備考Intlayer での同等表現
    Singular Messagemsgid "..." \n msgstr "..."msgid "Hello" \n msgstr "Bonjour"msgid is source key, msgstr is translated textt({ en: "Hello", fr: "Bonjour" })
    Plural Messagesmsgid_plural "..." \n msgstr[N] "..."msgid "file" \n msgid_plural "files" \n msgstr[0] "fichier" \n msgstr[1] "fichiers"Plural-Forms header defines index calculationplural({ one: "file", other: "{{count}} files" })
    Context (msgctxt)msgctxt "context" \n msgid "..."msgctxt "menu" \n msgid "File"Disambiguates identical msgid in different contextsSeparate keys or select() nodes
    Printf Specifiers%s, %d, %1$smsgid "%d items found"Position-aware C printf formatters{{count}} or named interpolations
    Comments# translator, #: reference, #, flag#: src/app.tsx:42Standard PO comments generated by xgettextTypeScript comments in .content.ts
    Intlayerのコンパイラ駆動アーキテクチャは、複雑な実行時パースをコンパイル時の型安全性と自動抽出に置き換えます。
    Intlayer エコシステム

    複雑な構文に悩まされることはもうありません

    Intlayerは、コンパイル時の型安全性、自動コンポーネント抽出、シームレスなCMS統合により、国際化を快適な開発体験に変えます。