/// <summary> /// Allow plugin-specific translation to fallback to generic translations. Inspects the callstack to determine /// the calling plugin that the translations should be associated with. /// </summary> /// <param name="registry">The translation registry that the package is being registered with.</param> public static void EnablePluginTranslationFallback(this ITranslationRegistry registry) { var assembly = GetCallingPlugin(); registry.EnablePluginTranslationFallback(assembly); }
/// <summary> /// Registers and loads the specified translation package. Inspects the callstack to determine /// the calling plugin that the translations should be associated with. /// </summary> /// <param name="registry">The translation registry that the package is being registered with.</param> /// <param name="package">Package containing translations.</param> public static void RegisterPluginSpecificTranslations(this ITranslationRegistry registry, KeyValuePairTranslationPackage package) { var assembly = GetCallingPlugin(); registry.RegisterPluginSpecificTranslations(assembly, package); }