Fix for #2209 Localization Pager component (Page @_page of @_pages)
Added fixe for issue. Added the resource "PageOfPages" to SharedResources as trying to inject IStringLocalizer<Pager<TableItem>> and adding Pager.resx the resource failed to load.
This commit is contained in:
		@ -1,5 +1,6 @@
 | 
			
		||||
@namespace Oqtane.Modules.Controls
 | 
			
		||||
@inherits ModuleControlBase
 | 
			
		||||
@inject IStringLocalizer<SharedResources> Localizer
 | 
			
		||||
@typeparam TableItem
 | 
			
		||||
 | 
			
		||||
@if (ItemList != null)
 | 
			
		||||
@ -48,7 +49,7 @@
 | 
			
		||||
                <a class="page-link" @onclick=@(async () => UpdateList(_pages))><span class="oi oi-media-step-forward" title="end" aria-hidden="true"></span></a>
 | 
			
		||||
            </li>
 | 
			
		||||
            <li class="page-item disabled">
 | 
			
		||||
                <a class="page-link" style="white-space: nowrap;">Page @_page of @_pages</a>
 | 
			
		||||
                <a class="page-link" style="white-space: nowrap;">@Localizer["PageOfPages", @_page, @_pages]</a>
 | 
			
		||||
            </li>
 | 
			
		||||
        </ul>
 | 
			
		||||
    }
 | 
			
		||||
@ -156,7 +157,7 @@
 | 
			
		||||
                <a class="page-link" @onclick=@(async () => UpdateList(_pages))><span class="oi oi-media-step-forward" title="end" aria-hidden="true"></span></a>
 | 
			
		||||
            </li>
 | 
			
		||||
            <li class="page-item disabled">
 | 
			
		||||
               <a class="page-link" style="white-space: nowrap;">Page @_page of @_pages</a>
 | 
			
		||||
               <a class="page-link" style="white-space: nowrap;">@Localizer["PageOfPages", @_page, @_pages]</a>
 | 
			
		||||
            </li>
 | 
			
		||||
        </ul>
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user