use package name as a convention for identifying satellite assemblies

This commit is contained in:
Shaun Walker
2022-07-18 13:14:34 -04:00
parent f97a6a2bee
commit 557b30815e
7 changed files with 15 additions and 16 deletions

View File

@ -18,12 +18,12 @@ namespace Oqtane.Services
Task<List<Language>> GetLanguagesAsync(int siteId);
/// <summary>
/// Returns a list of all available languages for the given <see cref="Site" /> and client assembly
/// Returns a list of all available languages for the given <see cref="Site" /> and package
/// </summary>
/// <param name="siteId"></param>
/// <param name="clientAssemblyName"></param>
/// <param name="packageName"></param>
/// <returns></returns>
Task<List<Language>> GetLanguagesAsync(int siteId, string clientAssemblyName);
Task<List<Language>> GetLanguagesAsync(int siteId, string packageName);
/// <summary>
/// Returns the given language

View File

@ -20,9 +20,9 @@ namespace Oqtane.Services
return await GetLanguagesAsync(siteId, "");
}
public async Task<List<Language>> GetLanguagesAsync(int siteId, string clientAssemblyName)
public async Task<List<Language>> GetLanguagesAsync(int siteId, string packageName)
{
return await GetJsonAsync<List<Language>>($"{Apiurl}?siteid={siteId}&clientassemblyname={clientAssemblyName}");
return await GetJsonAsync<List<Language>>($"{Apiurl}?siteid={siteId}&packagename={packageName}");
}
public async Task<Language> GetLanguageAsync(int languageId)