Công cụ miễn phí

    Trình định dạng & Trình chỉnh sửa tệp PO GNU Gettext

    Định dạng, xác thực và kiểm tra các tệp dịch Gettext PO với msgid, msgstr, msgid_plural và trình giữ chỗ printf.

    Mẫu9
    PO Trình chỉnh sửa
    Cú pháp hợp lệ
    68 ký tự3 dòng

    Biến kiểm tra & Xem trước trực tiếp

    Điều chỉnh các biến và chuyển đổi ngôn ngữ để xác minh quy tắc CLDR

    Ngôn ngữ:
    Không có biến nào được phát hiện trong chuỗi tin nhắn.
    Kết quả hiển thị (fr):
    # Simple greeting msgid "Hello, world!" msgstr "Bonjour, le monde !"
    Xuất sang khai báo an toàn kiểu của 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 xác thực bản dịch tại thời điểm biên dịch với tính năng tự động hoàn thành TypeScript đầy đủ.

    GNU Gettext PO Syntax Cheat Sheet

    Quy tắc cú pháp nhanh và cách mỗi mẫu ánh xạ tới khai báo Intlayer

    Tính năngCú phápVí dụGhi chúTương đương trong 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
    Kiến trúc dựa trên trình biên dịch của Intlayer thay thế việc phân tích cú pháp trong thời gian chạy bằng tính an toàn kiểu tại thời điểm biên dịch.
    Hệ sinh thái Intlayer

    Không còn phải lo lắng về cú pháp phức tạp nữa

    Intlayer biến quốc tế hóa thành trải nghiệm phát triển thú vị với tính an toàn kiểu tại thời điểm biên dịch, tự động trích xuất thành phần và tích hợp CMS liền mạch.