integrating WIP-languages (#24683)
* integrating WIP-languages * handle malformed, but "correct" empty i18n files --------- Co-authored-by: Tom De Moor <tom@controlaltdieliet.be> Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Этот коммит содержится в:
@@ -681,6 +681,11 @@ func clean(translationDir string, file string, dryRun bool, check bool) (*string
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if strings.TrimSpace(string(oldJSON)) == "{}" {
|
||||
noIssue := ""
|
||||
return &noIssue, err
|
||||
}
|
||||
|
||||
var oldList []Item
|
||||
if err = json.Unmarshal(oldJSON, &oldList); err != nil {
|
||||
return nil, err
|
||||
|
||||
Ссылка в новой задаче
Block a user