-
Notifications
You must be signed in to change notification settings - Fork 286
Open
Description
I use JSON files for translations, like
{
"application": {
"formatter": {
"name": "My application formatter",
"desc": "Some explanatory description for the formatter"
},
"v1": {
"label": "Label for the version v1",
"desc": "Description for this version",
"fields": {
"FirstVariableToSet": {
"label": "MyVariable",
"desc": ""
}
}
}
}
}I think it is absolutely valid to have an empty translation for a key, like application.v1.fields.FirstVariableToSet.desc.
Unfortunately the key (and its value) is completely scrapped during message file import.
Culprit:
go-i18n/i18n/message_template.go
Line 37 in b42d9bd
| if src != "" { |
Would it be possible to support empty message values in the future? Or maybe with a configuration parameter, whether they should be ignored or not.
Metadata
Metadata
Assignees
Labels
No labels