Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ttag translate doesn't skip translated msgids #135

Open
e-tsakhlo opened this issue Sep 6, 2022 · 0 comments · May be fixed by #141
Open

ttag translate doesn't skip translated msgids #135

e-tsakhlo opened this issue Sep 6, 2022 · 0 comments · May be fixed by #141

Comments

@e-tsakhlo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant