ttag-cli icon indicating copy to clipboard operation
ttag-cli copied to clipboard

`ttag translate` doesn't skip translated `msgid`s

Open e-tsakhlo opened this issue 2 years ago • 0 comments

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

e-tsakhlo avatar Sep 06 '22 11:09 e-tsakhlo