Issue During Component Creation – Template Language Mismatch #15479
Unanswered
saubhagya14
asked this question in
Q&A
Replies: 2 comments
-
It defaults to English, but you can provide it as a |
Beta Was this translation helpful? Give feedback.
0 replies
-
wlu_ktQLJgkf1SqPCo3t14AbFY0aBpgoB7J4xVZf |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the issue
Hi Team,
We are facing an issue during component creation. Our template file is named zh_Hans.json, and the JSON file inside the ZIP is also named zh_Hans.json. However, we encountered a validation error as shown below:
{
"type": "validation_error",
"errors": [
{
"code": "invalid",
"detail": "Template language (zh) does not match source language (en)!",
"attr": "template"
},
{
"code": "invalid",
"detail": "Template language (zh) does not match source language (en)!",
"attr": "source_language"
}
]
}
It seems the system is expecting the source language to be en, but our template is in zh_Hans. Could you please help us understand how to resolve this validation error?
I already tried
Steps to reproduce the behavior
--form 'name="register"'
--form 'file_format="json"'
--form 'filemask="*.json"'
--form 'repo="local:"'
--form 'vcs="local"'
--form 'template="zh_Hans.json"'
--form 'slug="register"'
Expected behavior
No response
Screenshots
No response
Exception traceback
How do you run Weblate?
No response
Weblate versions
No response
Weblate deploy checks
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions