Example #1
0
 public async Task UpdateLanguageText(UpdateLanguageTextInput input)
 {
     var culture = GetCultureInfoByChecking(input.LanguageName);
     var source = LocalizationManager.GetSource(input.SourceName);
     await _applicationLanguageTextManager.UpdateStringAsync(AbpSession.TenantId, source.Name, culture, input.Key, input.Value);
 }
Example #2
0
 public async Task<JsonResult> UpdateLanguageText(UpdateLanguageTextInput input)
 {
     //当多语言文本数据发生变化时,触发MultiTenantLocalizationDictionaryCacheCleaner事件,事件执行清除多语言文本缓存数据
     await _languageAppService.UpdateLanguageText(input);
     return Json(new MvcAjaxResponse { Result = "修改成功!" });
 }