Skip to content

ttag translate doesn't skip translated msgids #135

@e-tsakhlo

Description

@e-tsakhlo
yarn ttag translate i18n/uk.po -o i18n/uk.po

Expected:
ttag translate prompts to translate only msgids with empty msgstr.

Actual:
ttag translate prompts to translate translated msgids.

image

i18n/uk.po

msgid ""
msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Plural-Forms: nplurals = 3; plural = (n % 10 == 1 && n % 100 != 11 ? 0 : n "
"% 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
"Language: uk\n"
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/components/auth/LoginScreen/index.tsx:14
msgid "Login screen"
msgstr "Екран логіну"

#: src/components/auth/LoginScreen/index.tsx:16
msgid "Login"
msgstr "Логін"

#: src/components/document/DocumentScreen/index.tsx:31
#, javascript-format
msgid "Text document ${ documentId }"
msgstr "Текстовий документ ${ documentId }"

ttag-cli version: 1.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions