public async Task UpdateLanguageText(UpdateLanguageTextInput input) { CultureInfo cultureInfoByChecking = this.GetCultureInfoByChecking(input.LanguageName); ILocalizationSource source = this.LocalizationManager.GetSource(input.SourceName); await this._applicationLanguageTextManager.UpdateStringAsync(this.AbpSession.TenantId, source.Name, cultureInfoByChecking, input.Key, input.Value); }
/// <summary> /// 修改语言的文本内容 /// </summary> /// <param name="input"></param> /// <returns></returns> public async Task UpdateLanguageText(UpdateLanguageTextInput input) { var culture = CultureHelper.GetCultureInfo(input.LanguageName); var source = LocalizationManager.GetSource(input.SourceName); await _languageTextManager.UpdateStringAsync(AbpSession.TenantId, source.Name, culture, input.Key, input.Value); }
public async Task UpdateLanguageText(UpdateLanguageTextInput input) { var culture = GetCultureInfoByChecking(input.LanguageName); var source = LocalizationManager.GetSource(input.SourceName); await _applicationLanguageTextManager.UpdateStringAsync(InfrastructureSession.TenantId, source.Name, culture, input.Key, input.Value); }