This commit is contained in:
@@ -274,6 +274,20 @@ namespace AyaNova.Biz
|
||||
}
|
||||
}
|
||||
|
||||
//used by internal notification and other processes i.e. "Server" in all languages for server based notifications
|
||||
internal static async Task<Dictionary<long, string>> GetAllTranslationsForKey(string translationKey)
|
||||
{
|
||||
|
||||
#if (DEBUG)
|
||||
TrackRequestedKey(translationKey);
|
||||
#endif
|
||||
using (AyContext ct = ServiceProviderProvider.DBContext)
|
||||
{
|
||||
return await ct.TranslationItem.Where(z => z.Key == translationKey).AsNoTracking().ToDictionaryAsync(z => z.TranslationId, z => z.Display);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Get the CJKIndex value for the translation specified
|
||||
internal static async Task<bool> GetCJKIndexAsync(long translationId, AyContext ct)
|
||||
|
||||
Reference in New Issue
Block a user