feat(Localization): 部分元件渲染時重新取得本地化資源 #5523
Unanswered
ElecSheep224
asked this question in
Q&A
Replies: 2 comments
-
@ElecSheep224 Thank you for contacting us. We will give feedback later. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ElecSheep224 没有示例工程光靠描述无法完全理解,抱歉无法回答您的问题 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Version: 8.10.4
我在專案中建立了名為 DbStringLocalizer 的類別,並且只繼承了 IStringLocalizer介面,
並在其中使用 Dictionary 達到可在Runtime 期間隨時異動的本地化資源,
於頁面第一次載入時可以觀察到 TableColumn 或 EditorItem元件使用前述類別取得與 bind-Field 綁定字段值有關的LocalizedString物件,
不過網頁重新載入並不會再次取得 LocalizedString 物件,除非使用 Text 屬性來強制指定表頭顯示文字,如
<TableColumn @bind-Field="@context.Text" Text="@DbStringLocalizer["Text"]"/>
是否有任何方法能使得元件重新取得本地化資源?
謝謝。
Describe the solution you'd like
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions