[frontend/components] Use localization for other category name in emoji picker
This commit is contained in:
parent
28610192fe
commit
d160d7337e
1 changed files with 4 additions and 1 deletions
|
@ -1,9 +1,12 @@
|
||||||
@using AngleSharp.Text
|
@using AngleSharp.Text
|
||||||
@using Iceshrimp.Frontend.Core.Services
|
@using Iceshrimp.Frontend.Core.Services
|
||||||
|
@using Iceshrimp.Frontend.Localization
|
||||||
@using Iceshrimp.Shared.Schemas.Web
|
@using Iceshrimp.Shared.Schemas.Web
|
||||||
|
@using Microsoft.Extensions.Localization
|
||||||
@inject EmojiService EmojiService
|
@inject EmojiService EmojiService
|
||||||
@inject GlobalComponentSvc GlobalComponentSvc
|
@inject GlobalComponentSvc GlobalComponentSvc
|
||||||
@inject IJSRuntime Js
|
@inject IJSRuntime Js
|
||||||
|
@inject IStringLocalizer<Localization> Loc;
|
||||||
|
|
||||||
<dialog class="dialog" @ref="EmojiPickerRef">
|
<dialog class="dialog" @ref="EmojiPickerRef">
|
||||||
<div class="emoji-picker" style="--top: @(_top)px; --left: @(_left)px">
|
<div class="emoji-picker" style="--top: @(_top)px; --left: @(_left)px">
|
||||||
|
@ -77,6 +80,6 @@
|
||||||
.GroupBy(p => p.Category)
|
.GroupBy(p => p.Category)
|
||||||
.OrderBy(p => string.IsNullOrEmpty(p.Key))
|
.OrderBy(p => string.IsNullOrEmpty(p.Key))
|
||||||
.ThenBy(p => p.Key)
|
.ThenBy(p => p.Key)
|
||||||
.ToDictionary(p => p.Key ?? "Other", p => p.ToList());
|
.ToDictionary(p => p.Key ?? Loc["Other"], p => p.ToList());
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue