Merge pull request #9630 from abpframework/maliming/TranslateCommand

Skip the empty values in the `abp-translation.json` file.
pull/9631/head
liangshiwei 4 years ago committed by GitHub
commit 2851866bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -194,10 +194,13 @@ namespace Volo.Abp.Cli.Commands
{
var targetText = targetLocalizationInfo.Texts.FirstOrDefault(x => x.Name == text.LocalizationKey);
if (targetText != null)
{
if (!text.Target.IsNullOrEmpty())
{
Logger.LogInformation($"Update translation: {targetText.Name} => " + text.Target);
targetText.Value = text.Target;
}
}
else
{
Logger.LogInformation($"Create translation: {text.LocalizationKey} => " + text.Target);

Loading…
Cancel
Save